mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-20 07:43:18 +01:00
* Qual: Fix PhanUndeclaredMethod cases * Fix PhanUndeclaredMethod cases * Qual: Remove PhanUndeclaredMethod exceptions * Fix spelling "disacard" * Improve phpdoc, add abstract method to trait for typing * Improve phpdoc typing for PHanUndeclaredMethod * Suppress phan notices for guarded AliasNbPages calls * Fix return value for printFile stub * Fix getting message from Exception * Define dummy getAllByProducts(), typing for it. * Fix typo in comment * Qual: Better typing for apiService (phan) * Test that the Generic OAuth Service is provided * Qual: Fix getSqlArrayForStats typing * Force modTcpdfbarcode * Correct typing hint * Set ModelePDFAsset typehint * Fix ModelePDFUserGroup typing hint * Fix phan typing hints htdocs/core/modules/printing/printgcp.modules.php * Fix write_file in ModelePDFStock* * Update printsheet.php * Adjust typing hint for barcode generator * Update printsheet.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
<?php
|
|
/* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
|
|
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
* or see https://www.gnu.org/
|
|
*/
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php';
|
|
|
|
/**
|
|
* Payment numbering references mother class
|
|
*/
|
|
abstract class ModeleNumRefPayments extends CommonNumRefGenerator
|
|
{
|
|
/**
|
|
* Return next free value
|
|
*
|
|
* @param Societe $objsoc Object thirdparty
|
|
* @param Object $object Object we need next value for
|
|
* @return string|int<-1,0> Value if OK, <=0 if KO
|
|
*/
|
|
abstract public function getNextValue($objsoc, $object);
|
|
}
|