chore: log modified invoices

This commit is contained in:
Saqib 2021-09-27 12:20:16 +05:30 committed by GitHub
parent 18e5d59d24
commit 30f59b09fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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