feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
145 changed files with 537 additions and 5101 deletions
Showing only changes of commit c48a0d2381 - Show all commits

View File

@ -164,14 +164,15 @@ class Invoice extends AbstractEndPoint
continue; continue;
} }
if ($ref === 'valor') { if ($ref === 'valor') {
$valor = 0; /*$valor = 0;
if ($data['cuota']->pago->fecha <= $today) { if ($data['cuota']->pago->fecha <= $today) {
$valor = $data['cuota']->pago->valor(); $valor = $data['cuota']->pago->valor();
} }
if ($valor === 0) { if ($valor === 0) {
$valor = $data['cuota']->pago->valor / $data['venta']->uf; $valor = $data['cuota']->pago->valor / $data['venta']->uf;
} }
$params[$key] = $valor; $params[$key] = $valor;*/
$params[$key] = $data['cuota']->pago->valor;
continue; continue;
} }
if ($ref === 'datosCuota') { if ($ref === 'datosCuota') {