company_address ?>,
company_city ?>, company_state ?> company_postal_code ? " - " . $value->company_postal_code : "" ?>.

company_email ?>

company_mobile_no ?>

due_date) : ?>
wp_api_order_id) ? 'Order # ' . $value->invoice_number : 'Invoice # ' . $value->invoice_number; ?>
Invoice Date : formatted_invoice_date ?>
Due Date : formatted_due_date ?>
From Subscription : from_subscription)) ?>
To Subscription : to_subscription)) ?>
Billing Address Shipping Address
customer_name ?>
customer_bill_address && ($value->baddr_id !== null || $value->baddr_id !== '')){ ?> customer_bill_address ? $value->customer_bill_address." ," : ""?>
customer_bill_city ? $value->customer_bill_city : "" ?> customer_bill_state ? $value->customer_bill_state : "" ?> customer_bill_postal_code ? " - " . $value->customer_bill_postal_code : ""; ?> customer_bill_country ? $value->customer_bill_country . "." : $value->bcountry ?>
baddr_id === null || $value->baddr_id === '') { echo $value->billing_address ? '

'.$value->billing_address.'

' : ''; } ?> mobile_no ? $value->mobile_no." ." : "" ?>
customer_name ?>
customer_ship_address && ($value->saddr_id !== null || $value->saddr_id !== '')){ ?> customer_ship_address ? $value->customer_ship_address." ," : "" ?>
customer_ship_city ? $value->customer_ship_city : "" ?> customer_ship_state ? $value->customer_bill_state : "" ?> customer_ship_postal_code ? " - " . $value->customer_ship_postal_code : ""; ?> customer_ship_country ? $value->customer_ship_country . "." : $value->scountry ?>
saddr_id === null || $value->saddr_id === '') { echo $value->shipping_address ? '

'.$value->shipping_address.'

' : ''; } ?> mobile_no ? $value->mobile_no." ." : "" ?>


shipping_label != '') : ?> total_amount >= $value->exact_total_amount) ? '+' : '-'; $difference = abs($value->exact_total_amount - $value->total_amount); ?> status === 'Draft') : ?> status === 'Approved') : ?>
Subtotal :   ₹subtotal, 2, '.', ',') ?>
Discount :   discount ? "(-)" . number_format($value->discount, 2, '.', ',') : number_format(0, 2, '.', ',') ?>
shipping_label ?> :   ₹shipping_charge, 2, '.', ',') ?>
Rounding :   
Total :   ₹total_amount, 2, '.', ',') ?>
Balance :   ₹total_amount, 2, '.', ',') ?>
Paid :   ₹total_amount, 2, '.', ',') ?>
reason)) { ?>

Reason: reason; ?>

terms)) { ?>
                        terms ?>
                    

Bank Details

status === 'Draft') { echo '
Draft
'; } if ($data[0]->status === 'Cancelled') { echo '
Cancelled
'; } if ($data[0]->status === 'Void') { echo '
Void
'; }?>