Subversion Repositories SmartDukaan

Rev

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

Rev 27249 Rev 27250
Line 55... Line 55...
55
	private static float[] igstWidthsWithDiscount = new float[] { .3f, 2.6f, 0.7f, .4f, 0.7f, 0.5f, .7f, .6f, 0.6f,
55
	private static float[] igstWidthsWithDiscount = new float[] { .3f, 2.6f, 0.7f, .4f, 0.7f, 0.5f, .7f, .6f, 0.6f,
56
			0.9f };
56
			0.9f };
57
	private static float[] stateWidthsWithDiscount = new float[] { .3f, 2.1f, 0.7f, .3f, 0.6f, 0.4f, .7f, .5f, .6f, .5f,
57
	private static float[] stateWidthsWithDiscount = new float[] { .3f, 2.1f, 0.7f, .3f, 0.6f, 0.4f, .7f, .5f, .6f, .5f,
58
			.6f, .8f };
58
			.6f, .8f };
59
 
59
 
60
	private static float[] igstWidths = new float[] { .6f, 2.6f, 0.7f, .4f, 0.7f, .6f, 0.6f, 0.9f };
60
	private static float[] igstWidths = new float[] { .6f, 2.6f, 0.7f, .4f, 0.7f, .7f, .6f, 0.6f, 0.9f };
61
	private static float[] stateWidths = new float[] { .6f, 2.1f, 0.7f, .3f, 0.6f, .5f, .6f, .5f, .6f, .8f };
61
	private static float[] stateWidths = new float[] { .6f, 2.1f, 0.7f, .3f, 0.6f, .7f, .5f, .6f, .5f, .6f, .8f };
62
 
62
 
63
	private static float[] igstWidthsCrNote = new float[] { 2.6f, 0.7f, .4f, 0.7f, .7f, .6f, 0.6f, 0.9f };
63
	private static float[] igstWidthsCrNote = new float[] { 2.6f, 0.7f, .4f, 0.7f, .7f, .6f, 0.6f, 0.9f };
64
	private static float[] stateWidthsCrNote = new float[] { 2.1f, 0.7f, .3f, 0.6f, .7f, .5f, .6f, .5f, .6f, .8f };
64
	private static float[] stateWidthsCrNote = new float[] { 2.1f, 0.7f, .3f, 0.6f, .7f, .5f, .6f, .5f, .6f, .8f };
65
 
65
 
66
	private static final Locale indianLocale = Locale.getDefault();
66
	private static final Locale indianLocale = Locale.getDefault();
Line 188... Line 188...
188
				orders.addCell(new Paragraph("Sl", FONT_BOLD));
188
				orders.addCell(new Paragraph("Sl", FONT_BOLD));
189
				orders.addCell(new Paragraph("Description", FONT_BOLD));
189
				orders.addCell(new Paragraph("Description", FONT_BOLD));
190
				orders.addCell(new Paragraph("HSN", FONT_BOLD));
190
				orders.addCell(new Paragraph("HSN", FONT_BOLD));
191
				orders.addCell(new Paragraph("Qty", FONT_BOLD));
191
				orders.addCell(new Paragraph("Qty", FONT_BOLD));
192
				orders.addCell(new Paragraph("Rate\n(Per pc)", FONT_BOLD));
192
				orders.addCell(new Paragraph("Rate\n(Per pc)", FONT_BOLD));
193
				//orders.addCell(new Paragraph("Disc.", FONT_BOLD));
193
				orders.addCell(new Paragraph("Disc.", FONT_BOLD));
194
				orders.addCell(new Paragraph("Total\nTaxable", FONT_BOLD));
194
				orders.addCell(new Paragraph("Total\nTaxable", FONT_BOLD));
195
				if (!stateGst) {
195
				if (!stateGst) {
196
					orders.addCell(new Paragraph("IGST\n%", FONT_BOLD));
196
					orders.addCell(new Paragraph("IGST\n%", FONT_BOLD));
197
					orders.addCell(new Paragraph("IGST", FONT_BOLD));
197
					orders.addCell(new Paragraph("IGST", FONT_BOLD));
198
					// orders.setWidths(new float[]{1, 3, 1, 1, 1, 1, 1, 1});
198
					// orders.setWidths(new float[]{1, 3, 1, 1, 1, 1, 1, 1});
Line 218... Line 218...
218
					orders.addCell(new Paragraph(String.valueOf(index++), FONT_NORMAL));
218
					orders.addCell(new Paragraph(String.valueOf(index++), FONT_NORMAL));
219
					orders.addCell(new Paragraph(orderItem.getDescription(), FONT_NORMAL));
219
					orders.addCell(new Paragraph(orderItem.getDescription(), FONT_NORMAL));
220
					orders.addCell(new Paragraph(orderItem.getHsnCode(), FONT_NORMAL));
220
					orders.addCell(new Paragraph(orderItem.getHsnCode(), FONT_NORMAL));
221
					orders.addCell(new Paragraph(String.valueOf(orderItem.getQuantity()), FONT_NORMAL));
221
					orders.addCell(new Paragraph(String.valueOf(orderItem.getQuantity()), FONT_NORMAL));
222
					orders.addCell(new Paragraph(String.format("%.2f", orderItem.getRate()), FONT_NORMAL));
222
					orders.addCell(new Paragraph(String.format("%.2f", orderItem.getRate()), FONT_NORMAL));
223
					//orders.addCell(new Paragraph(String.format("%.2f", orderItem.getDiscount()), FONT_NORMAL));
223
					orders.addCell(new Paragraph(String.format("%.2f", orderItem.getDiscount()), FONT_NORMAL));
224
					orders.addCell(new Paragraph(String.format("%.2f", orderItem.getAmount()), FONT_NORMAL));
224
					orders.addCell(new Paragraph(String.format("%.2f", orderItem.getAmount()), FONT_NORMAL));
225
					if (!stateGst) {
225
					if (!stateGst) {
226
						orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstRate()), FONT_NORMAL));
226
						orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstRate()), FONT_NORMAL));
227
						orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstAmount()), FONT_NORMAL));
227
						orders.addCell(new Paragraph(String.format("%.2f", orderItem.getIgstAmount()), FONT_NORMAL));
228
						igstTotalAmount = igstTotalAmount + orderItem.getIgstAmount();
228
						igstTotalAmount = igstTotalAmount + orderItem.getIgstAmount();