Subversion Repositories SmartDukaan

Rev

Rev 13362 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13362 Rev 20257
Line 161... Line 161...
161
    public void setVendorCode(int warehouseId) {
161
    public void setVendorCode(int warehouseId) {
162
        /**
162
        /**
163
         * This method takes an integer and converts it to a String like "S00730"
163
         * This method takes an integer and converts it to a String like "S00730"
164
         * We assume that warehouseId is less than 99999
164
         * We assume that warehouseId is less than 99999
165
         */
165
         */
166
        this.vendorCode = "s" + String.format("%05d", warehouseId); 
166
        this.vendorCode = "HS" + String.format("%04d", warehouseId); 
167
    }
167
    }	
168
    public void setVendorCode(String vendorCode) {
168
    public void setVendorCode(String vendorCode) {
169
        this.vendorCode = vendorCode;
169
        this.vendorCode = vendorCode;
170
    }
170
    }
171
    public String getVendorCode() {
171
    public String getVendorCode() {
172
        return vendorCode;
172
        return vendorCode;