Subversion Repositories SmartDukaan

Rev

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

Rev 11219 Rev 12361
Line 114... Line 114...
114
        		throw new Exception("Supplier Communication Address is Mandatory.");
114
        		throw new Exception("Supplier Communication Address is Mandatory.");
115
        	}
115
        	}
116
        	if(billingWarehouseIds==null || billingWarehouseIds.size()==0){
116
        	if(billingWarehouseIds==null || billingWarehouseIds.size()==0){
117
        		throw new Exception("Atleast One Billing Warehouse is Mandatory.");
117
        		throw new Exception("Atleast One Billing Warehouse is Mandatory.");
118
        	}
118
        	}
-
 
119
        	if(stateId == -1){
-
 
120
        		throw new Exception("State is Mandatory. Please select state");
-
 
121
        	}
119
            Supplier supplier = new Supplier();
122
            Supplier supplier = new Supplier();
120
            supplier.setName(name);
123
            supplier.setName(name);
121
            supplier.setCommunicationAddress(communicationAddress);
124
            supplier.setCommunicationAddress(communicationAddress);
122
            supplier.setContactEmail(contactEmail);
125
            supplier.setContactEmail(contactEmail);
123
            supplier.setContactFax(contactFax);
126
            supplier.setContactFax(contactFax);