-
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.
feat(E Invoice Import): import payment terms
- Loading branch information
1 parent
9391e3c
commit 41b2843
Showing
5 changed files
with
152 additions
and
5 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
Empty file.
71 changes: 71 additions & 0 deletions
71
eu_einvoice/european_e_invoice/doctype/e_invoice_payment_term/e_invoice_payment_term.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,71 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-10-01 15:54:37.279431", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"due", | ||
"partial_amount", | ||
"section_break_mgef", | ||
"discount_basis_date", | ||
"discount_calculation_percent", | ||
"discount_actual_amount" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "due", | ||
"fieldtype": "Date", | ||
"in_list_view": 1, | ||
"label": "Due", | ||
"read_only": 1, | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "partial_amount", | ||
"fieldtype": "Currency", | ||
"in_list_view": 1, | ||
"label": "Partial Amount", | ||
"options": "currency", | ||
"read_only": 1, | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "section_break_mgef", | ||
"fieldtype": "Section Break", | ||
"label": "Discount" | ||
}, | ||
{ | ||
"fieldname": "discount_basis_date", | ||
"fieldtype": "Date", | ||
"label": "Basis Date", | ||
"read_only": 1 | ||
}, | ||
{ | ||
"fieldname": "discount_calculation_percent", | ||
"fieldtype": "Percent", | ||
"label": "Calculation Percent", | ||
"read_only": 1 | ||
}, | ||
{ | ||
"fieldname": "discount_actual_amount", | ||
"fieldtype": "Currency", | ||
"label": "Actual Amount", | ||
"options": "currency", | ||
"read_only": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2024-10-01 16:25:06.974472", | ||
"modified_by": "Administrator", | ||
"module": "European e-Invoice", | ||
"name": "E Invoice Payment Term", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "creation", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
27 changes: 27 additions & 0 deletions
27
eu_einvoice/european_e_invoice/doctype/e_invoice_payment_term/e_invoice_payment_term.py
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,27 @@ | ||
# Copyright (c) 2024, ALYF GmbH and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class EInvoicePaymentTerm(Document): | ||
# begin: auto-generated types | ||
# This code is auto-generated. Do not modify anything in this block. | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from frappe.types import DF | ||
|
||
discount_actual_amount: DF.Currency | ||
discount_basis_date: DF.Date | None | ||
discount_calculation_percent: DF.Percent | ||
due: DF.Date | ||
parent: DF.Data | ||
parentfield: DF.Data | ||
parenttype: DF.Data | ||
partial_amount: DF.Currency | ||
# end: auto-generated types | ||
|
||
pass |