mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
feat: supplier invoice date in opening invoice creation tool (#50835)
This commit is contained in:
@@ -214,6 +214,9 @@ class OpeningInvoiceCreationTool(Document):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.invoice_type == "Purchase" and row.supplier_invoice_date:
|
||||||
|
invoice.update({"bill_date": row.supplier_invoice_date})
|
||||||
|
|
||||||
accounting_dimension = get_accounting_dimensions()
|
accounting_dimension = get_accounting_dimensions()
|
||||||
for dimension in accounting_dimension:
|
for dimension in accounting_dimension:
|
||||||
invoice.update({dimension: self.get(dimension) or item.get(dimension)})
|
invoice.update({dimension: self.get(dimension) or item.get(dimension)})
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"column_break_3",
|
"column_break_3",
|
||||||
"posting_date",
|
"posting_date",
|
||||||
"due_date",
|
"due_date",
|
||||||
|
"supplier_invoice_date",
|
||||||
"section_break_5",
|
"section_break_5",
|
||||||
"item_name",
|
"item_name",
|
||||||
"outstanding_amount",
|
"outstanding_amount",
|
||||||
@@ -111,17 +112,24 @@
|
|||||||
"fieldname": "invoice_number",
|
"fieldname": "invoice_number",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Invoice Number"
|
"label": "Invoice Number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"depends_on": "eval: parent.invoice_type == \"Purchase\"",
|
||||||
|
"fieldname": "supplier_invoice_date",
|
||||||
|
"fieldtype": "Date",
|
||||||
|
"label": "Supplier Invoice Date"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-03-27 13:10:06.703006",
|
"modified": "2025-12-01 16:18:07.997594",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Opening Invoice Creation Tool Item",
|
"name": "Opening Invoice Creation Tool Item",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [],
|
"permissions": [],
|
||||||
"quick_entry": 1,
|
"quick_entry": 1,
|
||||||
|
"row_format": "Dynamic",
|
||||||
"sort_field": "creation",
|
"sort_field": "creation",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
"states": [],
|
"states": [],
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class OpeningInvoiceCreationToolItem(Document):
|
|||||||
party_type: DF.Link | None
|
party_type: DF.Link | None
|
||||||
posting_date: DF.Date | None
|
posting_date: DF.Date | None
|
||||||
qty: DF.Data | None
|
qty: DF.Data | None
|
||||||
|
supplier_invoice_date: DF.Date | None
|
||||||
temporary_opening_account: DF.Link | None
|
temporary_opening_account: DF.Link | None
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user