Subversion Repositories SmartDukaan

Rev

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

Rev 22889 Rev 22891
Line 262... Line 262...
262
			// TODO Auto-generated catch block
262
			// TODO Auto-generated catch block
263
			e.printStackTrace();
263
			e.printStackTrace();
264
		}
264
		}
265
	}
265
	}
266
	
266
	
267
	//
-
 
268
	private static void generatePdfInvoice(InvoiceModel model, OutputStream outputStream) {
-
 
269
		Document document = new Document();
-
 
270
		document.setMargins(0, 0, 25, 0);
-
 
271
		
-
 
272
	}
-
 
273
	
-
 
274
	private static String toAmountInWords(float amount){
267
	private static String toAmountInWords(float amount){
275
		RuleBasedNumberFormat amountInWordsFormat = new RuleBasedNumberFormat(indianLocale, RuleBasedNumberFormat.SPELLOUT);
268
		RuleBasedNumberFormat amountInWordsFormat = new RuleBasedNumberFormat(indianLocale, RuleBasedNumberFormat.SPELLOUT);
276
       	StringBuilder amountInWords = new StringBuilder("Rs. ");
269
       	StringBuilder amountInWords = new StringBuilder("Rs. ");
277
        amountInWords.append(StringUtils.capitalize(amountInWordsFormat.format((int)amount)));
270
        amountInWords.append(StringUtils.capitalize(amountInWordsFormat.format((int)amount)));
278
       	amountInWords.append(" and ");
271
       	amountInWords.append(" and ");