Skip to Content
avatar image
Former Member

Simply trying to add a Document line in Goods Receipt (oInventoryGenEntry)

Probably the way I'm doing it isn't right. I'm a little new in this.

I tried many way from the HELP way to MY way and I always get the same error.

-5002 Item no. is missing [IGN1.ItemCode]

Here's the latest attempt at doing it.

oGoodsReceipt.Lines.ItemCode = oDelivery.Lines.ItemCode;

oGoodsReceipt.Lines.ItemDescription = oDelivery.Lines.ItemDescription;

oGoodsReceipt.Lines.Quantity = oDelivery.Lines.Quantity;

oGoodsReceipt.Lines.Add();

int ErrCode;

string ErrMsg;

int retVal = oGoodsReceipt.Add();

if(retVal != 0)

{

oCompany.GetLastError(out ErrCode, out ErrMsg);

MessageBox.Show(ErrCode.ToString() + " " + ErrMsg);

}

Since the oDelivery got the right data (I tested it) I even tried to put data manually it should work.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 04, 2006 at 01:13 PM

    I tried "Invoice Document - Add Method Sample"

    No luck yet

    Add comment
    10|10000 characters needed characters exceeded