Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for "progress payment invoices" (Abschlagsrechnung) #35

Closed
4 tasks done
dragotin opened this issue Apr 14, 2018 · 1 comment
Closed
4 tasks done

Comments

@dragotin
Copy link
Owner

dragotin commented Apr 14, 2018

Often, after a construction started for example, a "Abschlagsrechnung" is sent to make the client pay for material that was delivered, but the project is not finished yet. It is about a pauschal sum that is later subtracted from the final invoice.

User story: The user clicks on an "Offer/Quote (Angebot)" or "Acceptance of Order (Auftragsbestätigung)" and selects "Followup Document". In the following dialog, the doc type for "Progress Payment Invoice" is selected. A normal document is created.

Later, the user clicks again on the "Offer" and wants to create the final invoice. Now, in the following dialog, there is a hint that there is one or more "Abschlagsrechnung" for this doc. Once the user creates the final invoice, an item for each "Abschlagsrechnung" is created automatically with the negative sum of it.

Database Migration steps:

  • Create the new doc types Progress Payment Invoice, Partial Invoice and Final Invoice
  • Create attributes for the new doc types: SubstractPartialInvoice for the Final Invoice and PartialInvoice for Progress Payment Invoice, Partial Invoice.
  • Add a column predecessor to the document table to track the document predecessor (store Document Ident)
  • Create predecessor and successor definitions for the Doctypes, ie. Partial Invoice follows on Offer and Final Invoice follows on Partial Invoice.

When creating the final invoice as a predecessor of document ident XY, a query needs to be done if there are other documents with a doc_type that has the attribute PartialInvoice and the predecessor == XY. For all found documents, an item has to be created in the final invoice doc, with the netto sum of the partial invoice.

@dragotin dragotin added this to Doing in Kraft KF5 Apr 14, 2018
@dragotin
Copy link
Owner Author

This is already available from version 0.90.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant