Subversion Repositories SmartDukaan

Rev

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

Rev 5585 Rev 5684
Line 283... Line 283...
283
        dispatchTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
283
        dispatchTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
284
        dispatchTable.addCell(customerTable);
284
        dispatchTable.addCell(customerTable);
285
        dispatchTable.addCell(new Phrase(" "));
285
        dispatchTable.addCell(new Phrase(" "));
286
        dispatchTable.addCell(providerInfoTable);
286
        dispatchTable.addCell(providerInfoTable);
287
        
287
        
288
        
-
 
289
        PdfPTable invoiceTable = null;
-
 
290
        if(withBill)
-
 
291
            invoiceTable = getTopInvoiceTable(order, tinNo);
288
        Warehouse shippingLocation = CatalogUtils.getWarehouse(warehouse.getShippingWarehouseId());
292
        else
-
 
293
            invoiceTable = getTopInvoiceTable(order, warehouse.getTinNumber());
289
        PdfPTable invoiceTable = getTopInvoiceTable(order, shippingLocation.getTinNumber());
294
        
-
 
295
        PdfPCell addressCell = null;
-
 
296
        if(withBill)
-
 
297
            addressCell = getAddressCell(ourAddress);
290
        PdfPCell addressCell = getAddressCell(shippingLocation.getLocation() +
298
        else
-
 
299
            addressCell = getAddressCell(warehouse.getLocation() + "\nPIN " + warehouse.getPincode() + "\n\n");
291
                                    "\nPIN " + warehouse.getPincode() + "\n\n");
300
        
292
 
301
        PdfPTable chargesTable = new PdfPTable(1);
293
        PdfPTable chargesTable = new PdfPTable(1);
302
        chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
294
        chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
303
        chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
295
        chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
304
        if(order.isLogisticsCod()){
296
        if(order.isLogisticsCod()){
305
            chargesTable.addCell(new Phrase("AMOUNT TO BE COLLECTED : Rs " + order.getTotal_amount(), helveticaBold12));
297
            chargesTable.addCell(new Phrase("AMOUNT TO BE COLLECTED : Rs " + order.getTotal_amount(), helveticaBold12));