fix(patch): updating pos closing reference in merge log

This commit is contained in:
Saqib Ansari 2021-03-04 11:58:45 +05:30
parent d713ac4505
commit 49e4693abf

View File

@ -15,7 +15,7 @@ def execute():
log.pos_closing_entry = (
SELECT clo_ref.parent FROM `tabPOS Invoice Reference` clo_ref
WHERE clo_ref.pos_invoice = log_ref.pos_invoice
AND clo_ref.parenttype = 'POS Closing Entry'
AND clo_ref.parenttype = 'POS Closing Entry' LIMIT 1
)
WHERE
log_ref.parent = log.name