From 2ec94a2d96b62fd452556819eb594dea6be2c65d Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 30 May 2008 03:55:49 +0000 Subject: 1.7 sucks. add a "balance over" option to the 1.7 style agent-specific invoice send event --- httemplate/edit/part_bill_event.cgi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi index 6dd92c0fc..df09bab7a 100755 --- a/httemplate/edit/part_bill_event.cgi +++ b/httemplate/edit/part_bill_event.cgi @@ -249,7 +249,11 @@ Invoice Event #<% $hashref->{eventpart} ? $hashref->{eventpart} : "(NEW)" %> % % 'send_agent' => { % 'name' => 'Send invoice (email/print/fax) ', -% 'code' => '$cust_bill->send(\'%%%agent_templatename%%%\', [ %%%agentnum%%% ], \'%%%agent_invoice_from%%%\');', +% 'code' => '$cust_bill->send( \'%%%agent_templatename%%%\', +% [ %%%agentnum%%% ], +% \'%%%agent_invoice_from%%%\', +% %%%agent_balanceover%%% +% );', % 'html' => sub { % ' % @@ -268,6 +272,13 @@ Invoice Event #<% $hashref->{eventpart} ? $hashref->{eventpart} : "(NEW)" %> % % % +% +% +% +% %
if balance (this invoice and previous) over +% +% '. $money_char. ' +%
'; % }, % 'weight' => 50, -- cgit v1.2.1