cancel
Showing results for 
Search instead for 
Did you mean: 

Change the ItemCode in a document line

Former Member
0 Kudos

Hello Everybody

I'm looking for help. I try to change an ItemCode in a documentline that is for replacing it by a fake itemcode to let me ignore that line cause i can't remove it but wen i update the document i have an error number -10 concerning the VAT Group!!!

oDoc.lines.itemcode = "CANCELLED"

oDoc.lines.price=0

oDoc.lines.quantity=1

odoc.update()

Help needed!

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sofiane,

Does the CANCELLED item exist?

Does it have a default VAT group?

Try doing exactly the same using the GUI, and it is supposed to give the same error. Try debugging this way.

Regards,

Ibai Peñ

Former Member
0 Kudos

Thanks Ibai

The cancelled item exists and have the default vat group and the trouble is that when i do it on the client it works and it gives no error the update is done!

Answers (0)