mirror of
https://github.com/itsdave-de/msp.git
synced 2025-05-06 15:35:12 +02:00
Anpassung Rechnungdtyp ASAP
This commit is contained in:
parent
cd226e4fbe
commit
9d81f13cf6
@ -141,6 +141,9 @@ class AutoInvoiceGenerator(Document):
|
|||||||
for dn in x:
|
for dn in x:
|
||||||
item_doc = frappe.get_doc("Delivery Note", dn["name"])
|
item_doc = frappe.get_doc("Delivery Note", dn["name"])
|
||||||
items = [self.create_invoice_doc_item(item) for item in item_doc.items]
|
items = [self.create_invoice_doc_item(item) for item in item_doc.items]
|
||||||
|
for item in items:
|
||||||
|
item.delivery_note= dn["name"]
|
||||||
|
|
||||||
if len(items) > 0:
|
if len(items) > 0:
|
||||||
self.create_invoice(cust, items, "Abrechnung Lieferschein " + dn["name"]+ " " + cust_doc.customer_name)
|
self.create_invoice(cust, items, "Abrechnung Lieferschein " + dn["name"]+ " " + cust_doc.customer_name)
|
||||||
invoice_count += 1
|
invoice_count += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user