write the condition using Jython script in FDMEE
Hi All,
I need to write the condition for following source
Source
LEDGER_ID|YEAR|PERIOD|COMPANY|COST_CENTER|ACCOUNT|INTERCOMPANY|CURRENCY_CODE|CURR_MNTH_AMT
1|2020|MAR-20|003 |2148 |40074 |000 |USD |7464
Condition is
Entity(TLRINA03) = LEDGER_ID(1) AND COMPANY(003) AND CURRENCY_CODE(USD)
Write the condition in Jython
account = fdmRow.getString("ACCOUNT")
Ledger = fdmRow.getString("LEDGER_ID")
Company = fdmRow.getString("COMPANY")
Currency = fdmRow.getString("CURRENCY_CODE")
if (account == "40074" and Ledger == "1" and Company == "003" and Currency == "USD"):
fdmResult = "TLRINA03"
else:
fdmResult = "[None]"
above condition is not working, Please suggest me to fix this issue.
Thanks,
Prabhakar.