Supplier details added

This commit is contained in:
gandhimathi Bharathirajan 2017-04-12 14:58:01 +05:30
parent 55e3e3f4af
commit 304e6f01de

View File

@ -16,8 +16,8 @@ $PaymentTerms = '';
$PaymentDays = ''; $PaymentDays = '';
$PayableAT = ''; $PayableAT = '';
$IsActive = ''; $IsActive = '';
$PaymentBefore = '';
$PaymentAfter = '';
if(!empty($supplier)) if(!empty($supplier))
{ {
foreach ($supplier as $uf) foreach ($supplier as $uf)
@ -48,6 +48,18 @@ if(!empty($supplier))
{ {
$IsActive = ''; $IsActive = '';
} }
$Paymentchk = $uf->PaymentDays;
if($Paymentchk == 'Before' )
{
$PaymentBefore = 'checked';
$PaymentAfter = '';
}
else
{
$PaymentAfter = 'checked';
$PaymentBefore = '';
}
} }
} }
@ -363,8 +375,8 @@ function onlyAlphabets(evt) {
</div> </div>
<div class="col-md-3"><span>Payment Date</span><br/> <div class="col-md-3"><span>Payment Date</span><br/>
<label class="radio-inline"><input type="radio" name="Payment" <?php echo($PaymentDays?'checked="checked"':''); ?> value="Before">Before</label> <label class="radio-inline"><input type="radio" name="Payment" <?php echo $PaymentBefore; ?> value="Before">Before</label>
<label class="radio-inline"><input type="radio" name="Payment" <?php echo($PaymentDays?'checked="checked"':''); ?> value="After">After</label> <label class="radio-inline"><input type="radio" name="Payment" <?php echo $PaymentAfter; ?> value="After">After</label>
</div> </div>