Hello everyone, I've written a map reduce to automatically create bill payments for each bills matching a search. Everything works when bill currency = subsidiary currency. My bill payment is generated. However, when my vendor is multi-currency and the bill currency is different from the subsidiary currency, I get this message: System- {"type": "error.SuiteScriptError", "name": "USER_ERROR", "message": "You must enter at least one line item for this transaction.", "id":"", "stack":["anonymous(N/serverRecordService)", "map(/SuiteScripts/MRmb. js:55)"], "cause":{"type": "internal error", "code": "USER_ERROR", "details": "You must enter at least one line item for this transaction.", "userEvent":null, "stackTrace":["anonymous(N/serverRecordService)", "map(/SuiteScripts/MRmb.js:55)"], "notifyOff":false}, "notifyOff":false, "userFacing":false}
In UI, you need to go to the bill payment page and select the currency to display the bill in question (hence the message You must enter at least one line item for this transaction, as the bill payment currency with the script is the subsidiary's currency).