Subversion Repositories SmartDukaan

Rev

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

Rev 34856 Rev 34956
Line 188... Line 188...
188
                    } else {
188
                    } else {
189
                        throw new ProfitMandiBusinessException("Given price is greater than selling price for item Id - ", itemId, " it should be less or equal of DP");
189
                        throw new ProfitMandiBusinessException("Given price is greater than selling price for item Id - ", itemId, " it should be less or equal of DP");
190
                    }
190
                    }
191
 
191
 
192
                }
192
                }
193
                totalPayableAmount += cartItem.getSellingPrice() * cartItem.getQuantity();
193
                totalPayableAmount += (long) cartItem.getSellingPrice() * cartItem.getQuantity();
194
                cartItems.add(cartItem);
194
                cartItems.add(cartItem);
195
            }
195
            }
196
            Bid bid = null;
196
            Bid bid = null;
197
            if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
197
            if (type.equals(ProfitMandiConstants.PO_TYPE.AUTO)) {
198
                bid = bidRepository.selectById(fofoBulkOrderModels.get(0).getRowIndex());
198
                bid = bidRepository.selectById(fofoBulkOrderModels.get(0).getRowIndex());