X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FCondition%2Fcust_bill_age_before_payby.pm;h=5a81fbbd015c64013a1cfa44fb9d55a9e1e65288;hb=e522b7d9cdd4ce8bc1cd3e3d1d9a56afb470ff93;hp=96d9da8d8f347dba97495f0fe680b20edb8f6b9d;hpb=a563768f26549778585a03835e655e65e2dd6919;p=freeside.git 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