wip
This commit is contained in:
@@ -514,15 +514,16 @@ func (s TransactionImpl) validateAndEnrichTransaction(ctx context.Context, tx *s
|
|||||||
|
|
||||||
// There are the following constallations and their explanation:
|
// There are the following constallations and their explanation:
|
||||||
//
|
//
|
||||||
// Account | TreasureChest | Value | Description
|
// Account | TreasureChest | Value | Description
|
||||||
// Y | Y | + | Invalid
|
// --------|---------------|-------|----------------
|
||||||
// Y | Y | - | Bought a good
|
// Y | Y | + | Invalid
|
||||||
// Y | N | + | Income
|
// Y | Y | - | Bought a good
|
||||||
// Y | N | - | For moving money between accounts
|
// Y | N | + | Income
|
||||||
// N | Y | + | Saving
|
// Y | N | - | For moving money between accounts
|
||||||
// N | Y | - | For moving money between treasure chests
|
// N | Y | + | Saving
|
||||||
// N | N | + | Invalid
|
// N | Y | - | For moving money between treasure chests
|
||||||
// N | N | - | Invalid
|
// N | N | + | Invalid
|
||||||
|
// N | N | - | Invalid
|
||||||
func (s TransactionImpl) updateErrors(t *types.Transaction) {
|
func (s TransactionImpl) updateErrors(t *types.Transaction) {
|
||||||
errorStr := ""
|
errorStr := ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user