Subversion Repositories SmartDukaan

Rev

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

Rev 23615 Rev 23780
Line 295... Line 295...
295
				itemIdGstRateMap.put(totalTaxRateEntry.getKey().intValue(), gstRate);
295
				itemIdGstRateMap.put(totalTaxRateEntry.getKey().intValue(), gstRate);
296
			}
296
			}
297
			return itemIdGstRateMap;
297
			return itemIdGstRateMap;
298
		}catch(Exception e){
298
		}catch(Exception e){
299
			e.printStackTrace();
299
			e.printStackTrace();
300
			throw new ProfitMandiBusinessException(ProfitMandiConstants.ITEM_ID + ", " + ProfitMandiConstants.STATE_ID, itemIds +", " + stateId, "");
300
			throw new ProfitMandiBusinessException(ProfitMandiConstants.ITEM_ID + ", " + ProfitMandiConstants.STATE_ID, itemIds +", " + stateId, "THRFT_1000");
301
		}
301
		}
302
	}
302
	}
303
	
303
	
304
	public static Map<Integer, Float> getIgstTaxRate(List<Integer> itemIds) throws ProfitMandiBusinessException{
304
	public static Map<Integer, Float> getIgstTaxRate(List<Integer> itemIds) throws ProfitMandiBusinessException{
305
		List<Long> longItemIds = new ArrayList<>();
305
		List<Long> longItemIds = new ArrayList<>();
Line 314... Line 314...
314
				itemIdIgstRateMap.put(totalTaxRateEntry.getKey().intValue(), Double.valueOf(totalTaxRateEntry.getValue()).floatValue());
314
				itemIdIgstRateMap.put(totalTaxRateEntry.getKey().intValue(), Double.valueOf(totalTaxRateEntry.getValue()).floatValue());
315
			}
315
			}
316
			return itemIdIgstRateMap;
316
			return itemIdIgstRateMap;
317
		}catch(Exception e){
317
		}catch(Exception e){
318
			e.printStackTrace();
318
			e.printStackTrace();
319
			throw new ProfitMandiBusinessException(ProfitMandiConstants.ITEM_ID, itemIds, "");
319
			throw new ProfitMandiBusinessException(ProfitMandiConstants.ITEM_ID, itemIds, "THRFT_1001");
320
		}
320
		}
321
	}
321
	}
322
	
322
	
323
	private static CatalogService.Client getCatalogClient() throws Exception{
323
	private static CatalogService.Client getCatalogClient() throws Exception{
324
		try{
324
		try{