mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
[price list] Separated Default Price List for Selling and Buying and changed fieldnames
This commit is contained in:
@@ -114,13 +114,14 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
||||
this.calculate_taxes_and_totals();
|
||||
},
|
||||
|
||||
price_list_name: function(buying_or_selling) {
|
||||
get_price_list_currency: function(buying_or_selling) {
|
||||
var me = this;
|
||||
if(this.frm.doc.price_list_name) {
|
||||
var fieldname = buying_or_selling.toLowerCase() + "_price_list";
|
||||
if(this.frm.doc[fieldname]) {
|
||||
return this.frm.call({
|
||||
method: "setup.utils.get_price_list_currency",
|
||||
args: {
|
||||
price_list_name: this.frm.doc.price_list_name,
|
||||
price_list: this.frm.doc[fieldname],
|
||||
},
|
||||
callback: function(r) {
|
||||
if(!r.exc) {
|
||||
|
||||
Reference in New Issue
Block a user