@if (invoice) {

{{ (!isEstimate ? 'INVOICES_PAGE.INVOICE_NUMBER' : 'INVOICES_PAGE.ESTIMATE_NUMBER') | translate }}

{{ invoice?.invoiceNumber }}

{{ (!isEstimate ? 'INVOICES_PAGE.INVOICE_DATE' : 'INVOICES_PAGE.ESTIMATE_DATE') | translate }}:
{{ (invoice?.invoiceDate | dateFormat) || '—' }}
{{ 'INVOICES_PAGE.DUE_DATE' | translate }}:
{{ (invoice?.dueDate | dateFormat) || '—' }}
{{ 'INVOICES_PAGE.VIEW.FROM' | translate | titlecase }}:
{{ invoice?.fromOrganization?.name || '—' }}
{{ 'INVOICES_PAGE.VIEW.TO' | translate | titlecase }}:
{{ invoice?.toContact?.name || '—' }}
@if (invoice.internalNote && showInternalNote) {
{{ 'INVOICES_PAGE.INTERNAL_NOTE.INTERNAL_NOTE' | translate }}

{{ invoice.internalNote }}

}
{{ 'INVOICES_PAGE.TAX' | translate }}
@if (invoice.taxType === discountTaxTypes.FLAT_VALUE) { {{ invoice?.tax || 0 | currency : invoice?.currency | position : invoice?.fromOrganization.currencyPosition }} } @if (invoice.taxType === discountTaxTypes.PERCENT) { {{ invoice?.tax || 0 }}% }
{{ 'INVOICES_PAGE.TAX_2' | translate }}
@if (invoice.tax2Type === discountTaxTypes.FLAT_VALUE) { {{ invoice?.tax2 || 0 | currency : invoice?.currency | position : invoice?.fromOrganization.currencyPosition }} } @if (invoice.tax2Type === discountTaxTypes.PERCENT) { {{ invoice?.tax2 || 0 }}% }
{{ 'INVOICES_PAGE.INVOICES_SELECT_DISCOUNT_VALUE' | translate }}
@if (invoice.discountType === discountTaxTypes.FLAT_VALUE) { {{ invoice.discountValue || 0 | currency : invoice?.currency | position : invoice?.fromOrganization.currencyPosition }} } @if (invoice.discountType === discountTaxTypes.PERCENT) { {{ invoice?.discountValue || 0 }}% }
{{ 'INVOICES_PAGE.TOTAL_VALUE' | translate }}
{{ invoice?.totalValue || 0 | currency : invoice?.currency | position : invoice?.fromOrganization?.currencyPosition }}
@if (invoice.hasRemainingAmountInvoiced) {
{{ 'INVOICES_PAGE.ALREADY_PAID' | translate }}
{{ invoice?.alreadyPaid || 0 | currency : invoice?.currency | position : invoice?.fromOrganization?.currencyPosition }}
{{ 'INVOICES_PAGE.AMOUNT_DUE' | translate }}
{{ invoice?.amountDue || 0 | currency : invoice?.currency | position : invoice?.fromOrganization?.currencyPosition }}
}
} @else {
}