Subversion Repositories SmartDukaan

Rev

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

Rev 37326 Rev 37631
Line 494... Line 494...
494
        changePartnerInvoices();
494
        changePartnerInvoices();
495
        ByteArrayOutputStream baos = FileUtil
495
        ByteArrayOutputStream baos = FileUtil
496
                .getCSVByteStream(Arrays.asList("Order id", "Challan", "Invoice", "Quantity"), rows);
496
                .getCSVByteStream(Arrays.asList("Order id", "Challan", "Invoice", "Quantity"), rows);
497
 
497
 
498
        Utils.sendMailWithAttachment(googleMailSender,
498
        Utils.sendMailWithAttachment(googleMailSender,
499
                new String[]{"amit.gupta@shop2020.in", "sunny.yadav@smartdukaan.com"}, null,
499
                new String[]{"amit.gupta@shop2020.in"}, null,
500
                "Challans Converted to Invoice", "PFA", "Challans-To-Invoice.csv",
500
                "Challans Converted to Invoice", "PFA", "Challans-To-Invoice.csv",
501
                new ByteArrayResource(baos.toByteArray()));
501
                new ByteArrayResource(baos.toByteArray()));
502
        throw new Exception();
502
        throw new Exception();
503
    }
503
    }
504
 
504