mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-25 17:48:46 -04:00
fix error on new item (#429)
This commit is contained in:
1 parent
19bdcad78e
commit
76ff5da718
2 files changed
+30
-18
No files matched your search
@@ -90,7 +90,7 @@
|
||||
'name'=>'tax_names[]',
|
||||
'id'=>'tax_name_1',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->config->item('default_tax_1_name'))
|
||||
'value'=>isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->config->item('default_tax_1_name'))
|
||||
);?>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
@@ -99,7 +99,7 @@
|
||||
'name'=>'tax_percents[]',
|
||||
'id'=>'tax_percent_name_1',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : $default_tax_1_rate)
|
||||
'value'=>isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : $default_tax_1_rate)
|
||||
);?>
|
||||
<span class="input-group-addon input-sm"><b>%</b></span>
|
||||
</div>
|
||||
@@ -113,7 +113,7 @@
|
||||
'name'=>'tax_names[]',
|
||||
'id'=>'tax_name_2',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->config->item('default_tax_2_name'))
|
||||
'value'=>isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->config->item('default_tax_2_name'))
|
||||
);?>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
@@ -122,7 +122,7 @@
|
||||
'name'=>'tax_percents[]',
|
||||
'class'=>'form-control input-sm',
|
||||
'id'=>'tax_percent_name_2',
|
||||
'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : $default_tax_2_rate)
|
||||
'value'=>isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : $default_tax_2_rate)
|
||||
);?>
|
||||
<span class="input-group-addon input-sm"><b>%</b></span>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@
|
||||
'name'=>'quantity_' . $key,
|
||||
'id'=>'quantity_' . $key,
|
||||
'class'=>'required quantity form-control',
|
||||
'value'=>isset($item_info->item_id) ? to_quantity($location_detail['quantity']) : 0)
|
||||
'value'=>isset($item_info->item_id) ? to_quantity($location_detail['quantity']) : to_quantity(0))
|
||||
);?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -155,7 +155,7 @@
|
||||
'name'=>'receiving_quantity',
|
||||
'id'=>'receiving_quantity',
|
||||
'class'=>'required form-control input-sm',
|
||||
'value'=>to_quantity($item_info->receiving_quantity))
|
||||
'value'=>isset($item_info->item_id) ? to_quantity($item_info->receiving_quantity) : to_quantity(0))
|
||||
);?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,7 +167,7 @@
|
||||
'name'=>'reorder_level',
|
||||
'id'=>'reorder_level',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=>!isset($item_info->item_id) ? 0 : to_quantity($item_info->reorder_level))
|
||||
'value'=>isset($item_info->item_id) ? to_quantity($item_info->reorder_level) : to_quantity(0))
|
||||
);?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user