1.7.25. 송장 드롭 (up)

1.7.25.1. 방법

1.7.25.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ invoice.errors.name | inline_errors }}
1.7.25.1.2. friendly_id

친숙한 ID를 반환합니다.

<td> {{ invoice.id }} </td>
<td> {{ invoice.name }} </td>
<td> {{ invoice.state }} </td>
<td> {{ invoice.cost }} {{ invoice.currency }} </td>
1.7.25.1.3. name

월 및 연도로 구성된 문자열

1.7.25.1.4. state
1.7.25.1.5. cost

2개의 10진수로 숫자를 반환합니다.

23.00
1.7.25.1.6. 통화
1.7.25.1.7. cost_without_vat

VAT를 통해 비용을 회수할 수 있습니다.

1.7.25.1.8. vat_amount

vat ammount를 반환합니다.

1.7.25.1.9. exists_pdf?

PDF가 생성된 경우 true를 반환합니다.

1.7.25.1.10. period_begin
{{ invoice.period_begin | date: i18n.short_date }}
1.7.25.1.11. period_end
{{ invoice.period_end | date: i18n.long_date }}
1.7.25.1.12. issued_on
{{ invoice.issued_on | date: i18n.long_date }}
1.7.25.1.13. due_on
{{ invoice.due_on | date: i18n.long_date }}
1.7.25.1.15. vat_code
1.7.25.1.16. fiscal_code
1.7.25.1.17. 계정

계정 삭제 반환

1.7.25.1.18. buyer_account
1.7.25.1.19. line_items

LineItemDrop 배열을 반환합니다.

{% for line_item in invoice.line_items %}
  <tr class="line_item {% cycle 'odd', 'even' %}">
    <th>{{ line_item.name }}</th>
    <td>{{ line_item.description }}</td>
    <td>{{ line_item.quantity }}</td>
    <td>{{ line_item.cost }}</td>
  </tr>
{% endfor %}
1.7.25.1.20. payment_transactions

다양한 PaymentTransactionDrop을 반환합니다.

{% for payment_transaction in invoice.payment_transactions %}
  <tr>
    <td> {% if payment_transaction.success? %} Success {% else %} Failure {% endif %} </td>
    <td> {{ payment_transaction.created_at }} </td>
    <td> {{ payment_transaction.reference }} </td>
    <td> {{ payment_transaction.message }} </td>
    <td> {{ payment_transaction.amount }} {{ payment_transaction.currency }} </td>
  </tr>
{% endfor %}
1.7.25.1.21. url

송장의 리소스 URL 반환

{{ "Show" | link_to: invoice.url }}
1.7.25.1.22. pdf_url

송장 pdf의 리소스 URL 반환

{{ "PDF" | link_to: invoice.pdf_url }}