<%doc> Example: <& /elements/one_time_charge_link.html, #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 % )) { % }
% } % % 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 = @_; my $query = $opt{custnum} ? 'custnum='.$opt{custnum} : 'prospectnum='.$opt{prospectnum}; $query .= ';quotationnum='.$opt{quotationnum} if $opt{quotationnum};