X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=925eb4e444868e78ca8b2f481c969686c5a34326;hb=ca5b77df888ac14882c290f10f625654e39d9072;hp=f8157c478c23ddfbefe6deab0fc1e764a95d62d7;hpb=12b91e6f2cbf37644b77e42d7353fab325b6a71d;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index f8157c478..925eb4e44 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4617,6 +4617,8 @@ PAYBYLOOP: next if grep(/^$field$/, qw( custpaybynum payby weight ) ); next if grep(/^$field$/, @preserve ); next PAYBYLOOP unless $new->get($field) eq $cust_payby->get($field); + # check if paymask exists, if so stop and don't save, no need for a duplicate. + return '' if $new->get('paymask') eq $cust_payby->get('paymask'); } # now check fields that can replace if one value is blank my $replace = 0;