Subversion Repositories SmartDukaan

Rev

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

Rev 36727 Rev 37804
Line 400... Line 400...
400
 
400
 
401
    public String getGstNumber() {
401
    public String getGstNumber() {
402
        return gstNumber;
402
        return gstNumber;
403
    }
403
    }
404
 
404
 
-
 
405
    /**
-
 
406
     * A GSTIN is upper case by definition, so it is normalised here rather than at each caller -
-
 
407
     * every write path stores the same registration the same way, whichever screen it came from.
-
 
408
     * RetailerServiceImpl.validateGstNumbers normalises too, but only the partner-update path runs
-
 
409
     * through it; the LOI and trial-form paths do not, which is how 03AAccn9802g1zp and
-
 
410
     * 06bmlpk3545g1z0 reached the table. Case matters downstream: NIC expects upper case, and any
-
 
411
     * comparison that is not case-insensitive silently fails to match otherwise.
-
 
412
     */
405
    public void setGstNumber(String gstNumber) {
413
    public void setGstNumber(String gstNumber) {
406
        this.gstNumber = gstNumber;
414
        this.gstNumber = com.spice.profitmandi.common.util.StringUtils.normalizeGstNumber(gstNumber);
407
    }
415
    }
408
 
416
 
409
    public String getOutletName() {
417
    public String getOutletName() {
410
        return outletName;
418
        return outletName;
411
    }
419
    }