Subversion Repositories SmartDukaan

Rev

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

Rev 22595 Rev 22654
Line 385... Line 385...
385
				itemIdQuantity.put(customFofoLineItem.getItemId(), customFofoLineItem.getQuantity());
385
				itemIdQuantity.put(customFofoLineItem.getItemId(), customFofoLineItem.getQuantity());
386
			}
386
			}
387
			if(!(customFofoLineItem.getSellingPrice() > 0)){
387
			if(!(customFofoLineItem.getSellingPrice() > 0)){
388
				lineItemPrice.put(customFofoLineItem.getItemId(), customFofoLineItem.getSellingPrice());
388
				lineItemPrice.put(customFofoLineItem.getItemId(), customFofoLineItem.getSellingPrice());
389
			}else{
389
			}else{
390
				totalAmount = totalAmount + customFofoLineItem.getSellingPrice() * customFofoLineItem.getQuantity() + customFofoLineItem.getDiscountAmount();
390
				totalAmount = totalAmount + customFofoLineItem.getSellingPrice() * customFofoLineItem.getQuantity() - customFofoLineItem.getDiscountAmount();
391
				for(SerialNumberDetail serialNumberDetail : customFofoLineItem.getSerialNumberDetails()){
391
				for(SerialNumberDetail serialNumberDetail : customFofoLineItem.getSerialNumberDetails()){
392
					if(serialNumberDetail.isInsurance() && serialNumberDetail.getAmount() > 0){
392
					if(serialNumberDetail.isInsurance() && serialNumberDetail.getAmount() > 0){
393
						totalAmount = totalAmount + serialNumberDetail.getAmount();
393
						totalAmount = totalAmount + serialNumberDetail.getAmount();
394
					}
394
					}
395
				}
395
				}