mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +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_phone: phone,
|
||||||
buyer_url: url,
|
buyer_url: url,
|
||||||
buyer_email: email,
|
buyer_email: email,
|
||||||
|
reference_no: reference_no,
|
||||||
invoice_items_attributes: [
|
invoice_items_attributes: [
|
||||||
{
|
{
|
||||||
description: 'prepayment',
|
description: 'prepayment',
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
%h4= t('details')
|
%h4= t('details')
|
||||||
%hr
|
%hr
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
/ %dt= t('document_name')
|
|
||||||
/ %dd= t(@invoice.document_name)
|
|
||||||
|
|
||||||
%dt= t('issue_date')
|
%dt= t('issue_date')
|
||||||
%dd= l(@invoice.created_at)
|
%dd= l(@invoice.created_at)
|
||||||
|
|
||||||
|
@ -14,4 +11,8 @@
|
||||||
%dd= t(@invoice.payment_term)
|
%dd= t(@invoice.payment_term)
|
||||||
|
|
||||||
%dt= t('description')
|
%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