Hello,
I have requirement that when we select AP–>All Purchase orders–>select any PO–>Receive(tab on action pane)–>product reciept.
When we click on product receipt , on the form PurchEditLines , in the lines tab we can see default values like quantity, unit price from PO line
My requirement is to make quantity empty and make it mandatory, can anyone please suggest , where can I write code …
Please suggest
Hello Team,
Can anyone please suggest , where can I write logic make quantity Zero on the form/PurchEditlines when click on AP–>PO–>product Receipt
These are two separate requirements, therefore it would be better to have two threads, one for each topic.
The form is used for several different types of posting, but if I understand you correctly, you want these changes just for product receipt, therefore you need to put your code to the right class or use the right condition.
To make a data source field look mandatory, use mandatory() method, but you need to do it just for product receipt. You can use a condition like documentStatus == DocumentStatus::PackingSlip. Then you may also want to validate the value.
By the way, the field may be read-only in some cases. Make sure you don’t block the process by making the field empty, mandatory and uneditable.
The best place for the change of quantity may be PurchFormletterParmDataPackingSlip class.
1 Like
Hello Martin Thanks for help.
Applied logic at class/PurchFormletterParmData/createparmreordline()