dolibarr  16.0.5
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_tosell=0;
80 
85  public $product_tobuy=0;
86 
91  public $product_desc;
92 
97  public $product_tobatch;
98 
103  public $product_barcode;
104 
109  public $qty;
110 
116  public $price;
117 
122  public $subprice;
123 
128  public $product_type = 0;
129 
134  public $desc;
135 
140  public $fk_product;
141 
146  public $remise_percent;
147 
152  public $vat_src_code;
153 
158  public $tva_tx;
159 
164  public $localtax1_tx;
165 
170  public $localtax2_tx;
171 
172  public $localtax1_type;
173  public $localtax2_type;
174 
181  public $info_bits = 0;
182 
183  public $special_code = 0;
184 
185  public $fk_multicurrency;
186  public $multicurrency_code;
187  public $multicurrency_subprice;
188  public $multicurrency_total_ht;
189  public $multicurrency_total_tva;
190  public $multicurrency_total_ttc;
191 }
CommonOrder
Superclass for orders classes.
Definition: commonorder.class.php:31
CommonIncoterm
trait CommonIncoterm
Superclass for incoterm classes.
Definition: commonincoterm.class.php:29
CommonObjectLine
Parent class for class inheritance lines of business objects This class is useless for the moment so ...
Definition: commonobjectline.class.php:32
CommonObject
Parent class of all other business classes (invoices, contracts, proposals, orders,...
Definition: commonobject.class.php:44
CommonOrderLine\$label
$label
Custom label of line.
Definition: commonorder.class.php:45
CommonOrderLine\$price
$price
Unit price.
Definition: commonorder.class.php:116
CommonOrderLine
Superclass for orders classes.
Definition: commonorder.class.php:39