/** * Echo the invoice deposit * @param integer $id * @return string */ function si_invoice_deposit($id = 0) { if (!$id) { $id = get_the_ID(); } echo apply_filters('si_invoice_deposit', si_get_invoice_deposit($id), $id); }
_e('Invoice Total', 'sprout-invoices'); ?> </span></dt> <dd><?php sa_formatted_money(si_get_invoice_total()); ?> </dd> </dl> <dl class="doc_total"> <dt><span class="dt_heading"><?php _e('Deposit Total', 'sprout-invoices'); ?> </span></dt> <dd><?php sa_formatted_money(si_get_invoice_deposit()); ?> </dd> </dl> <?php } else { ?> <dl class="doc_total"> <dt><span class="dt_heading"><?php _e('Invoice Total', 'sprout-invoices'); ?> </span></dt> <dd><?php sa_formatted_money(si_get_invoice_total()); ?> </dd>
/** * Echo the invoice deposit * @param integer $id * @return string */ function si_invoice_deposit($id = 0) { if (!$id) { global $post; $id = $post->ID; } echo apply_filters('si_invoice_deposit', si_get_invoice_deposit($id), $id); }