Hi All,
When Items are issued from the Storeroom, we need to apply a Surcharge of 3 % on the work order. I do not want to show the surcharge on the issue line cost (Matusetrans) but rather only add it to the Actual Material Cost of the work order.
I wrote an automation script on Work Order Object, initialize method and had to supress access control of the actmatcost to make it work.
totalmatcost =0
if v_totalmatuse is not None:
if len(v_totalmatuse)>0:
for value in v_totalmatuse:
if value is not None and value !=0:
totalmatcost += value
v_actmatcost = v_actmatcost + (0.03 * totalmatcost)
This updates the individual work order costs in the View Costs window. However does not update the field in the DB and which is preventing it from rolling up to the parent.
Any help will be appreciated. Thanks.
#Customizations------------------------------
Thanks,
Megha Tatiya
------------------------------