add discount to product sell js

This commit is contained in:
2015-10-21 07:46:15 +02:00
parent f2e30779f0
commit 4e04425403
9 changed files with 63 additions and 10 deletions

View File

@@ -368,7 +368,7 @@ function ProductSell(o){
function findDiscount(id_discount){
var discount;
discount = null;
$.each( app.defaults.discounts , function(e,i){
$.each( app.defaults.discounts , function(i,e){
if ( e.id_discount == id_discount ){
discount = e;
}