invoices: make duplicate
All checks were successful
Build and Deploy to Production / build (push) Successful in 50s
Build and Deploy to Production / deploy (push) Successful in 26s

This commit is contained in:
Sergei Poljanski 2026-06-09 03:28:42 +03:00
commit cb52388bf1
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 29 additions and 0 deletions

View file

@ -40,6 +40,9 @@
<% if @invoice.paid? %>Mark unpaid<% else %>Mark paid<% end %>
</button>
</form>
<p style="margin-top: 14px;">
<a href="/admin/invoices/<%= @invoice.uuid %>/duplicate">Use as template for a new invoice →</a>
</p>
</section>
<% unless @invoice.notes.to_s.strip.empty? %>