show PaymentItems

This commit is contained in:
2016-05-16 21:06:27 +01:00
parent c15369b234
commit 7fbd49d6fb
3 changed files with 83 additions and 6 deletions

View File

@ -15,17 +15,19 @@
</tbody>
<tfoot>
<?php foreach ( $transaction[ 'paymentitems' ] as $paymentitem ) { if ( !$paymentitem[ 'fee' ] ) { print theme( 'fulcrm_shoppingcart_transaction_payment', array( 'item' => $paymentitem ) ); } } ?>
<tr>
<th colspan="3">
Total
</th>
<th class="text-right">
<?php $any = false; ?>
<?php if ( count( $transaction[ '_price' ][ 'total' ] ) ): ?>
<?php foreach ( $transaction[ '_price' ][ 'total' ] as $currency => $price ): ?>
<?php if ( $price[ 'gross' ] ): ?>
<?php if ( count( $transaction[ '_price' ][ 'outstanding' ] ) ): ?>
<?php foreach ( $transaction[ '_price' ][ 'outstanding' ] as $currency => $price ): ?>
<?php if ( $price[ 'balance' ] > 0 ): ?>
<?php $any = true; ?>
<div><?php print $currency . ' ' . $price[ 'format_gross' ]; ?></div>
<div><?php print $currency . ' ' . $price[ 'format_balance' ]; ?></div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>