| Line 748... |
Line 748... |
| 748 |
@Autowired
|
748 |
@Autowired
|
| 749 |
WarehouseInventoryItemRepository warehouseInventoryItemRepository;
|
749 |
WarehouseInventoryItemRepository warehouseInventoryItemRepository;
|
| 750 |
|
750 |
|
| 751 |
@Override
|
751 |
@Override
|
| 752 |
public float processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException {
|
752 |
public float processSchemeOut(int fofoOrderId, int retailerId) throws ProfitMandiBusinessException {
|
| 753 |
return 0;
|
- |
|
| - |
|
753 |
|
| 754 |
/*float totalCashback = 0;
|
754 |
float totalCashback = 0;
|
| 755 |
FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(retailerId, fofoOrderId);
|
755 |
FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(retailerId, fofoOrderId);
|
| 756 |
// Process only if order is not cancelled
|
756 |
// Process only if order is not cancelled
|
| 757 |
if (fofoOrder.getCancelledTimestamp() == null) {
|
757 |
if (fofoOrder.getCancelledTimestamp() == null) {
|
| 758 |
// PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(retailerId,
|
758 |
// PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(retailerId,
|
| 759 |
// fofoOrder.getCreateTimestamp().toLocalDate());
|
759 |
// fofoOrder.getCreateTimestamp().toLocalDate());
|
| Line 854... |
Line 854... |
| 854 |
+ fofoOrder.getInvoiceNumber() + ". Total " + count + " pc(s)",
|
854 |
+ fofoOrder.getInvoiceNumber() + ". Total " + count + " pc(s)",
|
| 855 |
totalCashback, fofoOrder.getCreateTimestamp());
|
855 |
totalCashback, fofoOrder.getCreateTimestamp());
|
| 856 |
fofoOrder.setCashback(totalCashback + fofoOrder.getCashback());
|
856 |
fofoOrder.setCashback(totalCashback + fofoOrder.getCashback());
|
| 857 |
}
|
857 |
}
|
| 858 |
}
|
858 |
}
|
| 859 |
return totalCashback;*/
|
859 |
return totalCashback;
|
| 860 |
}
|
860 |
}
|
| 861 |
|
861 |
|
| 862 |
@Override
|
862 |
@Override
|
| 863 |
//Tax rate has been passed to 0 to ensure no tax deduction
|
863 |
//Tax rate has been passed to 0 to ensure no tax deduction
|
| 864 |
public float getSpecialSupportAmount(float supportAmount, PartnerType partnerType, LocalDate onDate,
|
864 |
public float getSpecialSupportAmount(float supportAmount, PartnerType partnerType, LocalDate onDate,
|