Additional fields in Item Price (#14540)
* [IMPROVEMENT] Item Price New Fields and Features
* [IMPROVEMENT] Item Price
- Item Price insert against Qty, Supplier/Customer, Validup/Validfrom
- Stock Setting to accept Default Price List for Purchase or Sales Item
- Move Item Section in Item Price
* Fetch default Item Price based on Customer as null
* test fixes
* Code cleanup and fixed the issue of incorrect item price fetched against the customer
* Removed min qty from packing_increment calculation
* Removed auto_update_price_list_rate from the stock settings
* Revert sales_order.json changes
* Removed sales, purchase price list from stock settings because this fields are already available in selling, buying settings
* Removed unnecessory file
* Fixed item price validation code
diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js
index 19acefa..4eb99c5 100644
--- a/erpnext/selling/sales_common.js
+++ b/erpnext/selling/sales_common.js
@@ -96,8 +96,9 @@
customer: function() {
var me = this;
- erpnext.utils.get_party_details(this.frm, null, null,
- function(){ me.apply_pricing_rule() });
+ erpnext.utils.get_party_details(this.frm, null, null, function() {
+ me.apply_price_list();
+ });
},
customer_address: function() {
@@ -429,4 +430,4 @@
})
}
}
-})
\ No newline at end of file
+})