dolibarr  13.0.2
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 }
35 
39 abstract class CommonOrderLine extends CommonObjectLine
40 {
45  public $label;
46 
53  public $ref;
54 
61  public $libelle;
62 
67  public $product_ref;
68 
73  public $product_label;
74 
79  public $product_desc;
80 
85  public $product_tobatch;
86 
91  public $product_barcode;
92 
97  public $qty;
98 
104  public $price;
105 
110  public $subprice;
111 
116  public $product_type = 0;
117 
122  public $desc;
123 
128  public $fk_product;
129 
134  public $remise_percent;
135 
140  public $vat_src_code;
141 
146  public $tva_tx;
147 
152  public $localtax1_tx;
153 
158  public $localtax2_tx;
159 
160  public $localtax1_type;
161  public $localtax2_type;
162 
169  public $info_bits = 0;
170 
171  public $special_code = 0;
172 
173  public $fk_multicurrency;
174  public $multicurrency_code;
175  public $multicurrency_subprice;
176  public $multicurrency_total_ht;
177  public $multicurrency_total_tva;
178  public $multicurrency_total_ttc;
179 }
$label
Custom label of line.
Parent class for class inheritance lines of business objects This class is useless for the moment so ...
Superclass for orders classes.
trait CommonIncoterm
Superclass for incoterm classes.
Superclass for orders classes.
Parent class of all other business classes (invoices, contracts, proposals, orders, ...)