dolibarr 22.0.5
modules_commandefournisseur.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
4 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
5 * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
6 * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
7 * Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
8 * Copyright (C) 2011-2016 Philippe Grand <philippe.grand@atoo-net.com>
9 * Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
10 * Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
11 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program. If not, see <https://www.gnu.org/licenses/>.
25 * or see https://www.gnu.org/
26 */
27
34require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
35require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php';
36require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; // required for use by classes that inherit
37
38
43{
47 public $posxpicture;
51 public $posxtva;
55 public $posxup;
59 public $posxqty;
63 public $posxunit;
67 public $posxdesc;
71 public $posxdiscount;
75 public $postotalht;
76
80 public $tva;
84 public $tva_array;
90 public $localtax1;
96 public $localtax2;
97
101 public $atleastoneratenotnull = 0;
105 public $atleastonediscount = 0;
106
107 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
115 public static function liste_modeles($db, $maxfilenamelength = 0)
116 {
117 // phpcs:enable
118 $type = 'order_supplier';
119 $list = array();
120
121 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
122 $list = getListOfModels($db, $type, $maxfilenamelength);
123
124 return $list;
125 }
126
127
128 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
140 abstract public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
141}
142
143
144
149{
157 abstract public function getNextValue($objsoc, $object);
158
164 abstract public function getExample();
165}
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:67
Parent class for documents (PDF, ODT, ...) generators.
Parent class for number ref generators.
Parent Class of numbering models of supplier order references.
getExample()
Return an example of numbering.
getNextValue($objsoc, $object)
Return next value.
Parent class for supplier orders models.
write_file($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
Function to build document.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
getListOfModels($db, $type, $maxfilenamelength=0, $showempty=0)
Return list of activated modules usable for document generation.