Hi experts,
I have to add a new field as approved (boolean) in the customer table. Then i have to post a sales order for the customer. after entering the items for the sales order, i have to press the post button and select invoice . if i enter the invoice option it has to post an error as not approved customer, since the approved field for the customer is false.
i have created a field in the customer table then , in the codeunit of Sales-post (number: 80) i added the code
- if customer.Approved <> true then
- error(text);
i have delclared all the variables in c/al globals.
while posting i get the error , even for all the customers whose approved value is true.
it would be nice if u help me.
thanks in advance.