Subversion Repositories SmartDukaan

Rev

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

Rev 34742 Rev 34744
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
        float totalCashback = 0;
754
        /*float totalCashback = 0;
754
        FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(retailerId, fofoOrderId);
755
        FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(retailerId, fofoOrderId);
755
        // Process only if order is not cancelled
756
        // Process only if order is not cancelled
756
        if (fofoOrder.getCancelledTimestamp() == null) {
757
        if (fofoOrder.getCancelledTimestamp() == null) {
757
            // PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(retailerId,
758
            // PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(retailerId,
758
            // fofoOrder.getCreateTimestamp().toLocalDate());
759
            // fofoOrder.getCreateTimestamp().toLocalDate());
Line 853... Line 854...
853
                                + fofoOrder.getInvoiceNumber() + ". Total " + count + " pc(s)",
854
                                + fofoOrder.getInvoiceNumber() + ". Total " + count + " pc(s)",
854
                        totalCashback, fofoOrder.getCreateTimestamp());
855
                        totalCashback, fofoOrder.getCreateTimestamp());
855
                fofoOrder.setCashback(totalCashback + fofoOrder.getCashback());
856
                fofoOrder.setCashback(totalCashback + fofoOrder.getCashback());
856
            }
857
            }
857
        }
858
        }
858
        return totalCashback;
859
        return totalCashback;*/
859
    }
860
    }
860
 
861
 
861
    @Override
862
    @Override
862
    //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
863
    public float getSpecialSupportAmount(float supportAmount, PartnerType partnerType, LocalDate onDate,
864
    public float getSpecialSupportAmount(float supportAmount, PartnerType partnerType, LocalDate onDate,