Revisioning for company information #23

Open
opened 2020-04-12 12:07:12 +02:00 by paul · 5 comments
Owner

At some point company info might change (for example a move) but old invoices should be generated as they were at that time. Hence, the database keep track of the revisions and couple invoices with the right version of the company info.

(Imported from Ticgit issue ba1a26.)

At some point company info might change (for example a move) but old invoices should be generated as they were at that time. Hence, the database keep track of the revisions and couple invoices with the right version of the company info. *(Imported from Ticgit issue ba1a26.)*
paul added the
enhancement
label 2020-04-12 12:07:12 +02:00
Author
Owner

Two issues:

  • The user interface should be able to forcible change specific information on all company information revisions
  • A new revision should only be created when the company information is associated with 1 or more invoices. Question: Should it be possible to squash all revisions into a single one?
Two issues: * The user interface should be able to forcible change specific information on all company information revisions * A new revision should only be created when the company information is associated with 1 or more invoices. Question: Should it be possible to squash all revisions into a single one?
Author
Owner

Added company info revisioning in the models

  • Extended CompanyInfo with an "original" association with the previous revision (in case revisions can be removed in the future).
  • Created a belongs_to relation of Invoice with CompanyInfo and an has_many reverse relation.

Referred to by commit 016cb0b21d.

Added company info revisioning in the models * Extended CompanyInfo with an "original" association with the previous revision (in case revisions can be removed in the future). * Created a belongs_to relation of `Invoice` with `CompanyInfo` and an `has_many` reverse relation. Referred to by commit 016cb0b21d4eff4b92c25775d01ab05c7457f57a.
Author
Owner

Create a revision of the company info when it has related invoiced.

Referred to by commit fb20d2825f.

Create a revision of the company info when it has related invoiced. Referred to by commit fb20d2825f5f870e02d2846ab7b2468c055f8f87.
Author
Owner

Support editing of company info revisions.

Referred to by commit 18451546c0.

Support editing of company info revisions. Referred to by commit 18451546c0b992ba82251125326732e3d5ec0ae1.
Author
Owner

Currently, it is possible to edit past revisions, edit the current revision and get a new one if it has associated invoices. It is not possible to forcibly edit the current revision without creating a new revision if is has associated invoices. This should be possible.

Currently, it is possible to edit past revisions, edit the current revision and get a new one if it has associated invoices. It is not possible to forcibly edit the current revision without creating a new revision if is has associated invoices. This should be possible.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mozcode/stoptime#23
No description provided.