Subversion Repositories SmartDukaan

Rev

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

Rev 7676 Rev 8712
Line 140... Line 140...
140
        PdfPTable salutationTable = new PdfPTable(1);
140
        PdfPTable salutationTable = new PdfPTable(1);
141
        salutationTable.getDefaultCell().setHorizontalAlignment(
141
        salutationTable.getDefaultCell().setHorizontalAlignment(
142
                Element.ALIGN_LEFT);
142
                Element.ALIGN_LEFT);
143
        salutationTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
143
        salutationTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
144
        salutationTable.addCell(new Phrase("To", helvetica8));
144
        salutationTable.addCell(new Phrase("To", helvetica8));
-
 
145
        if(supplier.getName().equals("Smobility Ltd.")) {
-
 
146
        	salutationTable.addCell(new Phrase("Spice Retail Ltd.", helvetica8));
-
 
147
        } else {
145
        salutationTable.addCell(new Phrase(supplier
148
        	salutationTable.addCell(new Phrase(supplier
146
                .getName(), helvetica8));
149
                    .getName(), helvetica8));
-
 
150
        }
-
 
151
        
147
        salutationTable.addCell(new Paragraph(supplier
152
        salutationTable.addCell(new Paragraph(supplier
148
                .getCommunicationAddress(), helvetica8));
153
                .getCommunicationAddress(), helvetica8));
149
        salutationTable.addCell(new Phrase("Dear Sir/Madam", helveticaBold8));
154
        salutationTable.addCell(new Phrase("Dear Sir/Madam", helveticaBold8));
150
        salutationTable
155
        salutationTable
151
                .addCell(new Phrase(
156
                .addCell(new Phrase(