Subversion Repositories SmartDukaan

Rev

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

Rev 26332 Rev 26403
Line 1... Line 1...
1
package com.spice.profitmandi.service.scheme;
1
package com.spice.profitmandi.service.scheme;
2
 
2
 
-
 
3
import java.text.MessageFormat;
3
import java.time.LocalDate;
4
import java.time.LocalDate;
4
import java.time.LocalDateTime;
5
import java.time.LocalDateTime;
5
import java.util.ArrayList;
6
import java.util.ArrayList;
6
import java.util.HashMap;
7
import java.util.HashMap;
7
import java.util.HashSet;
8
import java.util.HashSet;
Line 661... Line 662...
661
 
662
 
662
				}
663
				}
663
			}
664
			}
664
			int fofoId = inventoryItems.get(0).getFofoId();
665
			int fofoId = inventoryItems.get(0).getFofoId();
665
			if (amountToDebit > 0) {
666
			if (amountToDebit > 0) {
666
				walletService.addAmountToWallet(fofoId, purchaseId, WalletReferenceType.SCHEME_IN, reversalReason,
667
				walletService.addAmountToWallet(fofoId, purchaseId, WalletReferenceType.SCHEME_IN, 
-
 
668
						MessageFormat.format(reversalReason, purchaseInventoryItemList.size()),
667
						-amountToDebit);
669
						-amountToDebit);
668
			}
670
			}
669
			if (amountToCredit > 0) {
671
			if (amountToCredit > 0) {
670
				walletService.addAmountToWallet(fofoId, purchaseId, WalletReferenceType.SCHEME_IN, reversalReason,
672
				walletService.addAmountToWallet(fofoId, purchaseId, WalletReferenceType.SCHEME_IN,
-
 
673
						MessageFormat.format(reversalReason, purchaseInventoryItemList.size()),
671
						amountToCredit);
674
						amountToCredit);
672
			}
675
			}
673
		}
676
		}
674
	}
677
	}
675
 
678