Subversion Repositories SmartDukaan

Rev

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

Rev 35027 Rev 35035
Line 57... Line 57...
57
    //Debit Note generation logic has been changed
57
    //Debit Note generation logic has been changed
58
    //Debit Note considers price drops so amount in debit note is current price of item.
58
    //Debit Note considers price drops so amount in debit note is current price of item.
59
    //From 16Nov 2019 onwards all debit notes will be as per actuall billing value, all pricedrops
59
    //From 16Nov 2019 onwards all debit notes will be as per actuall billing value, all pricedrops
60
    //shall be rolledback or cancelled once the debit note is generated.
60
    //shall be rolledback or cancelled once the debit note is generated.
61
 
61
 
62
    /*public static void generateAndWrite(List<InvoicePdfModel> pdfModels, PrinterType printerType, ByteArrayOutputStream outputStream) throws ProfitMandiBusinessException {
62
    public static void generateAndWrite(List<InvoicePdfModel> pdfModels, PrinterType printerType, ByteArrayOutputStream outputStream) throws ProfitMandiBusinessException {
63
        if (PrinterType.A4.equals(printerType)) {
63
        if (PrinterType.A4.equals(printerType)) {
64
            generateAndWrite(pdfModels, outputStream);
64
            generateAndWrite(pdfModels, outputStream);
65
        } else {
65
        } else {
66
            if (pdfModels.size() > 1) {
66
            if (pdfModels.size() > 1) {
67
            }
67
            }
Line 70... Line 70...
70
            } else if (PrinterType.W58.equals(printerType)) {
70
            } else if (PrinterType.W58.equals(printerType)) {
71
                InvoiceFormatter.getInvoice(pdfModels.get(0), outputStream, InvoiceFormatter.WIDTH_58MM);
71
                InvoiceFormatter.getInvoice(pdfModels.get(0), outputStream, InvoiceFormatter.WIDTH_58MM);
72
 
72
 
73
            }
73
            }
74
        }
74
        }
75
    }*/
75
    }
76
 
76
 
77
 
77
 
78
    //Standard
78
    //Standard
79
    public static void generateAndWrite(List<InvoicePdfModel> pdfModels, ByteArrayOutputStream outputStream) {
79
    public static void generateAndWrite(List<InvoicePdfModel> pdfModels, ByteArrayOutputStream outputStream) {
80
        try {
80
        try {