RE: Re: How-to implement the e-Commerce-System found in the "IDDD" book

Mauro Servienti <[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <0D71C042265E7B4D871B59569C7774D75E069556@AMXPRD0310MB390.eurprd03.prod.outlook.com>
In italy is pretty common, we have not different invoices but we have payment delays thus payments are related in a chain.
Another case is the credit note that compensate, partially or totally in or more invoices, thus the credit not holds a reference to the original invoice.

But in all my scenarios the referenced entity is already saved in the storage.

.m

Sent from my Yellow Lumia 920
________________________________
From: j.vieten<mailto:[email protected]>
Sent: ‎06/‎06/‎2013 17.28
To: [email protected]<mailto:[email protected]>
Subject: Re: [domaindrivendesign] Re: How-to implement the e-Commerce-System found in the "IDDD" book




On Jun 5, 2013, at 10:11 AM, jamesz1980 wrote:

I have a scenario where a order is not payed all at once. The scenario has different invoice types.
One type is called a part-invoice. The invoices form then a chain.

Lets say the order amount is 1000000 Euro.

The first  part-invoice 1. PI goes over 150000 Euro.
The next part-invoice 2. PI goes over 200000 Euro.
The next part-invoice 3. PI pays   450000 Euro.

When viewing the last Final-Invoice 4.FI which pays the (1000000 Euros minus part-invoices)  the user can view the list of already payed part-invoices and therefore needs to refer to the before payed invoices







In what scenarios would you need to refer to another invoice from one invoice? I.e. what's the use case for this?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.