2 ms·
Sorry, I was in a bit of a hurry. An Invoice has essentially these fields: id InvoiceNo InvoiceDate Amount Currency The id is the unique i
by magicalhippo 5y ago
Sorry, I was in a bit of a hurry. An Invoice has essentially these fields:
id
InvoiceNo
InvoiceDate
Amount
Currency
The id is the unique id in the DB. For the purposes of consolidation we consider (InvoiceNo, Currency) as a tuple. For brevity I didn't include the failure mode of mismatching invoice dates, that can be checked in advance anyway so not terribly relevant.
The invoiceMap maps instance to instance, or the unique id to unique id if you like.