mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
Merge branch 'version-15-hotfix' into rfq-email-refactor
This commit is contained in:
@@ -1332,9 +1332,12 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
plc_conversion_rate() {
|
plc_conversion_rate() {
|
||||||
if(this.frm.doc.price_list_currency === this.get_company_currency()) {
|
if(this.frm.doc.price_list_currency === this.get_company_currency()) {
|
||||||
this.frm.set_value("plc_conversion_rate", 1.0);
|
this.frm.set_value("plc_conversion_rate", 1.0);
|
||||||
} else if(this.frm.doc.price_list_currency === this.frm.doc.currency
|
} else if (
|
||||||
&& this.frm.doc.plc_conversion_rate && cint(this.frm.doc.plc_conversion_rate) != 1 &&
|
this.frm.doc.price_list_currency === this.frm.doc.currency &&
|
||||||
cint(this.frm.doc.plc_conversion_rate) != cint(this.frm.doc.conversion_rate)) {
|
this.frm.doc.plc_conversion_rate &&
|
||||||
|
flt(this.frm.doc.plc_conversion_rate) != 1 &&
|
||||||
|
flt(this.frm.doc.plc_conversion_rate) != flt(this.frm.doc.conversion_rate)
|
||||||
|
) {
|
||||||
this.frm.set_value("conversion_rate", this.frm.doc.plc_conversion_rate);
|
this.frm.set_value("conversion_rate", this.frm.doc.plc_conversion_rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -977,7 +977,7 @@ frappe.tour["Item"] = [
|
|||||||
fieldname: "valuation_rate",
|
fieldname: "valuation_rate",
|
||||||
title: "Valuation Rate",
|
title: "Valuation Rate",
|
||||||
description: __(
|
description: __(
|
||||||
"There are two options to maintain valuation of stock. FIFO (first in - first out) and Moving Average. To understand this topic in detail please visit <a href='https://docs.erpnext.com/docs/v13/user/manual/en/stock/articles/item-valuation-fifo-and-moving-average' target='_blank'>Item Valuation, FIFO and Moving Average.</a>"
|
"There are two options to maintain valuation of stock. FIFO (first in - first out) and Moving Average. To understand this topic in detail please visit <a href='https://docs.frappe.io/erpnext/user/manual/en/calculation-of-valuation-rate-in-fifo-and-moving-average' target='_blank'>Item Valuation, FIFO and Moving Average.</a>"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user