GEWIS / sudosos-backend

SudoSOS is a Node.js-based Bar and POS system made for study association GEWIS.
https://sudosos.gewis.nl
GNU Affero General Public License v3.0
3 stars 3 forks source link

refactor: Make generating/calculating invoices and involving substructures separate from saving #186

Open CodeNamedRobin opened 1 month ago

CodeNamedRobin commented 1 month ago

Description

This PR is mostly preparing for an eventual "invoice preview" option. Before it was the case that both calculating and saving to the database was in the same function each time, these are now split.

Related issues/external references

None

Types of changes

Refactor