Subversion Repositories SmartDukaan

Rev

Rev 35613 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35613 Rev 35797
Line 9... Line 9...
9
import com.smartdukaan.cron.scheduled.ambreports.AbmReportSender;
9
import com.smartdukaan.cron.scheduled.ambreports.AbmReportSender;
10
import com.spice.profitmandi.common.enumuration.ItemType;
10
import com.spice.profitmandi.common.enumuration.ItemType;
11
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
11
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
12
import com.spice.profitmandi.common.model.CustomRetailer;
12
import com.spice.profitmandi.common.model.CustomRetailer;
13
import com.spice.profitmandi.common.model.ImeiDropSummaryModel;
13
import com.spice.profitmandi.common.model.ImeiDropSummaryModel;
-
 
14
import com.spice.profitmandi.common.model.InvoicePdfModel;
14
import com.spice.profitmandi.common.model.ProfitMandiConstants;
15
import com.spice.profitmandi.common.model.ProfitMandiConstants;
15
import com.spice.profitmandi.common.services.mandii.*;
16
import com.spice.profitmandi.common.services.mandii.*;
16
import com.spice.profitmandi.common.util.FileUtil;
17
import com.spice.profitmandi.common.util.FileUtil;
17
import com.spice.profitmandi.common.util.FormattingUtils;
18
import com.spice.profitmandi.common.util.FormattingUtils;
18
import com.spice.profitmandi.common.util.Utils;
19
import com.spice.profitmandi.common.util.Utils;
Line 1981... Line 1982...
1981
        return new String(Base64.getEncoder().encodeToString(bytes));
1982
        return new String(Base64.getEncoder().encodeToString(bytes));
1982
    }
1983
    }
1983
 
1984
 
1984
    public void testIrnLive(String invoiceNumber) throws Exception {
1985
    public void testIrnLive(String invoiceNumber) throws Exception {
1985
        List<Order> orders = orderRepository.selectByInvoiceNumber(invoiceNumber);
1986
        List<Order> orders = orderRepository.selectByInvoiceNumber(invoiceNumber);
-
 
1987
        InvoicePdfModel invoicePdfModel = invoiceService.getInvoicePdfModel(orders);
1986
        gstProService.getEInvoice(orders);
1988
        gstProService.getEInvoice(orders, invoicePdfModel);
1987
    }
1989
    }
1988
 
1990
 
1989
    public void processSchemeByIds(List<Integer> schemeIds) throws Exception {
1991
    public void processSchemeByIds(List<Integer> schemeIds) throws Exception {
1990
        List<Scheme> schemes = schemeRepository.selectBySchemeIds(schemeIds);
1992
        List<Scheme> schemes = schemeRepository.selectBySchemeIds(schemeIds);
1991
        for (Scheme scheme : schemes) {
1993
        for (Scheme scheme : schemes) {