mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
[fix] [minor] stock balance report for serialized item
This commit is contained in:
@@ -502,13 +502,14 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
||||
var company_currency = this.get_company_currency();
|
||||
|
||||
if(!this.frm.doc.conversion_rate) {
|
||||
wn.throw(wn._('%(conversion_rate_label)s is mandatory. Maybe Currency Exchange \
|
||||
record is not created for %(from_currency)s to %(to_currency)s'),
|
||||
wn.throw(repl('%(conversion_rate_label)s' +
|
||||
wn._(' is mandatory. Maybe Currency Exchange record is not created for ') +
|
||||
'%(from_currency)s' + wn._(" to ") + '%(to_currency)s',
|
||||
{
|
||||
"conversion_rate_label": conversion_rate_label,
|
||||
"from_currency": self.doc.currency,
|
||||
"from_currency": this.frm.doc.currency,
|
||||
"to_currency": company_currency
|
||||
});
|
||||
}));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user