Subversion Repositories SmartDukaan

Rev

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

Rev 13608 Rev 13625
Line 222... Line 222...
222
            	if (sale.getTotalOrderCount() != -1) {
222
            	if (sale.getTotalOrderCount() != -1) {
223
                    total_days_sale.append(sale.getTotalOrderCount());
223
                    total_days_sale.append(sale.getTotalOrderCount());
224
                    avg_total_sale = avg_total_sale + sale.getTotalOrderCount();
224
                    avg_total_sale = avg_total_sale + sale.getTotalOrderCount();
225
                    total_sale = total_sale + sale.getTotalSale();
225
                    total_sale = total_sale + sale.getTotalSale();
226
                    total_sale_days++;
226
                    total_sale_days++;
-
 
227
                } else if(stockQuantity>0 && sale.getTotalOrderCount()==0){
-
 
228
                    total_days_sale.append("0");
-
 
229
                    total_sale_days++;
227
                } else {
230
                } else {
228
                    total_days_sale.append("X");
231
                	total_days_sale.append("X");
229
                }
232
                }
230
                if (count != entry.getValue().size()) {
233
                if (count != entry.getValue().size()) {
231
                    total_days_sale.append("-");
234
                    total_days_sale.append("-");
232
                }
235
                }
233
                count++;
236
                count++;
Line 278... Line 281...
278
        	
281
        	
279
        	if (total_sale_avg > 0) {
282
        	if (total_sale_avg > 0) {
280
	        	if(days_of_stock<=20){
283
	        	if(days_of_stock<=20){
281
	        		fkExcelRow.setMovementCategory("MOVING");
284
	        		fkExcelRow.setMovementCategory("MOVING");
282
	        		Moving_List.add(fkExcelRow);
285
	        		Moving_List.add(fkExcelRow);
-
 
286
	        		if(days_of_stock<=5){
283
	        		Replenishment_Items.add(fkExcelRow);
287
	        			Replenishment_Items.add(fkExcelRow);
-
 
288
	        		}
284
	        	}
289
	        	}
285
	        	if(days_of_stock>20){
290
	        	if(days_of_stock>20){
286
	        		fkExcelRow.setMovementCategory("SLOW-MOVING");
291
	        		fkExcelRow.setMovementCategory("SLOW-MOVING");
287
	        		Slow_Moving_Items.add(fkExcelRow);
292
	        		Slow_Moving_Items.add(fkExcelRow);
288
	        	}
293
	        	}