dolibarr  17.0.4
commonorder.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2012 Regis Houssin <regis.houssin@inodbox.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  */
17 
24 require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
25 require_once DOL_DOCUMENT_ROOT.'/core/class/commonobjectline.class.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/class/commonincoterm.class.php';
27 
31 abstract class CommonOrder extends CommonObject
32 {
33  use CommonIncoterm;
34 
38  public $code = "";
39 }
40 
44 abstract class CommonOrderLine extends CommonObjectLine
45 {
50  public $label;
51 
58  public $ref;
59 
66  public $libelle;
67 
72  public $product_ref;
73 
78  public $product_label;
79 
84  public $product_tosell=0;
85 
90  public $product_tobuy=0;
91 
96  public $product_desc;
97 
102  public $product_tobatch;
103 
108  public $product_barcode;
109 
114  public $qty;
115 
121  public $price;
122 
127  public $subprice;
128 
133  public $product_type = 0;
134 
139  public $desc;
140 
145  public $fk_product;
146 
151  public $remise_percent;
152 
157  public $vat_src_code;
158 
163  public $tva_tx;
164 
169  public $localtax1_tx;
170 
175  public $localtax2_tx;
176 
177  public $localtax1_type;
178  public $localtax2_type;
179 
186  public $info_bits = 0;
187 
188  public $special_code = 0;
189 
190  public $fk_multicurrency;
191  public $multicurrency_code;
192  public $multicurrency_subprice;
193  public $multicurrency_total_ht;
194  public $multicurrency_total_tva;
195  public $multicurrency_total_ttc;
196 }
Parent class of all other business classes (invoices, contracts, proposals, orders,...
Parent class for class inheritance lines of business objects This class is useless for the moment so ...
Superclass for orders classes.
Superclass for orders classes.
$label
Custom label of line.
trait CommonIncoterm
Superclass for incoterm classes.