I’m trying to duplicate the PO receipt that is being done. So the user can key in a receipt, specify the # of pallets and I want to creeate thos additional receipts( pallets ) for that line.
So if the user keys in 1000 and # of pallets is 10, then I will create 9 additional PO receipts for that line. I’m duplicating every field except Packline and rowguid. I’m using
Erp.Tablesets.ReceiptTableset rcvData = new Erp.Tablesets.ReceiptTableset();
rcvSvc.GetNewRcvDtl( ref rcvData, VendorNum, PurPoint, PackSlip );
rcvData.RcvDtl[0].Company = Company ;
rcvData.RcvDtl[0].VendorNum = VendorNum ;
rcvData.RcvDtl[0].PurPoint = PurPoint ;
rcvData.RcvDtl[0].PackSlip = PackSlip ;
++PackLine ;
rcvData.RcvDtl[0].PackLine = PackLine ;
all the other fields…
rcvSvc.Update(ref rcvData );
I’m getting the error “A Valid our quantity is required.” and I’m loading the ourqty field with the saved ourqty from the table coming in on postprocess.