When I try to create multiple purchase orders from newly created form, it is throwing error “Order Account cannot be changed” but if I create single purchase order, I can be able to create it. What can be done to resolve this?
As per the error message, i think that when you are creating multiple PO, the first record is getting created without any problem but when the second PO is getting created, it is changing the vendor account of the first record only. order account is nothing but vendor code in purch table.
Hi, Try clearing PurchTable everytime. PurchTable.clear() initially and start doing all other process. This may work. Go for a try. Regards, Kuppusamy S
I’ve just got the same error when I try the creating Sales Order through xpp code, I put Salestable = null; SalesTable.clear() and the code running as well.