--- a/busui/owa/modules/base/reportTransactionDetail.php +++ b/busui/owa/modules/base/reportTransactionDetail.php @@ -1,1 +1,75 @@ - + + * @copyright Copyright © 2006 - 2011 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.4.0 + */ + +class owa_reportTransactionDetailController extends owa_reportController { + + function action() { + + $transactionId = $this->getParam('transactionId'); + + $trans_detail = owa_coreAPI::executeAPICommand(array( + 'do' => 'getTransactionDetail', + 'transactionId' => $transactionId, + 'format' => 'php' + )); + + $this->set('trans_detail', $trans_detail); + $this->setSubview('base.reportTransactionDetail'); + $this->setTitle('Transaction Detail for: ', $transaction_id); + } + +} + +/** + * Transaction Detail Report View + * + * @author Peter Adams + * @copyright Copyright © 2006 - 2011 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.0.0 + */ + +class owa_reportTransactionDetailView extends owa_view { + + function render() { + + $this->body->set( 'trans_detail', $this->get( 'trans_detail' ) ); + $this->body->set_template( 'report_transaction_detail.php' ); + } + +} + +?>