fix: set batch created from bundle to batch field in stock transaction (#39966)

* fix: set batch created from bundle to batch field in stock transaction

* fix: validation for serial and batch no
This commit is contained in:
rohitwaghchaure
2024-02-20 23:45:07 +05:30
committed by GitHub
parent 8e7d47b3a7
commit 4b24fcd221
16 changed files with 213 additions and 58 deletions

View File

@@ -368,6 +368,7 @@ erpnext.buying = {
let update_values = {
"serial_and_batch_bundle": r.name,
"use_serial_batch_fields": 0,
"qty": qty / flt(item.conversion_factor || 1, precision("conversion_factor", item))
}
@@ -408,6 +409,7 @@ erpnext.buying = {
let update_values = {
"serial_and_batch_bundle": r.name,
"use_serial_batch_fields": 0,
"rejected_qty": qty / flt(item.conversion_factor || 1, precision("conversion_factor", item))
}