chore: log modified invoices
This commit is contained in:
parent
18e5d59d24
commit
30f59b09fd
@ -1,5 +1,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import json
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
@ -33,6 +34,9 @@ def execute():
|
|||||||
parent
|
parent
|
||||||
""", as_dict=1)
|
""", as_dict=1)
|
||||||
|
|
||||||
|
if purchase_invoices + sales_invoices:
|
||||||
|
frappe.log_error(json.dumps(purchase_invoices + sales_invoices, indent=2), title="Patch Log")
|
||||||
|
|
||||||
for invoice in purchase_invoices + sales_invoices:
|
for invoice in purchase_invoices + sales_invoices:
|
||||||
doc = frappe.get_doc(invoice.type, invoice.name)
|
doc = frappe.get_doc(invoice.type, invoice.name)
|
||||||
doc.docstatus = 2
|
doc.docstatus = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user