diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 15:24:08 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 15:24:08 -0700 |
commit | b3d08673e04aaebcba6bd5dd1074d5bf309b2cf4 (patch) | |
tree | 8da445b509a14ade7add5d82226b88f8ef91467e | |
parent | f2aed236d3211d83f06a06b3f15320316550608c (diff) |
fix "Invoice is newer than last payment type change" condition, RT#33766
-rw-r--r-- | FS/FS/part_event/Condition/cust_bill_age_before_payby.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm b/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm index 96d9da8d8..5a81fbbd0 100644 --- a/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm +++ b/FS/FS/part_event/Condition/cust_bill_age_before_payby.pm @@ -34,12 +34,12 @@ sub condition { 'order_by' => 'ORDER BY history_date DESC LIMIT 1', })) { - my $newest = $replace_new->history_date; + $newest = $replace_new->history_date; my $replace_old = qsearchs({ 'table' => 'h_cust_main', 'hashref' => { 'custnum' => $replace_new->custnum, 'history_action' => 'replace_old', - 'history_date' => $replace_new->history_date, + 'history_date' => $replace_new->history_date, #fuzz? } }) or next; #no replace_old? ignore and continue on i guess |