mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-18 10:52:44 -04:00
show currency symbol on right if configured so (#451)
This commit is contained in:
@@ -57,13 +57,18 @@
|
||||
<?php echo form_label($this->lang->line('items_cost_price'), 'cost_price', array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class="col-xs-4">
|
||||
<div class="input-group input-group-sm">
|
||||
<?php if (!$this->config->item('currency_side')): ?>
|
||||
<span class="input-group-addon input-sm"><b><?php echo $this->config->item('currency_symbol'); ?></b></span>
|
||||
<?php endif; ?>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'cost_price',
|
||||
'id'=>'cost_price',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=>to_currency_no_money($item_info->cost_price))
|
||||
);?>
|
||||
<?php if ($this->config->item('currency_side')): ?>
|
||||
<span class="input-group-addon input-sm"><b><?php echo $this->config->item('currency_symbol'); ?></b></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -72,13 +77,18 @@
|
||||
<?php echo form_label($this->lang->line('items_unit_price'), 'unit_price', array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class='col-xs-4'>
|
||||
<div class="input-group input-group-sm">
|
||||
<?php if (!$this->config->item('currency_side')): ?>
|
||||
<span class="input-group-addon input-sm"><b><?php echo $this->config->item('currency_symbol'); ?></b></span>
|
||||
<?php endif; ?>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'unit_price',
|
||||
'id'=>'unit_price',
|
||||
'class'=>'form-control input-sm',
|
||||
'value'=>to_currency_no_money($item_info->unit_price))
|
||||
);?>
|
||||
<?php if ($this->config->item('currency_side')): ?>
|
||||
<span class="input-group-addon input-sm"><b><?php echo $this->config->item('currency_symbol'); ?></b></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user