X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-payment_options.html;h=c5b84e7564eb4e5682074b70b236826bb2968a56;hb=ac3296dc4d9c1c7ff3646df6496a4f49d9e07b9b;hp=5197c37064270480d6b9bc8772f0176c29ee5f34;hpb=ca2f12276eb88b2e71762c76974ae564f008b8c1;p=freeside.git
diff --git a/httemplate/elements/tr-select-payment_options.html b/httemplate/elements/tr-select-payment_options.html
index 5197c3706..c5b84e756 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)),
+ )
+
+%doc>
+
+ |
+ <% 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
&>