* @version 5 * * @copyright Copyright (C) 2006 - 2014 Critter BVBA All rights reserved. * @license GNU General Public License version 3 or later; see license.txt * * showitem.vat.php * * showitem.vat dialog * */ // enable or disable logging error_reporting(E_ALL); ini_set('display_errors', '1'); // 0 - disabled; 1 - enabled // $o = new vat($data->data->id); $o->details(); ?> <div class="title"><?php echo ucwords($o->get("id") == -1 ? VAT_NEW_VAT : VAT_EDIT_VAT); ?> </div> <div class="form"> <div class="column"> <div class="row name"> <div class="caption"><?php echo ucwords(VAT_NAME); ?> <input type="hidden" id="id" value="<?php echo $o->get('id'); ?>
private function calculateVat($vat_id, $amount) { $vat = new vat($vat_id); return $vat->calculate($amount); }