From 501210e1bbf79d8a9d6308257124c44a261bf379 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Wed, 3 Aug 2016 23:04:05 -0500 Subject: RT#42043: Check for cancelled packages with a cancellation date age option [age_newest options] --- httemplate/edit/process/part_event.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httemplate/edit/process') diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html index bac69241c..0293af886 100644 --- a/httemplate/edit/process/part_event.html +++ b/httemplate/edit/process/part_event.html @@ -39,8 +39,8 @@ split(/\0/, $value) }; } elsif ( $info->{'type'} eq 'freq' ) { - $value = '0' if !length($value); - $value .= $params->{$cgi_field.'_units'}; + $value = '0' if !length($value) and !$info->{'allow_blank'}; + $value .= $params->{$cgi_field.'_units'} if length($value); } #warn "value of $cgi_field is $value\n"; -- cgit v1.2.1 From e5aee97b7d4c0cd8d6d0c3f0b1bca05adb676d7d Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Mon, 25 Jul 2016 16:32:30 -0500 Subject: RT#42393: Verification cust_pay_pending handling in history & report --- httemplate/edit/process/cust_pay_pending.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'httemplate/edit/process') diff --git a/httemplate/edit/process/cust_pay_pending.html b/httemplate/edit/process/cust_pay_pending.html index 1bad6cffe..0ff7d26d0 100644 --- a/httemplate/edit/process/cust_pay_pending.html +++ b/httemplate/edit/process/cust_pay_pending.html @@ -59,6 +59,15 @@ if ( $action eq 'delete' ) { $title = 'Pending payment completed (decline)'; } +} elsif ( $action eq 'reverse' ) { + + $error = $cust_pay_pending->reverse; + if ( $error ) { + $title = 'Error reversing pending payment'; + } else { + $title = 'Pending payment completed (reverse)'; + } + } else { die "unknown action $action"; -- cgit v1.2.1