Hello,
I have an entity mapping set up to map the location in Shopify to a specific branch in Acumatica. We use Shopify Plus for both ecommerce and point of sale. Each retail location is it’s own branch.
Here is the mapping code to assign the correct branch:
=Switch(
CStr([OrderData -> Transactions.LocationId]) = CStr('68260528265'), '10',
CStr([OrderData -> Transactions.LocationId]) = CStr('68260626569'), '20',
CStr([OrderData -> Transactions.LocationId]) = CStr('68260659337'), '30',
CStr([OrderData -> Transactions.LocationId]) = CStr('66861367433'), '50',
CStr([OrderData -> Transactions.LocationId]) = CStr('68260757641'), '60',
CStr([OrderData -> Transactions.LocationId]) = CStr('68260593801'), '70',
True, '00'
)
This works for all orders EXCEPT if the order is discounted 100% so the order total is $0.00
Then it appears to not follow any logic here.
Any recommendations on how to fix this?
Thanks!