Hi expert,
In the page 46, when TYPE is ITEM, the Unit cost can be updated under a certain conditions: unit cost can only be updated for specific items by users, otherwise, the unit cost cannot be changed. Is adding the trigger for the unit cost field the only solution? Please advise! Thank you!
*This post is locked for comments
Hi,
Another option:
As mentioned, you do not want user to edit the unit cost except some specific items so this needs to be a setup base. you need to define one boolean field on item card as "Edit unit cost in SO" and onvalidate trigger of Unit cost on page 46 you can testfield the item card boolean. if it is true then it should allow otherwise give the error.
Regards,
-Saurabh Shah
hi,
you can use the onvalidate trigger of the "unit cost" field to check, if the curr. user is allowed to change the "unit cost" value and maybe show an error message ...
alternatively:
some small changes in the page 46.
define a global variable UnitCostEditable with datatype bool and set this variable to the property Editable of the field "Unit Cost". Set this new variable in the onopenpage trigger to false. set the value of this variable in the onaftergetrecord trigger to true, if your conditions are met.
best regards
Thank you for your reply! We don't want anyone to change the unit cost in the sales order page (Open sales order), but for some particular items, the users can update the cost when entering the sales order. Thank you!
hi,
please describe the concrete conditions, when the unit cost is not changeable. check the ledger entries, value entries, ...
regards
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156