26require_once DOL_DOCUMENT_ROOT.
'/core/class/commonobject.class.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/class/commonobjectline.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/class/commonincoterm.class.php';
49 $selected = (empty($arraydata[
'selected']) ? 0 : $arraydata[
'selected']);
51 $return =
'<div class="box-flex-item box-flex-grow-zero">';
52 $return .=
'<div class="info-box info-box-sm">';
53 $return .=
'<div class="info-box-icon bg-infobox-action">';
56 $return .=
'<div class="info-box-content">';
57 $return .=
'<span class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this,
'getNomUrl') ? $this->getNomUrl() : $this->ref).
'</span>';
59 $return .=
'<input id="cb'.$this->id.
'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->
id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
61 if (property_exists($this,
'thirdparty') && is_object($this->thirdparty)) {
62 $return .=
'<br><div class="info-box-ref tdoverflowmax150">'.$this->thirdparty->getNomUrl(1).
'</div>';
64 if (property_exists($this,
'total_ht')) {
65 $return .=
'<div class="info-box-ref amount">'.price($this->total_ht, 0, $langs, 0, -1, -1, $conf->currency).
' '.$langs->trans(
'HT').
'</div>';
67 if (method_exists($this,
'getLibStatut')) {
68 $return .=
'<div class="info-box-status">'.$this->getLibStatut(3).
'</div>';
83 require_once DOL_DOCUMENT_ROOT.
'/product/class/product.class.php';
84 $product =
new Product($this->db);
86 foreach ($this->lines as $line) {
87 if (empty($line->fk_product) && !$ignoreFree) {
89 } elseif ((
int) $line->fk_product > 0) {
90 if ($product->fetch($line->fk_product) > 0) {
91 if ($product->status_buy) {
143 public $product_label;
149 public $product_tosell = 0;
155 public $product_tobuy = 0;
161 public $product_desc;
167 public $product_tobatch;
173 public $product_barcode;
198 public $product_type = 0;
210 public $remise_percent;
216 public $vat_src_code;
228 public $localtax1_tx;
234 public $localtax2_tx;
236 public $localtax1_type;
237 public $localtax2_type;
245 public $info_bits = 0;
250 public $special_code = 0;
252 public $fk_multicurrency;
253 public $multicurrency_code;
254 public $multicurrency_subprice;
255 public $multicurrency_total_ht;
256 public $multicurrency_total_tva;
257 public $multicurrency_total_ttc;
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.
getKanbanView($option='', $arraydata=null)
Return clickable link of object (with eventually picto)
getNbLinesProductOrServiceOnBuy($ignoreFree=false)
return nb of fines of order where products or services that can be bought
Superclass for orders classes.
$label
Custom label of line.
Class to manage products or services.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)