// fix display percentage and amount type
This commit is contained in:
@@ -89,8 +89,8 @@
|
|||||||
{$tr.$key}
|
{$tr.$key}
|
||||||
{elseif isset($params.type) && $params.type == 'datetime'}
|
{elseif isset($params.type) && $params.type == 'datetime'}
|
||||||
{$tr.$key}
|
{$tr.$key}
|
||||||
{elseif isset($params.type) && $params.type == 'percent'}
|
{elseif isset($params.type) && $params.type == 'decimal'}
|
||||||
{$tr.$key|string_format:"%.2f"} {l s='%'}
|
{$tr.$key|string_format:"%.2f"}
|
||||||
{* If type is 'editable', an input is created *}
|
{* If type is 'editable', an input is created *}
|
||||||
{elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)}
|
{elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)}
|
||||||
<input type="text" name="{$key}_{$tr.id}" value="{$tr.$key}" class="{$key}" />
|
<input type="text" name="{$key}_{$tr.id}" value="{$tr.$key}" class="{$key}" />
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class AdminSpecificPriceRuleController extends AdminController
|
|||||||
'reduction' => array(
|
'reduction' => array(
|
||||||
'title' => $this->l('Reduction'),
|
'title' => $this->l('Reduction'),
|
||||||
'align' => 'center',
|
'align' => 'center',
|
||||||
'type' => 'percent'
|
'type' => 'decimal'
|
||||||
),
|
),
|
||||||
'from' => array(
|
'from' => array(
|
||||||
'title' => $this->l('From'),
|
'title' => $this->l('From'),
|
||||||
|
|||||||
Reference in New Issue
Block a user