From ca2f12276eb88b2e71762c76974ae564f008b8c1 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 2 Jan 2018 19:47:44 -0500 Subject: RT# 34134 - removed payment amount field from payment screen, added 3 payment options (pay full balance, pay specific invoice, pay another amount) which will prefill the payment amount field. --- httemplate/elements/tr-select-invoice.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 httemplate/elements/tr-select-invoice.html (limited to 'httemplate/elements/tr-select-invoice.html') diff --git a/httemplate/elements/tr-select-invoice.html b/httemplate/elements/tr-select-invoice.html new file mode 100644 index 000000000..03625b659 --- /dev/null +++ b/httemplate/elements/tr-select-invoice.html @@ -0,0 +1,25 @@ + + + <% mt('Open invoices') |h %> + + + + + +<%init> + +my %opt = @_; + + -- cgit v1.2.1 From 8f20806ac6eb7487c97f7d1c6d1b44acf0ad7674 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 2 Jan 2018 19:52:46 -0500 Subject: RT# 34134 - added open invoices selection when selecting pay specific invoice --- httemplate/elements/tr-select-invoice.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'httemplate/elements/tr-select-invoice.html') diff --git a/httemplate/elements/tr-select-invoice.html b/httemplate/elements/tr-select-invoice.html index 03625b659..70923b633 100644 --- a/httemplate/elements/tr-select-invoice.html +++ b/httemplate/elements/tr-select-invoice.html @@ -22,4 +22,11 @@ my %opt = @_; +my @records = qsearch( { + 'select' => '*', + 'table' => 'cust_bill', + 'hashref' => { 'custnum' => $opt{custnum} }, + 'order_by' => 'ORDER BY _date', +}); + -- cgit v1.2.1 From 9d90ce6a6d2c107c0a3bcb7451932b7108466c27 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 3 Jan 2018 10:43:28 -0500 Subject: RT# 34134 - added documentation for new feature --- httemplate/elements/tr-select-invoice.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'httemplate/elements/tr-select-invoice.html') diff --git a/httemplate/elements/tr-select-invoice.html b/httemplate/elements/tr-select-invoice.html index 70923b633..3728d348d 100644 --- a/httemplate/elements/tr-select-invoice.html +++ b/httemplate/elements/tr-select-invoice.html @@ -1,3 +1,15 @@ +<%doc> + +Example: + + include( '/elements/tr-select-invoice.html', + + #opt - most get used in /elements/tr-amount-fee + 'custnum' => 4, # customer number, + 'prefix' => 'pre', # prefix to fields and row ID's + ) + + <% mt('Open invoices') |h %> @@ -6,7 +18,6 @@ ID = "<% $opt{prefix} %>invoice" NAME = "<% $opt{prefix} %>invoice" onChange = "<% $opt{prefix} %>invoice_select_changed(this)" - <% $opt{disabled} %> > % foreach my $record (@records) { -- cgit v1.2.1