Dylan Mann
09/30/2022, 5:09 PMcurrency
and exchangerate
• I can create bills with a currency
and exchangerate
using suitescript regardless of the primary currency of the vendor, as long as the currency is in the vendor's currency
list
• I can pay bills via the UI regardless of the primary currency of the vendor.
• I can transform bills to payments via suitescript if the currency
is the same as the vendor currency
(primary currency)
What doesn't work:
• I get the error: "You must enter at least one line item for this transaction" when transforming bills to payments if the vendor primary currency is different from the bill currency.
Anyone have any ideas or can point me in the right direction to find an answer here?alien4u
09/30/2022, 5:13 PMDylan Mann
09/30/2022, 5:13 PMDylan Mann
09/30/2022, 5:53 PMexchangerate
and using isDynamic
doesn't change anything unfortunatelyDylan Mann
09/30/2022, 5:56 PMbattk
09/30/2022, 7:04 PMDylan Mann
09/30/2022, 7:15 PMbattk
09/30/2022, 7:17 PMbattk
09/30/2022, 7:17 PMGo to Transactions => Payables => Enter Bills => List
Select the bill
Click "Make Payment"
are all things that are handled by record.transformbattk
09/30/2022, 7:18 PMbattk
09/30/2022, 7:19 PMbattk
09/30/2022, 7:20 PMDylan Mann
09/30/2022, 7:21 PMbattk
09/30/2022, 7:22 PMDylan Mann
09/30/2022, 7:24 PMDylan Mann
09/30/2022, 7:24 PMbattk
09/30/2022, 7:25 PMbattk
09/30/2022, 7:26 PMDylan Mann
09/30/2022, 7:26 PMDylan Mann
09/30/2022, 7:26 PMDylan Mann
09/30/2022, 7:26 PMbattk
09/30/2022, 7:27 PMbattk
09/30/2022, 7:27 PMbattk
09/30/2022, 7:28 PMbattk
09/30/2022, 7:30 PMvendorbills
default value can be used to limit which transactions are allowed to show in the apply sublistbattk
09/30/2022, 7:31 PMDylan Mann
09/30/2022, 8:18 PMtheCan you expand on this? I see thedefault value can be used to limit which transactions are allowed to show in the apply sublistvendorbills
defaultValues
arg, but am not sure what I'd pass into it to make it apply to the correct billDylan Mann
09/30/2022, 8:19 PM{vendorbills: <id of the bill>}
battk
09/30/2022, 8:40 PMbattk
09/30/2022, 8:41 PMbattk
09/30/2022, 8:42 PMDylan Mann
09/30/2022, 8:49 PMdefaultValues
in suitescript doesn't work.
record.transform({
fromType: "vendorbill",
fromId: "12345",
toType: "vendorpayment",
isDynamic: false,
defaultValues: {'vendorbills': "12345"}})
gives me
INVALID_RCRD_TRANSFRM: You have entered an invalid default value for this record transformation operation
Dylan Mann
09/30/2022, 8:50 PM["12345"]
, 12345
, and [12345]
Dylan Mann
09/30/2022, 8:51 PMcreate
?battk
09/30/2022, 9:24 PMbattk
09/30/2022, 9:26 PMbattk
09/30/2022, 9:26 PM