当前位置: 首页>>代码示例>>PHP>>正文


PHP AccountLine::datev_previous方法代码示例

本文整理汇总了PHP中AccountLine::datev_previous方法的典型用法代码示例。如果您正苦于以下问题:PHP AccountLine::datev_previous方法的具体用法?PHP AccountLine::datev_previous怎么用?PHP AccountLine::datev_previous使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AccountLine的用法示例。


在下文中一共展示了AccountLine::datev_previous方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GETPOST

$dvid = GETPOST('dvid');
$num = GETPOST('num');
// Security check
$fieldid = !empty($ref) ? $ref : $id;
$fieldname = isset($ref) ? 'ref' : 'rowid';
if ($user->societe_id) {
    $socid = $user->societe_id;
}
$result = restrictedArea($user, 'banque', $fieldid, 'bank_account', '', '', $fieldname);
if ($user->rights->banque->consolidate && $action == 'dvnext' && !empty($dvid)) {
    $al = new AccountLine($db);
    $al->datev_next($dvid);
}
if ($user->rights->banque->consolidate && $action == 'dvprev' && !empty($dvid)) {
    $al = new AccountLine($db);
    $al->datev_previous($dvid);
}
$sortfield = GETPOST('sortfield', 'alpha');
$sortorder = GETPOST('sortorder', 'alpha');
$page = GETPOST('page', 'int');
if ($page == -1) {
    $page = 0;
}
if (!$sortorder) {
    $sortorder = "ASC";
}
if (!$sortfield) {
    $sortfield = "s.nom";
}
$offset = $conf->liste_limit * $page;
$pageprev = $page - 1;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:releve.php

示例2: restrictedArea

    $socid = $user->societe_id;
}
$result = restrictedArea($user, 'banque', $fieldvalue, 'bank_account', '', '', $fieldtype);
if (!$user->rights->banque->lire && !$user->rights->banque->consolidate) {
    accessforbidden();
}
/*
 * Actions
 */
if ($user->rights->banque->consolidate && $action == 'dvnext') {
    $al = new AccountLine($db);
    $al->datev_next($_GET["rowid"]);
}
if ($user->rights->banque->consolidate && $action == 'dvprev') {
    $al = new AccountLine($db);
    $al->datev_previous($_GET["rowid"]);
}
if ($action == 'confirm_delete_categ' && $confirm == "yes" && $user->rights->banque->modifier) {
    $sql = "DELETE FROM " . MAIN_DB_PREFIX . "bank_class WHERE lineid = " . $rowid . " AND fk_categ = " . GETPOST("cat1");
    if (!$db->query($sql)) {
        dol_print_error($db);
    }
}
if ($user->rights->banque->modifier && $action == 'class') {
    $sql = "DELETE FROM " . MAIN_DB_PREFIX . "bank_class WHERE lineid = " . $rowid . " AND fk_categ = " . $_POST["cat1"];
    if (!$db->query($sql)) {
        dol_print_error($db);
    }
    $sql = "INSERT INTO " . MAIN_DB_PREFIX . "bank_class (lineid, fk_categ) VALUES (" . $rowid . ", " . $_POST["cat1"] . ")";
    if (!$db->query($sql)) {
        dol_print_error($db);
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:ligne.php

示例3: isset

// Security check
if (isset($_GET["account"]) || isset($_GET["ref"])) {
    $id = isset($_GET["account"]) ? $_GET["account"] : (isset($_GET["ref"]) ? $_GET["ref"] : '');
}
$fieldid = isset($_GET["ref"]) ? 'ref' : 'rowid';
if ($user->societe_id) {
    $socid = $user->societe_id;
}
$result = restrictedArea($user, 'banque', $id, 'bank_account', '', '', $fieldid);
if ($user->rights->banque->consolidate && $action == 'dvnext') {
    $al = new AccountLine($db);
    $al->datev_next($_GET["dvid"]);
}
if ($user->rights->banque->consolidate && $action == 'dvprev') {
    $al = new AccountLine($db);
    $al->datev_previous($_GET["dvid"]);
}
$sortfield = isset($_GET["sortfield"]) ? $_GET["sortfield"] : $_POST["sortfield"];
$sortorder = isset($_GET["sortorder"]) ? $_GET["sortorder"] : $_POST["sortorder"];
$page = isset($_GET["page"]) ? $_GET["page"] : $_POST["page"];
if ($page == -1) {
    $page = 0;
}
if (!$sortorder) {
    $sortorder = "ASC";
}
if (!$sortfield) {
    $sortfield = "s.nom";
}
$offset = $conf->liste_limit * $page;
$pageprev = $page - 1;
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:releve.php


注:本文中的AccountLine::datev_previous方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。