Exemplo n.º 1
0
<?php

include_once 'config.php';
include_once '../checkAdminPagePermissions.php';
$dbBean = new DatabaseBean();
$general = new General($dbBean);
$menu_id = empty($_REQUEST['menu_id']) ? $_SESSION['menu_id'] : $_REQUEST['menu_id'];
$heading = $general->getPageHeading($menu_id);
$Purchaseorder = new Purchaseorder($dbBean);
$rows = $Purchaseorder->getLastPurchaseordersId();
$v = VOUCHER_NO_CONST;
if (count($rows) > 0) {
    $lastvoucherid = $rows[0]['id'] + 1;
} else {
    $lastvoucherid = '';
}
if ($lastvoucherid == '') {
    $voucherno = $v + 1;
} else {
    $voucherno = $v + $lastvoucherid;
}
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<?php