peskywinnets
Registered User.
- Local time
- Today, 17:58
- Joined
- Feb 4, 2014
- Messages
- 582
So I'm slowly trying to create/deploy and order management system, to replace the 'off the shelf' version I['m using to manage my ebay orders.
I've got a fair way already (learned how to use Ebay's API & parse the XML into normalised data spread across several tables), but I'm suffering from brain fog & don't know how best to tackle this particular situation I'm now confronted with.
Quite often customers buy something from me, then an hour or two later they buy something else...occasionally they buy a third item...but not always in the same currency. So, to make processing/packing orders a little easier, I see away of combining incomings order from the same person (& in the same currency) into one 'combined' order (the software that I use calls this action merge').
Imagine this (grossly simplified) incoming Ebay order data...

Mr Jones has placed three orders. Two of them (those in green) are to the same address & placed in the same currency & can therefore be treated as one order (his last order - in red - is in a different currency & needs to be treated as a separate order as you can't combine orders in different currencies into one)...therefore I'd like the items to be combined into one order ...what would be the approach here?
I've got a fair way already (learned how to use Ebay's API & parse the XML into normalised data spread across several tables), but I'm suffering from brain fog & don't know how best to tackle this particular situation I'm now confronted with.
Quite often customers buy something from me, then an hour or two later they buy something else...occasionally they buy a third item...but not always in the same currency. So, to make processing/packing orders a little easier, I see away of combining incomings order from the same person (& in the same currency) into one 'combined' order (the software that I use calls this action merge').
Imagine this (grossly simplified) incoming Ebay order data...

Mr Jones has placed three orders. Two of them (those in green) are to the same address & placed in the same currency & can therefore be treated as one order (his last order - in red - is in a different currency & needs to be treated as a separate order as you can't combine orders in different currencies into one)...therefore I'd like the items to be combined into one order ...what would be the approach here?