| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.service.scheme;
|
1 |
package com.spice.profitmandi.service.scheme;
|
| 2 |
|
2 |
|
| 3 |
import java.time.LocalDate;
|
3 |
import java.time.LocalDate;
|
| 4 |
import java.time.LocalDateTime;
|
4 |
import java.time.LocalDateTime;
|
| - |
|
5 |
import java.util.Arrays;
|
| 5 |
import java.util.List;
|
6 |
import java.util.List;
|
| 6 |
import java.util.Map;
|
7 |
import java.util.Map;
|
| 7 |
import java.util.Set;
|
8 |
import java.util.Set;
|
| 8 |
|
9 |
|
| 9 |
import org.springframework.stereotype.Service;
|
10 |
import org.springframework.stereotype.Service;
|
| Line 44... |
Line 45... |
| 44 |
|
45 |
|
| 45 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason)
|
46 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason)
|
| 46 |
throws ProfitMandiBusinessException;
|
47 |
throws ProfitMandiBusinessException;
|
| 47 |
|
48 |
|
| 48 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason,
|
49 |
void reverseSchemes(List<InventoryItem> inventoryItems, int reversalReference, String reversalReason,
|
| 49 |
SchemeType schemeType) throws ProfitMandiBusinessException;
|
50 |
List<SchemeType> schemeTypes) throws ProfitMandiBusinessException;
|
| 50 |
|
51 |
|
| 51 |
public double getTotalMargin(int itemId, PartnerType partnerType, LocalDateTime localDateTime);
|
52 |
public double getTotalMargin(int itemId, PartnerType partnerType, LocalDateTime localDateTime);
|
| 52 |
|
53 |
|
| 53 |
Map<Integer, Float> getItemSchemeCashBack();
|
54 |
Map<Integer, Float> getItemSchemeCashBack();
|
| 54 |
|
55 |
|
| Line 58... |
Line 59... |
| 58 |
// void updateSchmesForModel(int catalogId) throws ProfitMandiBusinessException;
|
59 |
// void updateSchmesForModel(int catalogId) throws ProfitMandiBusinessException;
|
| 59 |
|
60 |
|
| 60 |
public long selectSchemeCount(PartnerType partnerType, LocalDate onDate, int itemId, boolean isAdmin);
|
61 |
public long selectSchemeCount(PartnerType partnerType, LocalDate onDate, int itemId, boolean isAdmin);
|
| 61 |
|
62 |
|
| 62 |
void processActivation() throws ProfitMandiBusinessException;
|
63 |
void processActivation() throws ProfitMandiBusinessException;
|
| - |
|
64 |
|
| - |
|
65 |
public static final List<SchemeType> OUT_SCHEME_TYPES = Arrays.asList(SchemeType.CATEGORY, SchemeType.HYGEINE, SchemeType.OUT, SchemeType.TERTIARY);
|
| 63 |
}
|
66 |
}
|