chore: log modified invoices
This commit is contained in:
parent
18e5d59d24
commit
30f59b09fd
@ -1,5 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
import frappe
|
||||
|
||||
|
||||
@ -33,6 +34,9 @@ def execute():
|
||||
parent
|
||||
""", 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:
|
||||
doc = frappe.get_doc(invoice.type, invoice.name)
|
||||
doc.docstatus = 2
|
||||
|
Loading…
Reference in New Issue
Block a user