Ventas con cuotas pendientes
This commit is contained in:
@ -175,6 +175,19 @@ class Venta extends Service
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
* @throws Read
|
||||||
|
*/
|
||||||
|
public function getAllWithCuotaPending(): array
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
return array_map([$this, 'process'],$this->ventaRepository->fetchAllWithCuotaPending());
|
||||||
|
} catch (Implement\Exception\EmptyResult $exception) {
|
||||||
|
throw new Read(__CLASS__, $exception);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function process(Model\Venta $venta): Model\Venta
|
protected function process(Model\Venta $venta): Model\Venta
|
||||||
{
|
{
|
||||||
if ($venta->uf === 0.0) {
|
if ($venta->uf === 0.0) {
|
||||||
|
Reference in New Issue
Block a user