Recently we had a requirement of Increasing the PO quantity on the PO revision but allow the quantity increase. So, We used the automation script getPreviousValue() and getCurrentValue() functions in order to resolve this requirement.
Create Database Error Message on Database Config Application.
Object : POLINE
Attribute: ORDERQTY
Events: Validate
Type: Attribute Type Launch Point
Body:
status=mbo.getString("POREV.STATUS")
qty=mbo.getMboValue("ORDERQTY")
#Get Previous Value
previousQTY = qty.getPreviousValue().asFloat()
#Get Modified Value
currQTY= qty.getCurrentValue().asFloat()
if status != "APPR":
if currQTY > previousQTY:
errorgroup = "po"
errorkey = "revqty"
No comments:
Post a Comment