Update repost_gle_for_pos_sales_return.py
This commit is contained in:
parent
d4321ec18b
commit
147b288d66
@ -7,6 +7,7 @@ from frappe.utils import cint, flt
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doctype("Sales Invoice")
|
frappe.reload_doctype("Sales Invoice")
|
||||||
|
frappe.reload_doctype("Sales Invoice Item")
|
||||||
|
|
||||||
for si in frappe.get_all("Sales Invoice", fields = ["name"],
|
for si in frappe.get_all("Sales Invoice", fields = ["name"],
|
||||||
filters={"docstatus": 1, "is_pos": 1, "is_return": 1}):
|
filters={"docstatus": 1, "is_pos": 1, "is_return": 1}):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user