mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
fix: serial no status for Disassemble entry
(cherry picked from commit 81acefa8ad)
This commit is contained in:
committed by
Mergify
parent
d74833d9fc
commit
dc0592a905
@@ -463,6 +463,11 @@ class SerialBatchBundle:
|
|||||||
if sle.voucher_type in ["Sales Invoice", "Delivery Note"] and sle.actual_qty < 0:
|
if sle.voucher_type in ["Sales Invoice", "Delivery Note"] and sle.actual_qty < 0:
|
||||||
customer = frappe.get_cached_value(sle.voucher_type, sle.voucher_no, "customer")
|
customer = frappe.get_cached_value(sle.voucher_type, sle.voucher_no, "customer")
|
||||||
|
|
||||||
|
if sle.voucher_type in ["Stock Entry"] and sle.actual_qty < 0:
|
||||||
|
purpose = frappe.get_cached_value("Stock Entry", sle.voucher_no, "purpose")
|
||||||
|
if purpose in ["Disassemble", "Material Receipt"]:
|
||||||
|
status = "Inactive"
|
||||||
|
|
||||||
sn_table = frappe.qb.DocType("Serial No")
|
sn_table = frappe.qb.DocType("Serial No")
|
||||||
|
|
||||||
query = (
|
query = (
|
||||||
|
|||||||
Reference in New Issue
Block a user