| 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 |
}
|