Skip to content

Commit afc4c85

Browse files
authored
fix: add docstatus condition to get_sales_invoice_item function (#51517)
1 parent 22869b6 commit afc4c85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

erpnext/accounts/doctype/pos_invoice_merge_log/pos_invoice_merge_log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ def get_sales_invoice_item(return_against_pos_invoice, pos_invoice_item):
697697
& (SalesInvoice.is_return == 0)
698698
& (SalesInvoiceItem.pos_invoice == return_against_pos_invoice)
699699
& (SalesInvoiceItem.pos_invoice_item == pos_invoice_item)
700+
& (SalesInvoice.docstatus == 1)
700701
)
701702
)
702703

0 commit comments

Comments
 (0)