Subversion Repositories SmartDukaan

Rev

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

Rev 26200 Rev 26332
Line 1025... Line 1025...
1025
		fofoOrderItem.setOrderId(fofoOrderId);
1025
		fofoOrderItem.setOrderId(fofoOrderId);
1026
		TagListing tl = tagListingRepository.selectByItemId(customFofoOrderItem.getItemId());
1026
		TagListing tl = tagListingRepository.selectByItemId(customFofoOrderItem.getItemId());
1027
		// In case listing gets removed rebill it using the selling price
1027
		// In case listing gets removed rebill it using the selling price
1028
		if (tl != null) {
1028
		if (tl != null) {
1029
			fofoOrderItem.setDp(tl.getSellingPrice());
1029
			fofoOrderItem.setDp(tl.getSellingPrice());
-
 
1030
			fofoOrderItem.setMop(tl.getMop());
1030
		} else {
1031
		} else {
1031
			fofoOrderItem.setDp(customFofoOrderItem.getSellingPrice());
1032
			fofoOrderItem.setDp(customFofoOrderItem.getSellingPrice());
-
 
1033
			fofoOrderItem.setMop(customFofoOrderItem.getSellingPrice());
1032
		}
1034
		}
1033
		fofoOrderItem.setDiscount(customFofoOrderItem.getDiscountAmount());
1035
		fofoOrderItem.setDiscount(customFofoOrderItem.getDiscountAmount());
1034
 
1036
 
1035
		Item item = itemMap.get(customFofoOrderItem.getItemId());
1037
		Item item = itemMap.get(customFofoOrderItem.getItemId());
1036
		Map<Integer, GstRate> itemIdStateTaxRateMap = null;
1038
		Map<Integer, GstRate> itemIdStateTaxRateMap = null;