Hello Community,
I am a trying to create automation script that set GL account
based on desktop requisition line type.
Up to now I have managed set GL account value, but can not be changed.
If I change the value, and for example client and change reservation type,
old value that is set by auto script is backed.
Script uses attribute launch point.
Here is script that I have created:
from psdi.mbo import MboConstants
if (mbo.getString("LINETYPE")== 'SERVICE'):
# we are using single GL segment
mbo.setValue("GLDEBITACCT", "6039001",MboConstants.DELAYVALIDATION)
else:
print "Check for next doc type"
I have checked with different MboConstants, but only with DELAYVALIDATION I was able to set
value for GL field. Also tried to play with GLFormat and define array and to assign that value to GL account also not working.
Thank you in advance
Chavdar
------------------------------
Chavdar Cholev
Openintegra
Sofia
------------------------------
#AssetandFacilitiesManagement#Maximo#MaximoIntegrationandScripting