Subversion Repositories SmartDukaan

Rev

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

Rev 37455 Rev 37457
Line 340... Line 340...
340
	
340
	
341
		
341
		
342
    ## State is picked from inventory.statemaster, never typed: the value is resolved back
342
    ## State is picked from inventory.statemaster, never typed: the value is resolved back
343
    ## through that master by name when the partner is invoiced, so a free-typed spelling
343
    ## through that master by name when the partner is invoiced, so a free-typed spelling
344
    ## produced a KYC record whose state could not be resolved.
344
    ## produced a KYC record whose state could not be resolved.
-
 
345
    ## When the LOI holds a validated GSTIN the state is already settled - the first two
-
 
346
    ## digits of a GSTIN are its state code - so the field is locked to that value rather
-
 
347
    ## than re-asked. data-gst-locked keeps the row's edit toggle from re-enabling it.
-
 
348
    #set($gstState = $gstStateMap.get($fofoKyc.getOnboardingId()))
-
 
349
    #if($gstState && $gstState != "")
-
 
350
    <td><i class="far fa-arrow-alt-circle-up" style="background:green"></i><select name="state" disabled
-
 
351
	               data-gst-locked="true" title="From the GSTIN on the LOI">
-
 
352
	               <option value="$gstState" selected>$gstState</option>
-
 
353
	               </select></td>
345
    #if($fofoKyc.getState())
354
	#elseif($fofoKyc.getState())
346
    <td><i class="far fa-arrow-alt-circle-up" style="background:green"></i><select name="state" disabled>
355
    <td><i class="far fa-arrow-alt-circle-up" style="background:green"></i><select name="state" disabled>
347
	               <option value="">State</option>
356
	               <option value="">State</option>
348
	               #foreach($stateName in $stateNames)
357
	               #foreach($stateName in $stateNames)
349
	               <option value="$stateName" #if($fofoKyc.getState() == $stateName)selected#end>$stateName</option>
358
	               <option value="$stateName" #if($fofoKyc.getState() == $stateName)selected#end>$stateName</option>
350
	               #end
359
	               #end