Hello,
I am trying to update existing PO with batch numbers, but when I run my code nothing is happening.
Here is an example with a single row:
Set bO = oCompany.GetBusinessObject(oPurchaseDeliveryNotes)
bO.GetByKey (22)
bO.Lines.SetCurrentLine (0)
bO.Lines.ItemCode = "0007"
bO.Lines.Quantity = 5
bO.Lines.BatchNumbers.SetCurrentLine (0)
bO.Lines.BatchNumbers.BatchNumber = 14600012
bO.Lines.BatchNumbers.Quantity = 5
bO.Lines.BatchNumbers.Add
lreturncode = bO.Update()
Thanks, any help would be appreciated!
RGDS,
Zsolt