[fix] [mapper] from delivery note to sales invoice, only map unbilled items
diff --git a/public/js/transaction.js b/public/js/transaction.js
index 2cee843..4a647ad 100644
--- a/public/js/transaction.js
+++ b/public/js/transaction.js
@@ -75,8 +75,10 @@
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");
}
},