Hello,
Thanks for the reply.
I have written the code in the CU-80- sales post.
when i click on post and choose ship then after shipping the Boolean value should be updated in the punching master as true.
following is the code i have written :
//START-032
lrecReservationEntry.RESET;
lrecReservationEntry.SETRANGE("Item No.",SalesLine."No.");
lrecReservationEntry.SETRANGE("Source ID",SalesLine."Document No.");
lrecReservationEntry.SETRANGE("Source Ref. No.",SalesLine."Line No.");
lrecReservationEntry.SETRANGE("Source Type",DATABASE::"Sales Line");
lrecReservationEntry.SETRANGE("Source Subtype",1);
IF lrecReservationEntry.FINDSET THEN BEGIN
REPEAT
lrecPunchingMaster.RESET;
lrecPunchingMaster.SETFILTER("Item No.",lrecReservationEntry."Item No.");
lrecPunchingMaster.SETFILTER("W.O.No.",lrecReservationEntry."Source ID");
lrecPunchingMaster.SETRANGE("W.O.Line. No.",lrecReservationEntry."Source Ref. No.");
lrecPunchingMaster.SETFILTER("Valve Serial No.",lrecReservationEntry."Serial No.");
IF lrecPunchingMaster.FINDFIRST THEN
BEGIN
lrecPunchingMaster.Shipped:=TRUE;
lrecPunchingMaster.MODIFY;
END;
UNTIL lrecReservationEntry.NEXT=0;
END;
//STOP-032
with this code i am unable to update the Boolean value.