X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-payment_options.html;h=27df9622ecf794bfd6d074b8d32cd28f71fd2bd1;hp=5197c37064270480d6b9bc8772f0176c29ee5f34;hb=4fd1280540e2c9b90fa59c0c32d691f5222f65d4;hpb=ca2f12276eb88b2e71762c76974ae564f008b8c1 diff --git a/httemplate/elements/tr-select-payment_options.html b/httemplate/elements/tr-select-payment_options.html index 5197c3706..27df9622e 100644 --- a/httemplate/elements/tr-select-payment_options.html +++ b/httemplate/elements/tr-select-payment_options.html @@ -1,60 +1,191 @@ +<%doc> - - <% mt('Payment options') |h %> - +Example: + + include( '/elements/tr-select-payment_options.html', + + #opt - most get used in /elements/tr-amount-fee + 'cust_main' => $cust_main, # custmain needed for selecting invoices + 'prefix' => 'pre', # prefix to fields and row ID's + 'amount' => 1, # payment amount optional, if no amount will grab balance due from cust_main + 'process-pkgpart' => scalar($conf->config('manual_process-pkgpart', $cust_main->agentnum)), + 'process-display' => scalar($conf->config('manual_process-display')), + 'process-skip_first' => $conf->exists('manual_process-skip_first'), + 'num_payments' => scalar($cust_main->cust_pay), + 'surcharge_percentage' => + ( $payby eq 'CARD' + ? scalar($conf->config('credit-card-surcharge-percentage', $cust_main->agentnum)) + : 0 + ), + 'surcharge_flatfee' => + ( $payby eq 'CARD' + ? scalar($conf->config('credit-card-surcharge-flatfee', $cust_main->agentnum)) + : 0 + ), + 'processing_fee' => scalar($conf->config('processing-fee', $cust_main->agentnum)), + ) + + + + + <% mt('What would you like to pay') |h %> + + > + + <% ($amount > 0) ? '' : '' %> + <% (@open_invoices) ? '' : '' %> + + <& /elements/tr-select-invoice.html, - %opt + 'cust_main' => $cust_main, + 'status' => 'open', + 'prefix' => $opt{prefix}, &> <& /elements/tr-amount_fee.html, + 'amount' => $amount, + 'custnum' => $custnum, %opt &>