Skip to content

Commit

Permalink
feat: add payee filter in account transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusantguerrero committed Nov 24, 2024
1 parent 092162c commit a6ae250
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/js/domains/transactions/tableAccountCols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export const tableAccountCols = (accountId: number, showSelects?: false) => [
h(Link, { class: 'font-bold underline text-secondary', href: `/finance/accounts/${account.id}`}, `${account?.name}`),
h(IconTransfer, { class: 'fa fa-right-left'})
];
return row.payee?.name ?? h('div', { class: "flex justify-between items-center text-body-1 h-4"}, children() )
return row.payee
? h(Link, { class: 'font-bold text-primary', href: `/finance/lines?filter[payee_id]=${row.payee.id}`}, row.payee.name)
: h('div', { class: "flex justify-between items-center text-body-1 h-4"}, children() )
} catch(e) {
return ''
}
Expand Down

0 comments on commit a6ae250

Please sign in to comment.