Exemplo n.º 1
0
 /**
  * Echo the invoice total
  * @param  integer $id
  * @return string
  */
 function si_invoice_total($id = 0)
 {
     if (!$id) {
         $id = get_the_ID();
     }
     echo apply_filters('si_invoice_total', si_get_invoice_total($id), $id);
 }
Exemplo n.º 2
0
</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>
								</dl>
							<?php 
}
?>

							<dl class="doc_total doc_balance">
								<dt><span class="dt_heading"><?php 
_e('Balance', 'sprout-invoices');
?>
</span></dt>
								<dd><?php 
sa_formatted_money(si_get_invoice_balance());
?>
Exemplo n.º 3
0
 /**
  * Echo the invoice total
  * @param  integer $id 
  * @return string      
  */
 function si_invoice_total($id = 0)
 {
     if (!$id) {
         global $post;
         $id = $post->ID;
     }
     echo apply_filters('si_invoice_total', si_get_invoice_total($id), $id);
 }