mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 11:44:11 +00:00
fix: incorrect amount in the material request item (backport #39567) (#39568) fix: incorrect amount in the material request item (#39567) fix: incoorect amount in the material request (cherry picked from commit2bdfdeeb9a) Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com> (cherry picked from commitc26f7bbed0) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@@ -514,6 +514,13 @@ erpnext.buying.MaterialRequestController = class MaterialRequestController exten
|
|||||||
schedule_date() {
|
schedule_date() {
|
||||||
set_schedule_date(this.frm);
|
set_schedule_date(this.frm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qty(doc, cdt, cdn) {
|
||||||
|
var row = frappe.get_doc(cdt, cdn);
|
||||||
|
row.amount = flt(row.qty) * flt(row.rate);
|
||||||
|
frappe.model.set_value(cdt, cdn, "amount", row.amount);
|
||||||
|
refresh_field("amount", row.name, row.parentfield);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// for backward compatibility: combine new and previous states
|
// for backward compatibility: combine new and previous states
|
||||||
|
|||||||
Reference in New Issue
Block a user