* showitem.transaction.php * * showitem.transaction dialog * */ // enable or disable logging error_reporting(E_ALL); ini_set('display_errors', '1'); // 0 - disabled; 1 - enabled // $o = new transaction($data->data->id); $o->details(); $sql = "SELECT `id`,CONCAT(`name`, ' (',`uid`,')') `name` FROM `##_" . $_SESSION['space'] . "_entity` WHERE `deleted`=0 AND `id`>0 ORDER BY `name`;"; $DBO->query($sql); $cust = $DBO->result("objectlist"); if ($o->get("id") == -1) { $entity_id = $cust[0]->id; } else { $entity_id = $o->get("entity_id"); } $sql = "SELECT `id`,`reference` FROM `##_" . $_SESSION['space'] . "_offer` WHERE `deleted`=0 AND `id`>0 AND `entity_id`='" . $entity_id . "' ORDER BY `reference`;"; $DBO->query($sql); $offer = $DBO->result("objectlist"); if ($o->get("id") == -1) { $offer_id = $offer[0]->id; $OFFER = new offer($offer_id); $OFFER->details(); $deadline = $OFFER->get("payment"); } else { $offer_id = $o->get('offer_id'); $deadline = $o->get('deadline');
<?php } ?> <div class="transaction" onclick="app.goto.transaction(<?php echo $row->id; ?> );"> <div class="cell uid"><a href="#"><?php echo $row->uid; ?> </a></div> <div class="cell duedate"><a href="#"><?php echo $row->duedate; ?> </a></div> <div class="cell reference"><a href="#"><?php echo $row->reference; ?> </a></div> <div class="cell amount"><a href="#"><?php echo number_format(array_sum($TRANSACTION->get("calculated_vat")), 2, APP_DECIMAL_SEPARATOR, APP_THOUSAND_SEPARATOR) . " " . $OFFER->get("currency_symbol"); ?> </a></div> </div> <?php $count++; } ?> </div> </div>