Subversion Repositories SmartDukaan

Rev

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

Rev 35079 Rev 35211
Line 1433... Line 1433...
1433
        if (biddingModel.getId() == null) {
1433
        if (biddingModel.getId() == null) {
1434
            bidRepository.persist(bid);
1434
            bidRepository.persist(bid);
1435
            //debit 500 from wallet
1435
            //debit 500 from wallet
1436
            try {
1436
            try {
1437
                String reason = "Advance security for "+bid.getItemName()+" bid";
1437
                String reason = "Advance security for "+bid.getItemName()+" bid";
1438
                String message = "Dear Partner - We have Debited Rs "+ProfitMandiConstants.BID_CHARGES+" as Booking amount against your Bidding of Model No. "+bid.getItemName()+". We will refund this amount if the Bid gets approved.";
1438
                String message = "Dear Partner, We have Debited Rs "+ProfitMandiConstants.BID_CHARGES+" as booking amount against your bidding of Model No. "+bid.getItemName()+". We will adjust this amount from your order amount if the bid gets approved.";
1439
                walletService.consumeAmountFromWallet(bid.getFofoId(),
1439
                walletService.consumeAmountFromWallet(bid.getFofoId(),
1440
                        bid.getId(),
1440
                        bid.getId(),
1441
                        WalletReferenceType.ADVANCE_SECURITY,
1441
                        WalletReferenceType.ADVANCE_SECURITY,
1442
                        reason, ProfitMandiConstants.BID_CHARGES,
1442
                        reason, ProfitMandiConstants.BID_CHARGES,
1443
                        bid.getCreatedAt(),false);
1443
                        bid.getCreatedAt(),false);