Skip to content

Commit

Permalink
Fix the issue wrong invoice id
Browse files Browse the repository at this point in the history
  • Loading branch information
tungleduyxyz committed Dec 11, 2024
1 parent b47097e commit dc7cc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kaui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module Kaui
when 'balance'
view_context.humanized_money_with_symbol(invoice.balance_to_money)
when 'invoice_id'
view_context.link_to(invoice.invoice_number, view_context.url_for(controller: :invoices, action: :show, account_id: invoice.account_id, id: invoice.invoice_id))
view_context.link_to(invoice.invoice_id, view_context.url_for(controller: :invoices, action: :show, account_id: invoice.account_id, id: invoice.invoice_id))
when 'status'
default_label = 'label-info'
default_label = 'label-default' if invoice&.status == 'DRAFT'
Expand Down

0 comments on commit dc7cc15

Please sign in to comment.