ID, 'all_invoice_data', true); $status = get_post_meta($post->ID, 'status', true); $apifw_company_logo = ( isset($invoice['logo_url']) && !empty($invoice['logo_url']) ) ? $invoice['logo_url'] : ''; ?>


' . $invoice['merchant_info']['address']['line1'] . '
' : ''; ?> ' . $invoice['merchant_info']['address']['line2'] . '
' : ''; ?>
' . $invoice['merchant_info']['email'] . '
' : ''; ?> +' . $invoice['merchant_info']['phone']['country_code'] . ' ' . $invoice['merchant_info']['phone']['national_number'] . '
'; } ?>



Bill To'; } ?> ' . $invoice['billing_info'][0]['business_name'] . '
' : ''; ?>
' . $invoice['billing_info'][0]['address']['line1'] . '
' : ''; ?> ' . $invoice['billing_info'][0]['address']['line2'] . '' : ''; ?>
' . $invoice['billing_info'][0]['email'] . '' : ''; ?> ' . $invoice['billing_info'][0]['address']['phone']['country_code'] . ' ' . $invoice['billing_info'][0]['address']['phone']['national_number'] . ''; } ?>
Ship To'; } ?> ' . $invoice['shipping_info']['business_name'] . '
' : ''; ?>
' . $invoice['shipping_info']['address']['line1'] . '' : ''; ?> ' . $invoice['shipping_info']['address']['line2'] . '' : ''; ?>
' . $invoice['shipping_info']['email'] . '' : ''; ?> +' . $invoice['shipping_info']['phone']['country_code'] . ' ' . $invoice['shipping_info']['phone']['national_number'] . ''; } ?>
$invoice_item) { $description_html = ''; if (!empty($invoice_item['description'])) { $description = $invoice_item['description']; } else { $description = ''; } echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $sub_total = $sub_total + ($invoice_item['quantity'] * $invoice_item['unit_price']['value']); if (!empty($invoice_item['tax'])) { $invoice_total_array['tax'][$key] = $invoice_item['tax']; } } if (!empty($invoice['discount'])) { $invoice_total_array['discount'] = $invoice['discount']; } if (!empty($invoice['shipping_cost'])) { $invoice_total_array['shipping_cost'] = $invoice['shipping_cost']; } $invoice_total_array['sub_total'] = array('currency' => $invoice_item['unit_price']['currency'], 'value' => $sub_total); } ?>
'; $description_html .= '
' . $invoice_item['name']; $description_html .= !empty($description) ? '
' . $description : ''; echo $description_html; echo '
' . $invoice_item['quantity'] . '' . pifw_get_currency_symbol($invoice_item['unit_price']['currency']) . $invoice_item['unit_price']['value'] . '' . pifw_get_currency_symbol($invoice_item['unit_price']['currency']) . number_format($invoice_item['quantity'] * $invoice_item['unit_price']['value'], 2) . '
$value_data) { if (!isset($new_tax_data[$value_data['name']][$value_data['percent']])) { $new_tax_data[$value_data['name']][$value_data['percent']] = $value_data; } else { $new_amount_value = $new_tax_data[$value_data['name']][$value_data['percent']]['amount']['value'] + $value_data['amount']['value']; $value_data['amount']['value'] = $new_amount_value; $new_tax_data[$value_data['name']][$value_data['percent']] = $value_data; } } if (!empty($new_tax_data)) { foreach ($new_tax_data as $tax_index => $tax_data_value) { if (!empty($tax_data_value)) { foreach ($tax_data_value as $key => $tax_data) { echo ''; echo ''; echo ''; echo ''; } } } } ?> -' . pifw_get_currency_symbol($invoice_total_array['discount']['amount']['currency']) . number_format($invoice_total_array['discount']['amount']['value'], 2) . ''; ?> ' . pifw_get_currency_symbol($invoice['total_amount']['currency']) . number_format($invoice['total_amount']['value'], 2) . ' ' . $invoice['total_amount']['currency'] . ''; ?>
'; echo $tax_data['name'] . ' (' . $tax_data['percent'] . '%)'; echo '' . pifw_get_currency_symbol($tax_data['amount']['currency']) . number_format($tax_data['amount']['value'], 2) . '


get_invoice_notes($post->ID); if (!empty($invoice_history)) : ?>



History

$history) { echo ''; echo ''; echo ''; echo ''; } ?>
' . date_i18n(get_option('date_format'), strtotime($history->comment_date)) . '' . $history->comment_content . '