From f92a083465019a7224d912cd78b6881f8aef1b52 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 18 Jan 2015 19:43:48 -0800 Subject: one-time charges on quotations, RT#25561 --- httemplate/elements/one_time_charge_link.html | 114 ++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 httemplate/elements/one_time_charge_link.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/one_time_charge_link.html b/httemplate/elements/one_time_charge_link.html new file mode 100644 index 000000000..4ef5ede4d --- /dev/null +++ b/httemplate/elements/one_time_charge_link.html @@ -0,0 +1,114 @@ +<%doc> + +Example: + + <& /elements/one_time_charge_link.html, + + #one of these is required + 'custnum' => $custnum, + 'prospectnum' => $prospectnum, + + &> + + + + +
+% for (qw( +% taxproductnum tax_override charge_storage taxproductnum_description +% )) { + +% } +
+ +<% include('/elements/popup_link.html', { + 'action' => $p. 'edit/quick-charge.html?'. $query, + 'label' => emt('One-time charge'), + 'actionlabel' => emt('One-time charge'), + 'color' => '#333399', + 'width' => 763, + 'height' => 460, #more for more room for lines of add'l description? + }) +%> + +<%init> + +my %opt = @_; + +my $query = $opt{custnum} ? 'custnum='.$opt{custnum} + : 'prospectnum='.$opt{prospectnum}; +$query .= ';quotationnum='.$opt{quotationnum} if $opt{quotationnum}; + + -- cgit v1.2.1