Skip to content

Commit

Permalink
add currency_symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Mar 6, 2023
1 parent a45df7d commit 6ce9ee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions account_invoice_import_invoice2data/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Invoice Fields (on document level)
| fieldname | type | Description |
| -------------- | :---------: | :-------------------------------------- |
| currency | char | The currency of the invoice in iso format (EUR, USD) |
| currency_symbol | char | The currency symbol of the invoice (€, $) |
| bic | char | Bank Identifier Code |
| iban | char | International Bank Account Number |
| amount | float | The total amount of the invoice (including taxes) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def invoice2data_to_parsed_inv(self, invoice2data_res):
"iban": re.sub(r"\W+", "", invoice2data_res.get("iban", "")).upper(),
"currency": {
"iso": invoice2data_res.get("currency"),
"currency_symbol": invoice2data_res.get("currency_symbol"),
"country_code": invoice2data_res.get("country_code"),
"iso_or_symbol": invoice2data_res.get("currency"),
},
"amount_total": invoice2data_res.get("amount"),
"date": invoice2data_res.get("date"),
Expand Down

0 comments on commit 6ce9ee8

Please sign in to comment.