* Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2004 Eric Seigne * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2012 Juanjo Menent * Copyright (C) 2014 Marcos García * Copyright (C) 2024-2025 MDW * Copyright (C) 2025 Jean-Rémi TAPONIER * * 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 . * or see https://www.gnu.org/ */ /** * \file htdocs/core/modules/accountancy/modules_accountancy.php * \ingroup accountancy * \brief File that contains parent class for orders models * and parent class for accountancy numbering models */ require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php'; /** * Parent class to manage numbering of Sale Orders */ abstract class ModeleNumRefBookkeeping extends CommonNumRefGenerator { /** * Return next free value * * @param BookKeeping $object Object we need next value for * @return string|int<-1,0> Value if OK, -1 if KO */ abstract public function getNextValue(BookKeeping $object); /** * Return an example of numbering * * @return string Example */ abstract public function getExample(); }