Hi I have added new lines to warehouse receipt line using code and realize Item tracking line does not match with warehouse receipt line.
For example,
Im using WhseRecLine for Warehouse reciept line record and reserveEnt for reservation entry record.
WhseRecLine."Source Document" := whseRecLine."Source Document"::"Purchase Order";
WhseRecLine."Source No." := JpnTranDet.THOPONO;
WhseRecLine."Item No." := JpnTranDet.Item;
WhseRecLine."Description" := purchLine."Description";
WhseRecLine."Bin Code" := WhseRecHead."Bin Code";
WhseRecLine."Invoice No." := JpnTranDet."TGINV1 & TGINV2";
Evaluate(whseQty, JpnTranDet.THQTY);
WhseRecLine.Quantity := whseQty;
WhseRecLine."Qty. to Receive" := whseQty;
WhseRecLine."Due Date" := purchHeader."Document Date";
WhseRecLine."Unit of Measure Code" := purchline."Unit of Measure Code";
whseRecLine."No." := WhseRecHead."No.";
//whseRecLine."Qty. (Base)" := PurchLine."Qty. to Receive (Base)";
WhseRecLine."Qty. (Base)" := PurchLine."Quantity (Base)";
WhseRecLine."Qty. Outstanding" := PurchLine."Quantity (Base)";
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
dynamicsuser.net/.../developers
I will open this up to the community in case they have something to add.
Thanks.