X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fone_time_charge_link.html;h=3a0f9b1a0f2dfbdf0ce4c6c5474a1d785ba6428b;hp=4ef5ede4d00b8236968abafdb9366c9a8ba32f2f;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hpb=f92a083465019a7224d912cd78b6881f8aef1b52 diff --git a/httemplate/elements/one_time_charge_link.html b/httemplate/elements/one_time_charge_link.html index 4ef5ede4d..3a0f9b1a0 100644 --- a/httemplate/elements/one_time_charge_link.html +++ b/httemplate/elements/one_time_charge_link.html @@ -4,13 +4,18 @@ Example: <& /elements/one_time_charge_link.html, - #one of these is required + #one of these is required (except when form_only is true) 'custnum' => $custnum, 'prospectnum' => $prospectnum, + 'no_form' => 0, + 'form_only' => 0, &> +% +% unless ( $opt{form_only} ) { +% - +% } +% +% unless ( $opt{no_form} ) {
% for (qw( % taxproductnum tax_override charge_storage taxproductnum_description @@ -92,17 +99,19 @@ function taxoverridequickchargemagic() { % }
- -<% include('/elements/popup_link.html', { +% } +% +% unless ( $opt{form_only} ) { +<& /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 = @_;