-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from zhang-accounting/345-allow-multiple-lead…
…ing-zero-in-amount 345 allow multiple leading zero in amount
- Loading branch information
Showing
14 changed files
with
96 additions
and
16 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
5 changes: 5 additions & 0 deletions
5
integration-tests/allow_balance_account_on_the_open_day/main.zhang
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,5 @@ | ||
1970-01-01 open Assets:2 CNY | ||
booking_method: "FIFO" | ||
|
||
1970-01-01 balance Assets:2 00.00 CNY | ||
|
11 changes: 11 additions & 0 deletions
11
integration-tests/allow_balance_account_on_the_open_day/validations.json
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,11 @@ | ||
[ | ||
{ | ||
"uri": "/api/store", | ||
"validations": [ | ||
[ | ||
"$.data.errors.length()", | ||
0 | ||
] | ||
] | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
integration-tests/allow_multiple_leading_zero_in_amount/main.zhang
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,16 @@ | ||
1970-01-01 open Assets:1 CNY | ||
booking_method: "STRICT" | ||
|
||
1970-01-01 open Assets:2 CNY | ||
booking_method: "FIFO" | ||
|
||
|
||
1970-01-01 balance Assets:2 00.00 CNY | ||
|
||
1970-01-02 " " "" | ||
Assets:1 -0001.0 CNY | ||
Assets:1 001 CNY | ||
|
||
1970-01-02 " " "" | ||
Assets:1 -000.10 CNY | ||
Assets:1 00.1 CNY |
11 changes: 11 additions & 0 deletions
11
integration-tests/allow_multiple_leading_zero_in_amount/validations.json
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,11 @@ | ||
[ | ||
{ | ||
"uri": "/api/store", | ||
"validations": [ | ||
[ | ||
"$.data.errors.length()", | ||
0 | ||
] | ||
] | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
integration-tests/allow_multiple_leading_zero_in_amount_beancount/main.bean
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,15 @@ | ||
1970-01-01 open Assets:1 CNY | ||
booking_method: "STRICT" | ||
|
||
1970-01-01 open Assets:2 CNY | ||
booking_method: "FIFO" | ||
|
||
1970-01-01 balance Assets:2 00.00 CNY | ||
|
||
1970-01-02 " " "" | ||
Assets:1 -0001.0 CNY | ||
Assets:1 001 CNY | ||
|
||
1970-01-02 " " "" | ||
Assets:1 -000.10 CNY | ||
Assets:1 00.1 CNY |
11 changes: 11 additions & 0 deletions
11
integration-tests/allow_multiple_leading_zero_in_amount_beancount/validations.json
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,11 @@ | ||
[ | ||
{ | ||
"uri": "/api/store", | ||
"validations": [ | ||
[ | ||
"$.data.errors.length()", | ||
0 | ||
] | ||
] | ||
} | ||
] |
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
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