FIX: transacciones, tipocambio and headers

This commit is contained in:
2022-01-06 15:19:36 -03:00
parent b17225549c
commit 3cb2a877de
3 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,7 @@ class Cuenta extends Model {
public function transacciones($limit = null, $start = 0) {
if ($this->transacciones === null) {
$transacciones = Model::factory(Transaccion::class)
->select('transacciones.*')
->join('cuentas', 'cuentas.id = transacciones.debito_id OR cuentas.id = transacciones.credito_id')
->whereEqual('cuentas.id', $this->id)
->orderByAsc('transacciones.fecha');