[freeside-users] Error: can't insert customer: Illegal payby: BILL

Erreu Gedmon eg at keyway.net
Sat Oct 14 21:30:29 PDT 2017


These are my notes from when I ran into this issue:

# Name: Illegal payby: BILL
# Description: Properly formatted Batch Customer Import file triggers error: "Illegal payby: BILL" in cust_main.pm
# Expected: Properly formatted import file should not trigger errors.
# Reproduce: Create Batch Customer Import file with null payinfo field.
# Affects: .csv Batch Customer Imports in Freeside 4.1
# Cause: Possibly caused by deprecation of the payby field?
# Workaround: modify import module /usr/share/perl5/FS/cust_main/Import.pm
#             Change $payby = 'BILL'; to $payby = ''; in the relevant elseif section(s) (two single quotes)
# Notes: I'm not quite sure what the programmers intent was when they set this field to 'BILL'. So I'm not recommending
#        this workaround be implemented as a fix. I do wish there were more comments though.

Erreu Gedmon

--
"You see persons and things not as they are but as you are."
        -- Anthony De Mello

On 10/14/2017 04:31 PM, Isaac Uban wrote:
> Trying to import customer list (Extended plus Company) and I'm getting Error: can't insert customer: Illegal payby: BILL
>  
> Ive checked formatting and it looks fine to me.
> I have been told this issue has been fixed in 4.3 however I'm running 4.2 and don't know how to upgrade.
>  
> Any help would be greatly appreciated.
>  
> Thanks,
>  
> Isaac
>  
>
>
> _______________________________________________
> freeside-users mailing list
> freeside-users at freeside.biz
> http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://freeside.biz/pipermail/freeside-users/attachments/20171014/487ae1b2/attachment.html>


More information about the freeside-users mailing list