Subversion Repositories SmartDukaan

Rev

Rev 19171 | Rev 19244 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19171 Rev 19175
Line 145... Line 145...
145
                                }else{
145
                                }else{
146
                                    if (response.products[i].source_id == 4 && response.products[i].cheapestBulkPrice != 0) {
146
                                    if (response.products[i].source_id == 4 && response.products[i].cheapestBulkPrice != 0) {
147
                                                priceToCompare = response.products[i].cheapestBulkPrice;
147
                                                priceToCompare = response.products[i].cheapestBulkPrice;
148
                                                if(response.products[i].packQuantity>1){
148
                                                if(response.products[i].packQuantity>1){
149
                                                    priceRange =(Math.round((response.products[i].cheapestBulkPrice/response.products[i].packQuantity) * 100) / 100)    + " - "
149
                                                    priceRange =(Math.round((response.products[i].cheapestBulkPrice/response.products[i].packQuantity) * 100) / 100)    + " - "
150
                                                    + (Math.round((response.products[i].netPriceAfterCashBack/response.products[i].packQuantity) * 100) / 100) + " /- per unit";
150
                                                    + (Math.round((response.products[i].available_price/response.products[i].packQuantity) * 100) / 100) + " /- per unit";
151
                                                }
151
                                                }
152
                                                else{
152
                                                else{
153
                                                    priceRange = response.products[i].cheapestBulkPrice
153
                                                    priceRange = response.products[i].cheapestBulkPrice
154
                                                    + " - "
154
                                                    + " - "
155
                                                    + Math.round(response.products[i].netPriceAfterCashBack);
155
                                                    + Math.round(response.products[i].available_price);
156
                                                }
156
                                                }
157
                                                
157
                                                
158
 
158
 
159
                                    } else {
159
                                    } else {
160
                                        priceToCompare = response.products[i].netPriceAfterCashBack;
160
                                        priceToCompare = response.products[i].netPriceAfterCashBack;