Subversion Repositories SmartDukaan

Rev

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

Rev 22351 Rev 22668
Line 134... Line 134...
134
            rate.setBorder(Rectangle.NO_BORDER);
134
            rate.setBorder(Rectangle.NO_BORDER);
135
            amount.setBorder(Rectangle.NO_BORDER);
135
            amount.setBorder(Rectangle.NO_BORDER);
136
            taxRate.setBorder(Rectangle.NO_BORDER);
136
            taxRate.setBorder(Rectangle.NO_BORDER);
137
            tax.setBorder(Rectangle.NO_BORDER);
137
            tax.setBorder(Rectangle.NO_BORDER);
138
            itemTotal.setBorder(Rectangle.NO_BORDER);*/
138
            itemTotal.setBorder(Rectangle.NO_BORDER);*/
139
            orders.addCell(new Paragraph("Sr No", FONT_BOLD));
139
            orders.addCell(new Paragraph("SrNo", FONT_BOLD));
140
            orders.addCell(new Paragraph("Description", FONT_BOLD));
140
            orders.addCell(new Paragraph("Description", FONT_BOLD));
141
            orders.addCell(new Paragraph("HSN Code", FONT_BOLD));
141
            orders.addCell(new Paragraph("HSN", FONT_BOLD));
142
            orders.addCell(new Paragraph("Qty", FONT_BOLD));
142
            orders.addCell(new Paragraph("Qty", FONT_BOLD));
143
            orders.addCell(new Paragraph("Rate (Rs)", FONT_BOLD));
143
            orders.addCell(new Paragraph("Rate(Rs)", FONT_BOLD));
-
 
144
            orders.addCell(new Paragraph("Discount(Rs)", FONT_BOLD));
144
            orders.addCell(new Paragraph("Amount (Rs)", FONT_BOLD));
145
            orders.addCell(new Paragraph("Amount(Rs)", FONT_BOLD));
145
            if(!gstWithInState){
146
            if(!gstWithInState){
146
            	orders.addCell(new Paragraph("IGST Rate%", FONT_BOLD));
147
            	orders.addCell(new Paragraph("IGST Rate%", FONT_BOLD));
147
                orders.addCell(new Paragraph("IGST Amount", FONT_BOLD));
148
                orders.addCell(new Paragraph("IGST Amount", FONT_BOLD));
148
                //orders.setWidths(new float[]{1, 3, 1, 1, 1, 1, 1, 1});
149
                //orders.setWidths(new float[]{1, 3, 1, 1, 1, 1, 1, 1});
149
                orders.setWidths(new float[]{.7f, 3, 1.2f, .7f, 1.1f, 1.1f, .9f, .9f});
150
                orders.setWidths(new float[]{.6f, 2.3f, 1.2f, .7f, 1.1f, 1.1f, .9f, .9f});
150
            }else{
151
            }else{
151
            	orders.addCell(new Paragraph("CGST Rate%", FONT_BOLD));
152
            	orders.addCell(new Paragraph("CGST Rate%", FONT_BOLD));
152
                orders.addCell(new Paragraph("CGST Amount", FONT_BOLD));
153
                orders.addCell(new Paragraph("CGST Amount", FONT_BOLD));
153
                orders.addCell(new Paragraph("SGST Rate%", FONT_BOLD));
154
                orders.addCell(new Paragraph("SGST Rate%", FONT_BOLD));
154
                orders.addCell(new Paragraph("SGST Amount", FONT_BOLD));
155
                orders.addCell(new Paragraph("SGST Amount", FONT_BOLD));
155
                //orders.setWidths(new float[]{1, 3, 1, 1, 1, 1, 1, 1, 1, 1});
156
                //orders.setWidths(new float[]{1, 3, 1, 1, 1, 1, 1, 1, 1, 1});
156
                orders.setWidths(new float[]{.7f, 3, 1.2f, .7f, 1.1f, 1.1f, .9f, .9f, .9f, .9f});
157
                orders.setWidths(new float[]{.6f, 2.3f, 1.2f, .7f, 1.1f, 1.1f, .9f, .9f, .9f, .9f});
157
            }
158
            }
158
            
159
            
159
            //orders.addCell(new Paragraph("Item Total (Rs)", FONT_BOLD));
160
            //orders.addCell(new Paragraph("Item Total (Rs)", FONT_BOLD));
160
            
161
            
161
            orders.setHeaderRows(1);
162
            orders.setHeaderRows(1);
Line 167... Line 168...
167
            	orders.addCell(new Paragraph(String.valueOf(index++), FONT_NORMAL));
168
            	orders.addCell(new Paragraph(String.valueOf(index++), FONT_NORMAL));
168
            	orders.addCell(new Paragraph(orderItem.getDescription(), FONT_NORMAL));
169
            	orders.addCell(new Paragraph(orderItem.getDescription(), FONT_NORMAL));
169
            	orders.addCell(new Paragraph(orderItem.getHsnCode(), FONT_NORMAL));
170
            	orders.addCell(new Paragraph(orderItem.getHsnCode(), FONT_NORMAL));
170
            	orders.addCell(new Paragraph(String.valueOf(orderItem.getQuantity()), FONT_NORMAL));
171
            	orders.addCell(new Paragraph(String.valueOf(orderItem.getQuantity()), FONT_NORMAL));
171
            	orders.addCell(new Paragraph(String.format("%.2f", orderItem.getRate()), FONT_NORMAL));
172
            	orders.addCell(new Paragraph(String.format("%.2f", orderItem.getRate()), FONT_NORMAL));
-
 
173
            	orders.addCell(new Paragraph(String.format("%.2f", orderItem.getDiscount()), FONT_NORMAL));
172
            	orders.addCell(new Paragraph(String.format("%.2f", orderItem.getAmount()), FONT_NORMAL));
174
            	orders.addCell(new Paragraph(String.format("%.2f", orderItem.getAmount()), FONT_NORMAL));
173
            	if(!gstWithInState){
175
            	if(!gstWithInState){
174
            		orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstRate()), FONT_NORMAL));
176
            		orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstRate()), FONT_NORMAL));
175
            		orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstAmount()), FONT_NORMAL));
177
            		orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstAmount()), FONT_NORMAL));
176
            		igstTotalAmount = igstTotalAmount + orderItem.getIgstAmount();
178
            		igstTotalAmount = igstTotalAmount + orderItem.getIgstAmount();