fix: do not empty serial batch fields (#39948)

This commit is contained in:
rohitwaghchaure
2024-02-19 10:25:36 +05:30
committed by GitHub
parent 9cb83d2198
commit a4cbfabe0e
7 changed files with 11 additions and 11 deletions

View File

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