dolibarr 21.0.0-beta
modules_commandefournisseur.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
4 * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
5 * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
6 * Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
7 * Copyright (C) 2011-2016 Philippe Grand <philippe.grand@atoo-net.com>
8 * Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
9 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
10 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <https://www.gnu.org/licenses/>.
24 * or see https://www.gnu.org/
25 */
26
33require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
34require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php';
35require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; // required for use by classes that inherit
36
37
42{
43 public $posxpicture;
44 public $posxtva;
45 public $posxup;
46 public $posxqty;
47 public $posxunit;
48 public $posxdesc;
49 public $posxdiscount;
50 public $postotalht;
51
52 public $tva;
53 public $tva_array;
54 public $localtax1;
55 public $localtax2;
56
57 public $atleastoneratenotnull = 0;
58 public $atleastonediscount = 0;
59
60 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
68 public static function liste_modeles($db, $maxfilenamelength = 0)
69 {
70 // phpcs:enable
71 $type = 'order_supplier';
72 $list = array();
73
74 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
75 $list = getListOfModels($db, $type, $maxfilenamelength);
76
77 return $list;
78 }
79
80
81 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
93 abstract public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
94}
95
96
97
102{
110 abstract public function getNextValue($objsoc, $object);
111
117 abstract public function getExample();
118}
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:66
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)
Return list of activated modules usable for document generation.