[freeside-commits] freeside/httemplate/browse did_order.html, 1.2, 1.3
Erik Levinson
levinse at wavetail.420.am
Mon Apr 11 16:00:08 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv22063/httemplate/browse
Modified Files:
did_order.html
Log Message:
improvements to bulk DID orders, RT11291
Index: did_order.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/did_order.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- did_order.html 6 Apr 2011 08:19:57 -0000 1.2
+++ did_order.html 11 Apr 2011 23:00:02 -0000 1.3
@@ -35,16 +35,32 @@
time2str($date_format, $date);
};
-my $header = [ '#', 'Vendor',' Vendor Order #',
- 'Submitted', 'Confirmed', 'Customer', 'Received',
- ];
+my $header = [ '#', 'Vendor',' Vendor Order #', 'Submitted', 'Confirmed',
+ 'Customer', 'Received', ];
my $fields = [ sub {
my $did_order = shift;
$did_order->ordernum;
}, 'vendorname', 'vendor_order_id',
sub { &$display_date(shift->submitted); },
- sub { &$display_date(shift->confirmed); },
- 'custnum',
+ sub {
+ my $did_order = shift;
+ my $ordernum = $did_order->ordernum;
+ return &$display_date($did_order->confirmed) if $did_order->confirmed;
+ include( '/elements/popup_link.html',
+ { 'action' => "${p}misc/did_order_confirm.html?ordernum=$ordernum",
+ 'label' => 'Confirm Bulk DID Order',
+ 'actionlabel' => 'Confirm Bulk DID Order',
+ 'width' => 480,
+ 'height' => 300,
+ }
+ )
+ },
+ sub {
+ my $did_order = shift;
+ my $cust_main = $did_order->cust_main;
+ return "Stock" unless $cust_main;
+ "<A HREF='${p}view/cust_main.cgi?".$cust_main->custnum."'>".$cust_main->name."</A>";
+ },
sub {
my $did_order = shift;
my $ordernum = $did_order->ordernum;
More information about the freeside-commits
mailing list