Skip to content

Commit

Permalink
Fix invoices QR code not working when all are paid
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Nov 2, 2023
1 parent 42af569 commit 20e01eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/shop/invoices.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
<span data-bs-toggle="tooltip" data-bs-title="Faktura již byla označena dodavatelem jako uhrazená.">
<div class="btn-group me-2 w-100" role="group" aria-label="First group">
<button type="button" class="btn btn-primary" onclick="getQrCode('{{ this._id }}', {{this.paid}})"><i class="fa-solid fa-qrcode"></i></button>
<input type="hidden" name="invoice_id" value="{{ this._id }}">
<input type="hidden" name="_csrf" value="{{ ../csrfToken }}">
<input type="submit" class="btn btn-secondary float-right w-100" value="Uzavřeno" disabled>
</div>
</span>
Expand Down

0 comments on commit 20e01eb

Please sign in to comment.