[fix] [mapper] from delivery note to sales invoice, only map unbilled items

This commit is contained in:
Anand Doshi
2013-08-01 15:45:23 +05:30
parent 49154c790e
commit 17350b899f
6 changed files with 66 additions and 14 deletions

View File

@@ -75,8 +75,10 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
company: function() {
if(this.frm.doc.company && this.frm.fields_dict.currency) {
var company_currency = this.get_company_currency();
this.frm.set_value("currency", company_currency);
if(!this.frm.doc.currency) {
this.frm.set_value("currency", this.get_company_currency());
}
this.frm.script_manager.trigger("currency");
}
},