mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Add ref no to invoice
This commit is contained in:
parent
03fe717aa1
commit
e678e655da
2 changed files with 6 additions and 4 deletions
|
@ -87,6 +87,7 @@ class Registrar < ActiveRecord::Base
|
|||
buyer_phone: phone,
|
||||
buyer_url: url,
|
||||
buyer_email: email,
|
||||
reference_no: reference_no,
|
||||
invoice_items_attributes: [
|
||||
{
|
||||
description: 'prepayment',
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
%h4= t('details')
|
||||
%hr
|
||||
%dl.dl-horizontal
|
||||
/ %dt= t('document_name')
|
||||
/ %dd= t(@invoice.document_name)
|
||||
|
||||
%dt= t('issue_date')
|
||||
%dd= l(@invoice.created_at)
|
||||
|
||||
|
@ -14,4 +11,8 @@
|
|||
%dd= t(@invoice.payment_term)
|
||||
|
||||
%dt= t('description')
|
||||
%dd= @invoice.description
|
||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
||||
%dd= "#{t('invoice_no', no: @invoice.id)}#{@invoice.description}"
|
||||
|
||||
%dt= t('reference_no')
|
||||
%dd= @invoice.reference_no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue