-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Finance | ||
|
||
## Entity-Relationship Diagram | ||
|
||
![erd](./finance.png) | ||
|
||
> bundle exec erd --cluster --inheritance --open --only "BankAccount,BankGateway,BankTransaction,FinancialLink,FinancialTransactionClass,FinancialTransactionType,FinancialTransaction,Invoice" --title "Foodsoft / Finance" --filetype=png | ||
### Financial Transaction (ft) | ||
|
||
* The amount of a Financial Transaction may be `null`, indicating that it's incomplete (e.g., a Mollie online payment). | ||
* Payment attributes can be used by payment provider plugins to keep track of external references/state, etc. | ||
|
||
### Financial Transaction Type | ||
|
||
Types should be used to add structured information to a transaction. For example, this could be used to have different types depending on the source of money (cash vs. bank transfer). | ||
|
||
### Financial Transaction Class | ||
|
||
Classes are shown as different columns in the tables and are used to group transactions of specific types. They should be used if not the whole amount of the order group should be used to order food. For example, if there is a deposit or membership fee, which is independent of the normal credit. | ||
|
||
### Invoice | ||
### Bank Account | ||
### Bank Gateway | ||
### Bank Transaction | ||
### Financial Link |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.