Subversion Repositories SmartDukaan

Rev

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

Rev 35179 Rev 35266
Line 62... Line 62...
62
import com.spice.profitmandi.service.integrations.bharti.BAGService;
62
import com.spice.profitmandi.service.integrations.bharti.BAGService;
63
import com.spice.profitmandi.service.integrations.bharti.model.Sample;
63
import com.spice.profitmandi.service.integrations.bharti.model.Sample;
64
import com.spice.profitmandi.service.integrations.gstpro.GstProAuthService;
64
import com.spice.profitmandi.service.integrations.gstpro.GstProAuthService;
65
import com.spice.profitmandi.service.integrations.gstpro.GstProService;
65
import com.spice.profitmandi.service.integrations.gstpro.GstProService;
66
import com.spice.profitmandi.service.integrations.oneassist.OneAssistService;
66
import com.spice.profitmandi.service.integrations.oneassist.OneAssistService;
-
 
67
import com.spice.profitmandi.service.integrations.oneassist.model.CancelPlanRequestModel;
67
import com.spice.profitmandi.service.integrations.zest.InsuranceService;
68
import com.spice.profitmandi.service.integrations.zest.InsuranceService;
68
import com.spice.profitmandi.service.inventory.InventoryService;
69
import com.spice.profitmandi.service.inventory.InventoryService;
69
import com.spice.profitmandi.service.inventory.PurchaseService;
70
import com.spice.profitmandi.service.inventory.PurchaseService;
70
import com.spice.profitmandi.service.inventory.SaholicInventoryService;
71
import com.spice.profitmandi.service.inventory.SaholicInventoryService;
71
import com.spice.profitmandi.service.offers.ItemCriteria;
72
import com.spice.profitmandi.service.offers.ItemCriteria;
Line 1140... Line 1141...
1140
    public void cancelOnceAssist(String invoiceNumber) throws Exception {
1141
    public void cancelOnceAssist(String invoiceNumber) throws Exception {
1141
        FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
1142
        FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
1142
        insuranceService.cancelInsurance(fofoOrder);
1143
        insuranceService.cancelInsurance(fofoOrder);
1143
    }
1144
    }
1144
 
1145
 
-
 
1146
    public void cancelOneAssistWithOutOrder(int applicationNumber, int memberShipNumber) throws ProfitMandiBusinessException {
-
 
1147
        CancelPlanRequestModel cancelPlanRequestModel = new CancelPlanRequestModel();
-
 
1148
        cancelPlanRequestModel.setMembershipId(Long.parseLong(String.valueOf(memberShipNumber)));
-
 
1149
        cancelPlanRequestModel.setApplicationNo(applicationNumber + "");
-
 
1150
        oneAssistService.cancelCertificate(cancelPlanRequestModel);
-
 
1151
    }
-
 
1152
 
1145
    public void cancelOnceAssistByMemberShipNumber(String applicationNo, String membershipId) throws Exception {
1153
    public void cancelOnceAssistByMemberShipNumber(String applicationNo, String membershipId) throws Exception {
1146
        insuranceService.cancelInsurance(applicationNo, membershipId);
1154
        insuranceService.cancelInsurance(applicationNo, membershipId);
1147
    }
1155
    }
1148
 
1156
 
1149
    public void mapBag() throws Exception {
1157
    public void mapBag() throws Exception {