LLMS_Transaction::get_net_amount( array $price_args = array(), string $format = 'html' )
Get the total amount of the transaction after deducting refunds
Parameters Parameters
- $price_args
-
(array) (Optional) array of arguments that can be passed to llms_price()
Default value: array()
- $format
-
(string) (Optional) format conversion method [html|raw|float]
Default value: 'html'
Return Return
(mixed)
Source Source
File: includes/models/model.llms.transaction.php
public function get_net_amount( $price_args = array(), $format = 'html' ) { $amount = $this->get_price( 'amount', array(), 'float' ); $refund = $this->get_price( 'refund_amount', array(), 'float' ); return llms_price( $amount - $refund, $price_args, $format ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |