hello everyone,
I want to know how to create a job by code in AL/Business Central.
I tried this but I get an error for "Bill-to customer" field:
you cannot change Bill-to customer no, because one or more entries are associated with this job
By creating the job manually, we need to choose a customer from Customer Modal. And Bill-to city, Bill-to Address...etc. will be filledout.
*This post is locked for comments
Hi Subhashis
I did following to solve it, I don't get any error now.
if Customer.GetFilter("Bill-to Customer No.") <> '' then if Customer.GetRangeMin("Bill-to Customer No.") = Customer.GetRangeMax("Bill-to Customer No.") THEN Job.Validate("Bill-to Customer No.", Customer.GetRangeMin("Bill-to Customer No."));
Hi
You Job no. correct ? As per the error some transaction already posted , so you are not allow to change the Bill-to Customer
Regards
Subhashis
Sohail Ahmed
2
mmv
2
Amol Salvi
2