latest commit 10-06-2025
This commit is contained in:
parent
db3bc89ff0
commit
f6943f5a9e
@ -210,20 +210,31 @@ if (!empty($Emp)) {
|
||||
<div class="modal-body p-4">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label for="MaterialCode" class="control-label">Material Code</label>
|
||||
<?php
|
||||
$options = array("0" => 'Material Code');
|
||||
//print_r( $options);
|
||||
if (!empty($MaterialList)) {
|
||||
foreach ($MaterialList as $MID) :
|
||||
$options[$MID->MaterialCode] = $MID->HSNCODE . ' ' . ' - ' . ' ' . $MID->MaterialName.' ( '.$MID->MaterialCode.' )';
|
||||
endforeach;
|
||||
}
|
||||
echo form_dropdown('MaterialCode', $options, set_value('MaterialCode'), 'id="MaterialCode" class="form-control searchabledropdown" ');
|
||||
$options = array("0" => 'Material Code');
|
||||
|
||||
if (!empty($MaterialList)) {
|
||||
foreach ($MaterialList as $MID) :
|
||||
$hsn = isset($MID->HSNCODE) ? $MID->HSNCODE : '';
|
||||
$label = esc($hsn . ' - ' . $MID->MaterialName . ' ( ' . $MID->MaterialCode . ' )');
|
||||
$options[$MID->MaterialCode] = $label;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown(
|
||||
'MaterialCode',
|
||||
$options,
|
||||
set_value('MaterialCode'),
|
||||
'id="MaterialCode" class="form-control searchabledropdown"'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user