-
Notifications
You must be signed in to change notification settings - Fork 8
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 #201 from invopop/rounding-simplified
Removing total calculator option, increasing accuracy in line calculations
- Loading branch information
Showing
17 changed files
with
257 additions
and
1,268 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
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
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,85 @@ | ||
{ | ||
"$schema": "https://gobl.org/draft-0/envelope", | ||
"head": { | ||
"uuid": "8a51fd30-2a27-11ee-be56-0242ac120002", | ||
"dig": { | ||
"alg": "sha256", | ||
"val": "2346991aab5ee704bd2b0ad14a06260aaf81fa7baca32c2bcd211cbc177aa6a2" | ||
}, | ||
"draft": true | ||
}, | ||
"doc": { | ||
"$schema": "https://gobl.org/draft-0/bill/invoice", | ||
"type": "standard", | ||
"series": "SETT", | ||
"code": "1234", | ||
"issue_date": "2021-01-01", | ||
"currency": "COP", | ||
"tax": { | ||
"tags": [ | ||
"simplified" | ||
] | ||
}, | ||
"supplier": { | ||
"name": "EXAMPLE SUPPLIER S.A.S.", | ||
"tax_id": { | ||
"country": "CO", | ||
"zone": "11001", | ||
"type": "tin", | ||
"code": "9014514812" | ||
} | ||
}, | ||
"lines": [ | ||
{ | ||
"i": 1, | ||
"quantity": "1", | ||
"item": { | ||
"name": "Useful service", | ||
"price": "200000.00" | ||
}, | ||
"sum": "200000.00", | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"percent": "19%" | ||
} | ||
], | ||
"total": "200000.00" | ||
} | ||
], | ||
"payment": { | ||
"advances": [ | ||
{ | ||
"desc": "Prepaid", | ||
"percent": "100%", | ||
"amount": "238000.00" | ||
} | ||
] | ||
}, | ||
"totals": { | ||
"sum": "200000.00", | ||
"total": "200000.00", | ||
"taxes": { | ||
"categories": [ | ||
{ | ||
"code": "VAT", | ||
"rates": [ | ||
{ | ||
"base": "200000.00", | ||
"percent": "19%", | ||
"amount": "38000.00" | ||
} | ||
], | ||
"amount": "38000.00" | ||
} | ||
], | ||
"sum": "38000.00" | ||
}, | ||
"tax": "38000.00", | ||
"total_with_tax": "238000.00", | ||
"payable": "238000.00", | ||
"advance": "238000.00", | ||
"due": "0.00" | ||
} | ||
} | ||
} |
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,41 @@ | ||
{ | ||
"$schema": "https://gobl.org/draft-0/bill/invoice", | ||
"code": "1234", | ||
"series": "SETT", | ||
"currency": "COP", | ||
"issue_date": "2021-01-01", | ||
"tax": { | ||
"tags": ["simplified"] | ||
}, | ||
"supplier": { | ||
"tax_id": { | ||
"country": "CO", | ||
"code": "9014514812", | ||
"zone": "11001" | ||
}, | ||
"name": "EXAMPLE SUPPLIER S.A.S." | ||
}, | ||
"lines": [ | ||
{ | ||
"quantity": "1", | ||
"item": { | ||
"name": "Useful service", | ||
"price": "200000.00" | ||
}, | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"percent": "19%" | ||
} | ||
] | ||
} | ||
], | ||
"payment": { | ||
"advances": [ | ||
{ | ||
"desc": "Prepaid", | ||
"percent": "100%" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.