Page 1 of 1

Alias a Physical Item with a Non-Physical item

PostPosted: Tue May 03, 2022 6:46 pm
by SBarnes
We have a customer who because they need to have a given product appear in different spots in their web site by different names but then want these to revert back to the original when the order goes into Jiwa through the api.

My original idea had been to use a look up custom field to link back to the physical item and then provide a custom route that would do the replacing with the physical item and then call the real Jiwa post order route.

I now realise I may not need the new route as I can use the start deserialise event to edit the DTO's data instead are the only fields I will need to change in JiwaFinancials.Jiwa.JiwaServiceModel.SalesOrders.SalesOrderLine:

  • Inventory Id
  • Part No
  • Non Inventory
  • Aux2

Re: Alias a Physical Item with a Non-Physical item  Topic is solved

PostPosted: Wed May 04, 2022 1:00 am
by Mike.Sheen
SBarnes wrote:I can use the start deserialise event to edit the DTO's data instead are the only fields I will need to change in JiwaFinancials.Jiwa.JiwaServiceModel.SalesOrders.SalesOrderLine:

  • Inventory Id
  • Part No
  • Non Inventory
  • Aux2


Probably.

I'd be inclined to throw away the existing DTO and provide a new one - in case there are other fields you don't want to come through that neither of us have considered the impact of (such as category descriptions which would impact sales reporting / analytics).

Re: Alias a Physical Item with a Non-Physical item

PostPosted: Wed May 04, 2022 9:48 am
by SBarnes
By DTO I am assuming you mean the line not the entire sales order?

Re: Alias a Physical Item with a Non-Physical item

PostPosted: Wed May 04, 2022 10:31 am
by Mike.Sheen
SBarnes wrote:By DTO I am assuming you mean the line not the entire sales order?


Yep.