Update fields on a Purchase Order

liizzliizz Member Posts: 125
Hi all,

I have done a customised form whereby user has the possibility to create a PO which will create entry in the standard purchase order form(50).

Now, there is a boolean field[Created] will flag to TRUE if its created and I have placed the field(Qty. to Receive which comes from the form 50) on the customised form.

Also, each time when a user wants to change the qty. to receive on form 50 before posting, it should update the field Qty. to Receive found on customised form. And also after posting, it should take the new value for that field.

Please find my codes below:


ReqLineL.SETRANGE(Created,TRUE);
ReqLineL.SETRANGE("Last PO No.",PurchaseLine."No.");
ReqLineL.SETRANGE("Line No.",PurchaseLine."Line No.");
IF ReqLineL.FINDSET THEN BEGIN
REPEAT
ReqLineL."Purch. Qty to Receive":=PurchaseLine."Qty. to Receive";
ReqLineL.MODIFY;
UNTIL ReqLineL.NEXT=0;
END;

The codes are not working actually.

Help me plz..

Thanks

Liizz

Comments

Sign In or Register to comment.