Subversion Repositories SmartDukaan

Rev

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

Rev 30539 Rev 31008
Line 642... Line 642...
642
			for (CreditNotePdfModel creditNotePdfModel : creditNotes) {
642
			for (CreditNotePdfModel creditNotePdfModel : creditNotes) {
643
				InvoicePdfModel pdfModel = creditNotePdfModel.getPdfModel();
643
				InvoicePdfModel pdfModel = creditNotePdfModel.getPdfModel();
644
				CustomCustomer customer = pdfModel.getCustomer();
644
				CustomCustomer customer = pdfModel.getCustomer();
645
				CustomRetailer retailer = pdfModel.getRetailer();
645
				CustomRetailer retailer = pdfModel.getRetailer();
646
				boolean stateGst = false;
646
				boolean stateGst = false;
-
 
647
				if (customer.getAddress().getState().equals(retailer.getAddress().getState())) {
-
 
648
					stateGst = true;
-
 
649
				}
647
				Set<CustomOrderItem> orderItems = pdfModel.getOrderItems();
650
				Set<CustomOrderItem> orderItems = pdfModel.getOrderItems();
648
 
651
 
649
				Paragraph paragraphTitle = new Paragraph(pdfModel.getTitle(), FONT_TITLE);
652
				Paragraph paragraphTitle = new Paragraph(pdfModel.getTitle(), FONT_TITLE);
650
				paragraphTitle.setAlignment(Element.ALIGN_CENTER);
653
				paragraphTitle.setAlignment(Element.ALIGN_CENTER);
651
 
654
 
Line 709... Line 712...
709
				debitNoteDateKey.setBorder(Rectangle.NO_BORDER);
712
				debitNoteDateKey.setBorder(Rectangle.NO_BORDER);
710
 
713
 
711
				PdfPCell debitNoteDateValue = new PdfPCell(
714
				PdfPCell debitNoteDateValue = new PdfPCell(
712
						new Paragraph(creditNotePdfModel.getCreditNoteDate(), FONT_NORMAL));
715
						new Paragraph(creditNotePdfModel.getCreditNoteDate(), FONT_NORMAL));
713
				debitNoteDateValue.setBorder(Rectangle.NO_BORDER);
716
				debitNoteDateValue.setBorder(Rectangle.NO_BORDER);
714
 
-
 
715
				PdfPCell invoiceNumberKey = new PdfPCell(new Paragraph("Invoice Ref No:", FONT_NORMAL));
-
 
716
				invoiceNumberKey.setBorder(Rectangle.NO_BORDER);
-
 
717
				PdfPCell invoiceNumberValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceNumber(), FONT_NORMAL));
-
 
718
				invoiceNumberValue.setBorder(Rectangle.NO_BORDER);
-
 
719
 
-
 
720
				PdfPCell dateKey = new PdfPCell(new Paragraph("Invoice Dt:", FONT_NORMAL));
-
 
721
				dateKey.setBorder(Rectangle.NO_BORDER);
-
 
722
				PdfPCell dateValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceDate(), FONT_NORMAL));
-
 
723
				dateValue.setBorder(Rectangle.NO_BORDER);
-
 
724
 
-
 
725
				tableInvoiceDate.addCell(debitNoteDetails);
717
				tableInvoiceDate.addCell(debitNoteDetails);
726
				tableInvoiceDate.addCell(debitNoteNumberKey);
718
				tableInvoiceDate.addCell(debitNoteNumberKey);
727
				tableInvoiceDate.addCell(debitNoteNumberValue);
719
				tableInvoiceDate.addCell(debitNoteNumberValue);
728
				tableInvoiceDate.addCell(debitNoteDateKey);
720
				tableInvoiceDate.addCell(debitNoteDateKey);
729
				tableInvoiceDate.addCell(debitNoteDateValue);
721
				tableInvoiceDate.addCell(debitNoteDateValue);
-
 
722
				if (pdfModel.getIrnNumber() != null) {
-
 
723
					PdfPCell dateKey = new PdfPCell(new Paragraph("Invoice Dt:", FONT_NORMAL));
-
 
724
					dateKey.setBorder(Rectangle.NO_BORDER);
-
 
725
					PdfPCell dateValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceDate(), FONT_NORMAL));
-
 
726
					dateValue.setBorder(Rectangle.NO_BORDER);
-
 
727
 
-
 
728
					PdfPCell invoiceNumberKey = new PdfPCell(new Paragraph("Invoice Ref No:", FONT_NORMAL));
-
 
729
					invoiceNumberKey.setBorder(Rectangle.NO_BORDER);
-
 
730
					PdfPCell invoiceNumberValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceNumber(), FONT_NORMAL));
-
 
731
					invoiceNumberValue.setBorder(Rectangle.NO_BORDER);
730
				tableInvoiceDate.addCell(invoiceNumberKey);
732
					tableInvoiceDate.addCell(invoiceNumberKey);
731
				tableInvoiceDate.addCell(invoiceNumberValue);
733
					tableInvoiceDate.addCell(invoiceNumberValue);
732
				tableInvoiceDate.addCell(dateKey);
734
					tableInvoiceDate.addCell(dateKey);
733
				tableInvoiceDate.addCell(dateValue);
735
					tableInvoiceDate.addCell(dateValue);
-
 
736
				}
734
 
737
 
735
				tableCustomerRetailer.addCell(partnerInfo);
738
				tableCustomerRetailer.addCell(partnerInfo);
736
				tableCustomerRetailer.addCell(tableInvoiceDate);
739
				tableCustomerRetailer.addCell(tableInvoiceDate);
737
				tableCustomerRetailer.addCell(sellerParty);
740
				tableCustomerRetailer.addCell(sellerParty);
738
 
741