[fix] Serial No has already been received error while making purchase receipt entry for the returned serial no (#10736)
This commit is contained in:
parent
580f39a12c
commit
54099e592e
@ -240,7 +240,8 @@ def has_duplicate_serial_no(sn, sle):
|
|||||||
|
|
||||||
status = False
|
status = False
|
||||||
if sn.purchase_document_no:
|
if sn.purchase_document_no:
|
||||||
if sle.voucher_type in ['Purchase Receipt', 'Stock Entry']:
|
if sle.voucher_type in ['Purchase Receipt', 'Stock Entry'] and \
|
||||||
|
sn.delivery_document_type not in ['Purchase Receipt', 'Stock Entry']:
|
||||||
status = True
|
status = True
|
||||||
|
|
||||||
if status and sle.voucher_type == 'Stock Entry' and \
|
if status and sle.voucher_type == 'Stock Entry' and \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user