Skip to content

Commit

Permalink
Merge pull request #16 from alyf-de/profiles
Browse files Browse the repository at this point in the history
feat: support different profiles
  • Loading branch information
barredterra authored Dec 13, 2024
2 parents 149986d + abb6d62 commit c8fd94b
Show file tree
Hide file tree
Showing 16 changed files with 92,872 additions and 246 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ The imported XML is validated against the "EN16931 CII" and "XRechnung CII" sche

Taxes are mapped to "Actual" charges in the **Purchase Invoice**, so that ERPNext does not try to recalculate them.

You can find XML files for testing in the following repositories:

- [EN16931](https://github.com/ConnectingEurope/eInvoicing-EN16931/tree/master/cii/examples)
- [XRechnung](https://projekte.kosit.org/xrechnung/xrechnung-testsuite/-/tree/master/src/test/business-cases/standard?ref_type=heads) (files ending in `_uncefact.xml`)

## Add your custom logic

This app provides hooks to add custom logic to the eInvoice creation process:
Expand Down
25 changes: 17 additions & 8 deletions eu_einvoice/custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,37 @@ def get_custom_fields():
"collapsible": 1,
},
{
"fieldname": "correct_european_invoice",
"label": _("Correct European Invoice"),
"fieldname": "einvoice_profile",
"label": _("E Invoice Profile"),
"insert_after": "e_invoice_validation_section",
"fieldtype": "Check",
"read_only": 1,
"fieldtype": "Select",
"options": "\n".join(
[
"BASIC",
"EN 16931",
"EXTENDED",
"XRECHNUNG",
]
),
"default": "EXTENDED",
"print_hide": 1,
},
{
"fieldname": "correct_german_federal_administration_invoice",
"label": _("Correct German Federal Administration Invoice"),
"insert_after": "correct_european_invoice",
"fieldname": "einvoice_is_correct",
"label": _("E Invoice Is Correct"),
"insert_after": "e_invoice_validation_section",
"fieldtype": "Check",
"read_only": 1,
"print_hide": 1,
},
{
"fieldname": "validation_errors",
"label": _("Validation Errors"),
"insert_after": "correct_german_federal_administration_invoice",
"insert_after": "einvoice_is_correct",
"fieldtype": "Text",
"read_only": 1,
"print_hide": 1,
"depends_on": "eval:!doc.einvoice_is_correct",
},
],
}
Loading

0 comments on commit c8fd94b

Please sign in to comment.