varios
This commit is contained in:
@ -41,7 +41,7 @@ class Retail extends Producto {
|
||||
public function getProperties(): array {
|
||||
$properties = [];
|
||||
$properties []= (object) [
|
||||
'label' => 'Bono Pie en UF',
|
||||
'label' => 'Bono Pie %',
|
||||
'name' => 'bono'
|
||||
];
|
||||
$properties []= (object) [
|
||||
@ -49,7 +49,7 @@ class Retail extends Producto {
|
||||
'name' => 'rentabilidad'
|
||||
];
|
||||
$properties []= (object) [
|
||||
'label' => 'Valor Cuota en UF',
|
||||
'label' => 'Valor Cuota en $',
|
||||
'name' => 'cuota'
|
||||
];
|
||||
$properties []= (object) [
|
||||
@ -84,7 +84,7 @@ class Retail extends Producto {
|
||||
[
|
||||
'label' => 'Bono Pie',
|
||||
'name' => 'bono',
|
||||
'suffix' => ' UF'
|
||||
'suffix' => '%'
|
||||
],
|
||||
[
|
||||
'label' => 'Rentabilidad',
|
||||
@ -94,7 +94,7 @@ class Retail extends Producto {
|
||||
[
|
||||
'label' => 'Valor Cuota',
|
||||
'name' => 'cuota',
|
||||
'suffix' => ' UF'
|
||||
'prefix' => '$'
|
||||
],
|
||||
[
|
||||
'label' => 'Entrega Estimada',
|
||||
@ -102,6 +102,7 @@ class Retail extends Producto {
|
||||
]
|
||||
];
|
||||
array_walk($properties, function(&$item) {
|
||||
$item['prefix'] = $item['prefix'] ?? '';
|
||||
$item['suffix'] = $item['suffix'] ?? '';
|
||||
$item = (object) $item;
|
||||
});
|
||||
@ -140,6 +141,7 @@ class Retail extends Producto {
|
||||
]
|
||||
];
|
||||
array_walk($properties, function(&$item) {
|
||||
$item['prefix'] = $item['prefix'] ?? '';
|
||||
$item['suffix'] = $item['suffix'] ?? '';
|
||||
$item = (object) $item;
|
||||
});
|
||||
|
Reference in New Issue
Block a user