Subversion Repositories SmartDukaan

Rev

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

Rev 16264 Rev 24332
Line 99... Line 99...
99
 
99
 
100
    public String create() {
100
    public String create() {
101
    	this.purchaseOrderId = request.getParameter("poId");
101
    	this.purchaseOrderId = request.getParameter("poId");
102
        poId = Long.parseLong(purchaseOrderId);
102
        poId = Long.parseLong(purchaseOrderId);
103
        invoiceNumber = request.getParameter("invoiceNo");
103
        invoiceNumber = request.getParameter("invoiceNo");
-
 
104
        if(invoiceNumber.endsWith(",")) {
-
 
105
        	addActionError("Invoice Number should not end with Comma");
-
 
106
        	return "show";
-
 
107
        }
104
        String fc = request.getParameter("freightCharges").trim();
108
        String fc = request.getParameter("freightCharges").trim();
105
        freightCharges = 0D;
109
        freightCharges = 0D;
106
        id = "0";
110
        id = "0";
107
        if (fc != null && !fc.isEmpty())
111
        if (fc != null && !fc.isEmpty())
108
            freightCharges = Double.parseDouble(fc);
112
            freightCharges = Double.parseDouble(fc);