I have data like this
20000,A,INV1,70000,A,1,100,1/1/2010
20000,A,INV1,1000,AA,2,200,1/1/2010
and code like this
IF NOT TempSalesHeader.GET(TempSalesHeader."Document Type"::Invoice,DataItem[3]) THEN
CreateHeader
ELSE BEGIN
SalesHeader.GET(TempSalesHeader."Document Type",TempSalesHeader."No.");
END;
.
.
.
insertsalesline
this is create sales invoice , for sales header and sales line
in line 2, which is the same invoice (INV1), it should be go to
SalesHeader.GET(TempSalesHeader."Document Type",TempSalesHeader."No.");
but why it always go to
CreateHeader?
what wrong with my code?
Comments
Andwian