fix: basic rate for SABB

(cherry picked from commit 7fa94843aa)
This commit is contained in:
Rohit Waghchaure
2024-04-26 12:20:08 +05:30
committed by Mergify
parent 3193ef0a89
commit 7b7987363f
2 changed files with 2 additions and 0 deletions

View File

@@ -373,6 +373,7 @@ erpnext.sales_common = {
frappe.model.set_value(item.doctype, item.name, {
serial_and_batch_bundle: r.name,
use_serial_batch_fields: 0,
incoming_rate: r.avg_rate,
qty:
qty /
flt(

View File

@@ -1340,6 +1340,7 @@ erpnext.stock.select_batch_and_serial_no = (frm, item) => {
frappe.model.set_value(item.doctype, item.name, {
serial_and_batch_bundle: r.name,
use_serial_batch_fields: 0,
basic_rate: r.avg_rate,
qty:
Math.abs(r.total_qty) /
flt(item.conversion_factor || 1, precision("conversion_factor", item)),