FormaPago Service
This commit is contained in:
@ -22,6 +22,11 @@ class Credito extends Service
|
||||
parent::__construct($logger);
|
||||
}
|
||||
|
||||
public function getByVenta(int $venta_id): Model\Venta\Credito
|
||||
{
|
||||
return $this->creditoRepository->fetchByVenta($venta_id);
|
||||
}
|
||||
|
||||
public function add(array $data): Model\Venta\Credito
|
||||
{
|
||||
$fecha = new DateTimeImmutable($data['fecha']);
|
||||
|
Reference in New Issue
Block a user