getItems() : []; $subtotal = is_callable( [ $invoice, 'getSubtotal' ] ) ? (float) $invoice->getSubtotal() : 0.0; $tax = is_callable( [ $invoice, 'getTaxAmount' ] ) ? (float) $invoice->getTaxAmount() : 0.0; $discount = is_callable( [ $invoice, 'getDiscountAmount' ] ) ? (float) $invoice->getDiscountAmount() : 0.0; $total = is_callable( [ $invoice, 'getTotal' ] ) ? (float) $invoice->getTotal() : 0.0; ?>

getNumber() ) : ?>
: getNumber() ); ?>
getIssueDate() ) : ?>
: getIssueDate() ); ?>
getExpiryDate() : '' ) : ( ( ! $ei_is_credit && is_callable( [ $invoice, 'getDueDate' ] ) ) ? $invoice->getDueDate() : '' ); ?>
:
getCustomerName() ) : ?>
getCustomerName() ); ?>
getCustomerAddress() ) : ?>
getCustomerAddress() ) ); ?>
getCustomerEmail() ) : ?>
getCustomerEmail() ); ?>
getTitle() ) : ?>
getTitle() ); ?>
getName() : ''; $desc = is_callable( [ $item, 'getDescription' ] ) ? (string) $item->getDescription() : ''; $qty = is_callable( [ $item, 'getQuantity' ] ) ? (float) $item->getQuantity() : 0.0; $rate = is_callable( [ $item, 'getPrice' ] ) ? (float) $item->getPrice() : 0.0; $amt = is_callable( [ $item, 'getAmount' ] ) ? (float) $item->getAmount() : ( $qty * $rate ); ?>
format( $rate ) ); ?> format( $amt ) ); ?>
0 ) : ?> 0 ) : ?> getId() : 0; $ei_pdf_paid = $ei_pdf_id ? \EasyInvoice\Services\InvoiceBalance::paid( $ei_pdf_id ) : 0.0; $ei_pdf_credited = $ei_pdf_id ? \EasyInvoice\Services\InvoiceBalance::credited( $ei_pdf_id ) : 0.0; if ( $ei_pdf_paid > 0 || $ei_pdf_credited > 0 ) : foreach ( \EasyInvoice\Services\CreditNote::forInvoice( $ei_pdf_id ) as $ei_credit_id ) : $ei_credit_amount = (float) get_post_meta( $ei_credit_id, '_easy_invoice_total', true ); if ( $ei_credit_amount <= 0 ) { continue; } ?> 0 ) : ?>
format( $subtotal ) ); ?>
-format( $discount ) ); ?>
format( $tax ) ); ?>
format( $total ) ); ?>
format( $ei_credit_amount ) ); ?>
format( $ei_pdf_paid ) ); ?>
format( max( 0, $total - $ei_pdf_paid - $ei_pdf_credited ) ) ); ?>
getNotes() ) : ?> getTerms() ) : ?>
getNotes() ) ); ?>
getTerms() ) ); ?>