This topic contains 4 replies, has 0 voices, and was last updated by farrago 7 years, 8 months ago.
-
AuthorPosts
-
February 27, 2017 at 10:30 am #23395
farragoCan we access {paymentmethod} in a fulfillment record? If so, how?
I need to show what sales channel each order came in through on our fulfillment record. The best way is to use a custom transaction body field that reference the payment method as each sales channel has a different payment method. So, I made a custom formula field like this (set it to 'store value'= no)…
CASE
WHEN {paymentmethod} = 'Amazon Payment' THEN 'Amazon'
WHEN {paymentmethod} = 'Walmart-EFT' THEN 'Walmart'
WHEN {paymentmethod} = 'eBay-Paypal' THEN 'eBay'
ELSE 'www.ourdomain.com'
END
It works great on sales orders, but when applied to a fulfillments it gives us an error.
This is a cached copy. Click here to see the original post. -
February 27, 2017 at 11:06 am #23396
erictgrubaughIf you can get it from the Sales Order, then on the Fulfillment you might try `{createdfrom.paymentmethod}` instead. This will reach back to the originating Sales Order and grab the payment method directly from there.
-
February 27, 2017 at 11:09 am #23397
chanarbonAgreeing with Eric. If you also check it from the Records Browser (https://system.netsuite.com/help/hel…lfillment.html) paymentmethod is not a field in the item fulfillment but it is rather a field sourced from the sales order to which it is created from.
-
February 27, 2017 at 12:41 pm #23398
farragoThanks. It worked. Used…
CASE
WHEN {createdfrom.paymentmethod} like 'Amazon%' THEN 'Amazon'
WHEN {createdfrom.paymentmethod} like 'Walmart%' THEN 'Walmart'
WHEN {createdfrom.paymentmethod} like 'eBay%' THEN 'eBay'
ELSE 'our web site'
END
Lets say the custom filed ID was {custbodysales_channel}, then when adding this custom field to the fulfillment email (via NetSuite's customize website text), would we use <%=getCurrentAttribute('itemfulfillment','custbody sales_channel ')% > to get that field into our fulfillment emails? I tried that and I get an "error processing dynamic tag" message appearing in those emails.
-
February 27, 2017 at 1:12 pm #23399
farragoFound the convoluted workaround to adding the custom field to the fulfillment email in SuiteAnswers (Answer Id: 31505).
-
AuthorPosts
You must be logged in to reply to this topic.