I am using epicor Vantage and i am trying to get one table copy to another.
I have two fields from the same table.
For Each RcvDtl Where RcvDtl.Lotnum <> 0
DO: RcvDtl.lotnum = Rcvdtl.PONum
I know that this code doesnt work obviously it totally wrong. but this is what im trying to accomplish. I want The LotNum to Equal the POnum. I only need there the Relationship statment. the program will know how to execute it.
I had Figured out a Solution my self, and the Code for this to happen is as follows. However
For each ttrcvdtl where ttrcvdtl.RowMod = 'A' and
ttrcvdtl.PONum <> 0:
assign ttrcvdtl.LotNum = string(ttrcvdtl.PONum).
I would also like to Add that when the the Supplier Qty is 0 that it would not get a lot number so. this is what i have tried so far but it doesnt Seem to work. If you need more infor on whats happening i will try my best to explain
For Each ttrcvdtl where ttrcvdtl.RowMod = 'A' and
ttrcvdtl.POnum <> 0 and ttrcvdtlMassRecepitsupplierqty > 0:
Assign ttrcvdtl.LotNum = string(ttrcvdtl.POnum).