mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-02 18:14:50 +00:00
fix: error while making SABB for backdated stock reco
(cherry picked from commit ad25636afb)
This commit is contained in:
committed by
Mergify
parent
09e7bfbacb
commit
7ba7d1a2a4
@@ -203,9 +203,19 @@ class StockReconciliation(StockController):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.docstatus == 1:
|
if (
|
||||||
bundle.voucher_no = self.name
|
self.docstatus == 1
|
||||||
bundle.submit()
|
and item.current_serial_and_batch_bundle
|
||||||
|
and frappe.db.get_value(
|
||||||
|
"Serial and Batch Bundle", item.current_serial_and_batch_bundle, "docstatus"
|
||||||
|
)
|
||||||
|
== 0
|
||||||
|
):
|
||||||
|
sabb_doc = frappe.get_doc(
|
||||||
|
"Serial and Batch Bundle", item.current_serial_and_batch_bundle
|
||||||
|
)
|
||||||
|
sabb_doc.voucher_no = self.name
|
||||||
|
sabb_doc.submit()
|
||||||
|
|
||||||
item.db_set(
|
item.db_set(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user