@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public $fourn_remise; |
139 | 139 | |
140 | - public $fourn_charges; // when getDolGlobalString('PRODUCT_CHARGES') is set |
|
140 | + public $fourn_charges; // when getDolGlobalString('PRODUCT_CHARGES') is set |
|
141 | 141 | |
142 | 142 | /** |
143 | 143 | * @var int product-supplier id |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | public $fk_availability; |
158 | 158 | |
159 | 159 | public $fourn_unitprice; |
160 | - public $fourn_unitprice_with_discount; // not saved into database |
|
160 | + public $fourn_unitprice_with_discount; // not saved into database |
|
161 | 161 | public $fourn_tva_tx; |
162 | 162 | public $fourn_tva_npr; |
163 | 163 | |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | } |
476 | 476 | $sql = "UPDATE " . MAIN_DB_PREFIX . "product_fournisseur_price"; |
477 | 477 | $sql .= " SET fk_user = " . ((int) $user->id) . " ,"; |
478 | - $sql .= " datec = '" . $this->db->idate($now) . "' ,"; // Note: Even if this is an update, we update the creation date as the log of each change is tracked into product_fournisseur_log. |
|
478 | + $sql .= " datec = '" . $this->db->idate($now) . "' ,"; // Note: Even if this is an update, we update the creation date as the log of each change is tracked into product_fournisseur_log. |
|
479 | 479 | $sql .= " ref_fourn = '" . $this->db->escape($ref_fourn) . "',"; |
480 | 480 | $sql .= " desc_fourn = '" . $this->db->escape($desc_fourn) . "',"; |
481 | 481 | $sql .= " price = " . ((float) $buyprice) . ","; |
@@ -825,10 +825,10 @@ discard block |
||
825 | 825 | $prodfourn->fourn_tva_tx = $record["tva_tx"]; |
826 | 826 | $prodfourn->fourn_id = $record["fourn_id"]; |
827 | 827 | $prodfourn->fourn_name = $record["supplier_name"]; |
828 | - $prodfourn->fk_availability = $record["fk_availability"]; |
|
828 | + $prodfourn->fk_availability = $record["fk_availability"]; |
|
829 | 829 | $prodfourn->delivery_time_days = $record["delivery_time_days"]; |
830 | 830 | $prodfourn->id = $prodid; |
831 | - $prodfourn->fourn_tva_npr = $record["info_bits"]; |
|
831 | + $prodfourn->fourn_tva_npr = $record["info_bits"]; |
|
832 | 832 | $prodfourn->fk_supplier_price_expression = $record["fk_supplier_price_expression"]; |
833 | 833 | $prodfourn->supplier_reputation = $record["supplier_reputation"]; |
834 | 834 | $prodfourn->fourn_date_creation = $this->db->jdate($record['datec']); |
@@ -188,10 +188,10 @@ |
||
188 | 188 | $sqlsearchpackage .= ' WHERE entity IN (' . getEntity('product_fournisseur_price') . ")"; |
189 | 189 | $sqlsearchpackage .= " AND fk_product = " . ((int) $objp->fk_product); |
190 | 190 | $sqlsearchpackage .= " AND ref_fourn = '" . $this->db->escape($objp->ref_supplier) . "'"; |
191 | - $sqlsearchpackage .= " AND quantity <= " . ((float) $objp->qty); // required to be qualified |
|
192 | - $sqlsearchpackage .= " AND (packaging IS NULL OR packaging = 0 OR packaging <= " . ((float) $objp->qty) . ")"; // required to be qualified |
|
191 | + $sqlsearchpackage .= " AND quantity <= " . ((float) $objp->qty); // required to be qualified |
|
192 | + $sqlsearchpackage .= " AND (packaging IS NULL OR packaging = 0 OR packaging <= " . ((float) $objp->qty) . ")"; // required to be qualified |
|
193 | 193 | $sqlsearchpackage .= " AND fk_soc = " . ((int) $objp->socid); |
194 | - $sqlsearchpackage .= " ORDER BY packaging ASC"; // Take the smaller package first |
|
194 | + $sqlsearchpackage .= " ORDER BY packaging ASC"; // Take the smaller package first |
|
195 | 195 | $sqlsearchpackage .= " LIMIT 1"; |
196 | 196 | |
197 | 197 | $resqlsearchpackage = $this->db->query($sqlsearchpackage); |
@@ -694,8 +694,7 @@ |
||
694 | 694 | $sql .= " " . ($this->fk_parent_line > 0 ? "'" . $this->db->escape($this->fk_parent_line) . "'" : "null") . ","; |
695 | 695 | $product_label |
696 | 696 | = !empty($this->product_label) |
697 | - ? $this->product_label : |
|
698 | - (!empty($this->label) ? $this->label : null); |
|
697 | + ? $this->product_label : (!empty($this->label) ? $this->label : null); |
|
699 | 698 | $sql .= " " . (!empty($product_label) ? "'" . $this->db->escape($product_label) . "'" : "null") . ","; |
700 | 699 | $sql .= " '" . $this->db->escape($this->desc ? $this->desc : $this->description) . "',"; |
701 | 700 | $sql .= " '" . $this->db->escape($this->ref_supplier) . "',"; |
@@ -143,7 +143,7 @@ |
||
143 | 143 | $this->note_private = $obj->note; |
144 | 144 | $this->type_code = $obj->payment_code; |
145 | 145 | $this->type_label = $obj->payment_type; |
146 | - $this->fk_paiement = $obj->fk_paiement; |
|
146 | + $this->fk_paiement = $obj->fk_paiement; |
|
147 | 147 | $this->statut = $obj->statut; |
148 | 148 | |
149 | 149 | $error = 1; |
@@ -355,13 +355,13 @@ discard block |
||
355 | 355 | $sql .= ", '" . $this->db->idate($now) . "'"; |
356 | 356 | $sql .= ", " . ((int) $this->suspended); |
357 | 357 | $sql .= ", '" . $this->db->escape($this->libelle) . "'"; |
358 | - $sql .= ", " . (!empty($facfourn_src->total_ttc) ? (float) $facfourn_src->total_ttc : '0'); // amount |
|
358 | + $sql .= ", " . (!empty($facfourn_src->total_ttc) ? (float) $facfourn_src->total_ttc : '0'); // amount |
|
359 | 359 | $sql .= ", " . ((int) $user->id); |
360 | 360 | $sql .= ", " . (!empty($this->fk_project) ? ((int) $this->fk_project) : 'NULL'); |
361 | 361 | $sql .= ", " . (!empty($facfourn_src->fk_account) ? ((int) $facfourn_src->fk_account) : 'NULL'); |
362 | 362 | $sql .= ", " . ($this->cond_reglement_id > 0 ? (int) $this->cond_reglement_id : 'NULL'); |
363 | 363 | $sql .= ", " . ($this->mode_reglement_id > 0 ? (int) $this->mode_reglement_id : 'NULL'); |
364 | - $sql .= ", " . ($facfourn_src->date_echeance > 0 ? "'" . $this->db->idate($facfourn_src->date_echeance) . "'" : 'NULL'); // date_lim_reglement |
|
364 | + $sql .= ", " . ($facfourn_src->date_echeance > 0 ? "'" . $this->db->idate($facfourn_src->date_echeance) . "'" : 'NULL'); // date_lim_reglement |
|
365 | 365 | $sql .= ", " . (!empty($this->note_private) ? "'" . $this->db->escape($this->note_private) . "'" : 'NULL'); |
366 | 366 | $sql .= ", " . (!empty($this->note_public) ? "'" . $this->db->escape($this->note_public) . "'" : 'NULL'); |
367 | 367 | $sql .= ", " . (!empty($this->model_pdf) ? "'" . $this->db->escape($this->model_pdf) . "'" : 'NULL'); |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | $error = 0; |
517 | 517 | |
518 | 518 | $sql = "UPDATE " . MAIN_DB_PREFIX . "facture_fourn_rec SET"; |
519 | - $sql .= " titre = '" . (!empty($this->title) ? $this->db->escape($this->title) : "") . "'," ; |
|
519 | + $sql .= " titre = '" . (!empty($this->title) ? $this->db->escape($this->title) : "") . "',"; |
|
520 | 520 | $sql .= " subtype=" . (isset($this->subtype) ? $this->db->escape($this->subtype) : "null") . ","; |
521 | 521 | $sql .= " ref_supplier = '" . (!empty($this->ref_supplier) ? $this->db->escape($this->ref_supplier) : "") . "',"; |
522 | 522 | $sql .= " entity = " . (!empty($this->entity) ? ((int) $this->entity) : 1) . ','; |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | $this->id = $obj->rowid; |
635 | 635 | $this->titre = $obj->title; |
636 | 636 | $this->title = $obj->title; |
637 | - $this->subtype = $obj->subtype; |
|
637 | + $this->subtype = $obj->subtype; |
|
638 | 638 | $this->ref = $obj->title; |
639 | 639 | $this->ref_supplier = $obj->ref_supplier; |
640 | 640 | $this->entity = $obj->entity; |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | $line->product_type = $objp->product_type; |
793 | 793 | $line->date_start = $objp->date_start; |
794 | 794 | $line->date_end = $objp->date_end; |
795 | - $line->info_bits = $objp->info_bits ; |
|
795 | + $line->info_bits = $objp->info_bits; |
|
796 | 796 | $line->special_code = $objp->special_code; |
797 | 797 | $line->rang = $objp->rang; |
798 | 798 | $line->fk_unit = $objp->fk_unit; |
@@ -875,7 +875,7 @@ discard block |
||
875 | 875 | } |
876 | 876 | // End call triggers |
877 | 877 | } |
878 | - if (! $error) { |
|
878 | + if (!$error) { |
|
879 | 879 | $this->db->commit(); |
880 | 880 | return 1; |
881 | 881 | } else { |
@@ -1019,7 +1019,7 @@ discard block |
||
1019 | 1019 | $sql .= ', fk_user_author'; |
1020 | 1020 | $sql .= ', fk_multicurrency, multicurrency_code, multicurrency_subprice, multicurrency_total_ht, multicurrency_total_tva, multicurrency_total_ttc'; |
1021 | 1021 | $sql .= ') VALUES ('; |
1022 | - $sql .= ' ' . (int) $facid; // source supplier invoice id |
|
1022 | + $sql .= ' ' . (int) $facid; // source supplier invoice id |
|
1023 | 1023 | $sql .= ', ' . (!empty($fk_product) ? "'" . $this->db->escape($fk_product) . "'" : 'null'); |
1024 | 1024 | $sql .= ', ' . (!empty($ref) ? "'" . $this->db->escape($ref) . "'" : 'null'); |
1025 | 1025 | $sql .= ', ' . (!empty($label) ? "'" . $this->db->escape($label) . "'" : 'null'); |
@@ -1360,7 +1360,7 @@ discard block |
||
1360 | 1360 | |
1361 | 1361 | $new_fac_fourn->type = self::TYPE_STANDARD; |
1362 | 1362 | $new_fac_fourn->subtype = $facturerec->subtype; |
1363 | - $new_fac_fourn->statut = self::STATUS_DRAFT; // deprecated |
|
1363 | + $new_fac_fourn->statut = self::STATUS_DRAFT; // deprecated |
|
1364 | 1364 | $new_fac_fourn->status = self::STATUS_DRAFT; |
1365 | 1365 | $new_fac_fourn->date = empty($facturerec->date_when) ? $now : $facturerec->date_when; // We could also use dol_now here but we prefer date_when so invoice has real date when we would like even if we generate later. |
1366 | 1366 | $new_fac_fourn->socid = $facturerec->socid; |
@@ -1369,7 +1369,7 @@ discard block |
||
1369 | 1369 | $new_fac_fourn->model_pdf = $facturerec->model_pdf; |
1370 | 1370 | $new_fac_fourn->fk_project = $facturerec->fk_project; |
1371 | 1371 | $new_fac_fourn->label = $facturerec->label; |
1372 | - $new_fac_fourn->libelle = $facturerec->label; // deprecated |
|
1372 | + $new_fac_fourn->libelle = $facturerec->label; // deprecated |
|
1373 | 1373 | |
1374 | 1374 | $invoiceidgenerated = $new_fac_fourn->create($user); |
1375 | 1375 | $laststep = "Create invoiceidgenerated $invoiceidgenerated"; |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | $this->ref_supplier = $obj->ref_supplier; |
524 | 524 | $this->socid = $obj->fk_soc; |
525 | 525 | $this->fourn_id = $obj->fk_soc; |
526 | - $this->statut = $obj->status; // deprecated |
|
526 | + $this->statut = $obj->status; // deprecated |
|
527 | 527 | $this->status = $obj->status; |
528 | 528 | $this->billed = $obj->billed; |
529 | 529 | $this->user_author_id = $obj->user_author_id; |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | $this->fk_project = $obj->fk_project; |
555 | 555 | $this->cond_reglement_id = $obj->fk_cond_reglement; |
556 | 556 | $this->cond_reglement_code = $obj->cond_reglement_code; |
557 | - $this->cond_reglement = $obj->cond_reglement_label; // deprecated |
|
557 | + $this->cond_reglement = $obj->cond_reglement_label; // deprecated |
|
558 | 558 | $this->cond_reglement_label = $obj->cond_reglement_label; |
559 | 559 | $this->cond_reglement_doc = $obj->cond_reglement_doc; |
560 | 560 | $this->fk_account = $obj->fk_account; |
@@ -687,10 +687,10 @@ discard block |
||
687 | 687 | $sqlsearchpackage .= ' WHERE entity IN (' . getEntity('product_fournisseur_price') . ")"; |
688 | 688 | $sqlsearchpackage .= " AND fk_product = " . ((int) $objp->fk_product); |
689 | 689 | $sqlsearchpackage .= " AND ref_fourn = '" . $this->db->escape($objp->ref_supplier) . "'"; |
690 | - $sqlsearchpackage .= " AND quantity <= " . ((float) $objp->qty); // required to be qualified |
|
691 | - $sqlsearchpackage .= " AND (packaging IS NULL OR packaging = 0 OR packaging <= " . ((float) $objp->qty) . ")"; // required to be qualified |
|
690 | + $sqlsearchpackage .= " AND quantity <= " . ((float) $objp->qty); // required to be qualified |
|
691 | + $sqlsearchpackage .= " AND (packaging IS NULL OR packaging = 0 OR packaging <= " . ((float) $objp->qty) . ")"; // required to be qualified |
|
692 | 692 | $sqlsearchpackage .= " AND fk_soc = " . ((int) $this->socid); |
693 | - $sqlsearchpackage .= " ORDER BY packaging ASC"; // Take the smaller package first |
|
693 | + $sqlsearchpackage .= " ORDER BY packaging ASC"; // Take the smaller package first |
|
694 | 694 | $sqlsearchpackage .= " LIMIT 1"; |
695 | 695 | |
696 | 696 | $resqlsearchpackage = $this->db->query($sqlsearchpackage); |
@@ -1626,10 +1626,10 @@ discard block |
||
1626 | 1626 | $line->date_end, |
1627 | 1627 | $line->array_options, |
1628 | 1628 | $line->fk_unit, |
1629 | - $line->multicurrency_subprice, // pu_ht_devise |
|
1630 | - $line->origin, // origin |
|
1631 | - $line->origin_id, // origin_id |
|
1632 | - $line->rang, // rang |
|
1629 | + $line->multicurrency_subprice, // pu_ht_devise |
|
1630 | + $line->origin, // origin |
|
1631 | + $line->origin_id, // origin_id |
|
1632 | + $line->rang, // rang |
|
1633 | 1633 | $line->special_code |
1634 | 1634 | ); |
1635 | 1635 | if ($result < 0) { |
@@ -2003,7 +2003,7 @@ discard block |
||
2003 | 2003 | $this->db->begin(); |
2004 | 2004 | |
2005 | 2005 | $product_type = $type; |
2006 | - $label = ''; // deprecated |
|
2006 | + $label = ''; // deprecated |
|
2007 | 2007 | |
2008 | 2008 | if ($fk_product > 0) { |
2009 | 2009 | if (getDolGlobalString('SUPPLIER_ORDER_WITH_PREDEFINED_PRICES_ONLY')) { // Not the common case |
@@ -2146,7 +2146,7 @@ discard block |
||
2146 | 2146 | $this->line->total_localtax2 = $total_localtax2; |
2147 | 2147 | $this->line->total_ttc = $total_ttc; |
2148 | 2148 | $this->line->product_type = $type; |
2149 | - $this->line->special_code = (!empty($special_code) ? $special_code : 0); |
|
2149 | + $this->line->special_code = (!empty($special_code) ? $special_code : 0); |
|
2150 | 2150 | $this->line->origin = $origin; |
2151 | 2151 | $this->line->origin_id = $origin_id; |
2152 | 2152 | $this->line->fk_unit = $fk_unit; |
@@ -3353,7 +3353,7 @@ discard block |
||
3353 | 3353 | global $conf, $langs; |
3354 | 3354 | |
3355 | 3355 | if (!dol_strlen($modele)) { |
3356 | - $modele = ''; // No doc template/generation by default |
|
3356 | + $modele = ''; // No doc template/generation by default |
|
3357 | 3357 | |
3358 | 3358 | if (!empty($this->model_pdf)) { |
3359 | 3359 | $modele = $this->model_pdf; |
@@ -199,7 +199,7 @@ |
||
199 | 199 | $default_range = (int) $userauthor->default_range; // if not defined, then 0 |
200 | 200 | $ranges = $this->getRangesByCategory($fk_c_exp_tax_cat); |
201 | 201 | // prevent out of range -1 indice |
202 | - $indice = $default_range - 1; |
|
202 | + $indice = $default_range - 1; |
|
203 | 203 | // subtract 1 because array start from 0 |
204 | 204 | if (empty($ranges) || $indice < 0 || !isset($ranges[$indice])) { |
205 | 205 | return false; |
@@ -336,7 +336,7 @@ |
||
336 | 336 | } elseif ($mode == 'mon' || $mode == 'EX_MON') { |
337 | 337 | $sql .= " AND DATE_FORMAT(d.date, '%Y-%m') = '" . dol_print_date($this->date, '%Y-%m') . "'"; // @todo DATE_FORMAT is forbidden |
338 | 338 | } elseif ($mode == 'year' || $mode == 'EX_YEA') { |
339 | - $sql .= " AND DATE_FORMAT(d.date, '%Y') = '" . dol_print_date($this->date, '%Y') . "'"; // @todo DATE_FORMAT is forbidden |
|
339 | + $sql .= " AND DATE_FORMAT(d.date, '%Y') = '" . dol_print_date($this->date, '%Y') . "'"; // @todo DATE_FORMAT is forbidden |
|
340 | 340 | } |
341 | 341 | |
342 | 342 | dol_syslog('ExpenseReportLine::getExpAmount'); |
@@ -249,8 +249,8 @@ discard block |
||
249 | 249 | */ |
250 | 250 | public $fk_user_approve; |
251 | 251 | |
252 | - public $localtax1; // for backward compatibility (real field should be total_localtax1 defined into CommonObject) |
|
253 | - public $localtax2; // for backward compatibility (real field should be total_localtax2 defined into CommonObject) |
|
252 | + public $localtax1; // for backward compatibility (real field should be total_localtax1 defined into CommonObject) |
|
253 | + public $localtax2; // for backward compatibility (real field should be total_localtax2 defined into CommonObject) |
|
254 | 254 | |
255 | 255 | /** |
256 | 256 | * Draft status |
@@ -341,8 +341,8 @@ discard block |
||
341 | 341 | $this->total_tva = 0; |
342 | 342 | $this->total_localtax1 = 0; |
343 | 343 | $this->total_localtax2 = 0; |
344 | - $this->localtax1 = 0; // For backward compatibility |
|
345 | - $this->localtax2 = 0; // For backward compatibility |
|
344 | + $this->localtax1 = 0; // For backward compatibility |
|
345 | + $this->localtax2 = 0; // For backward compatibility |
|
346 | 346 | $this->modepaymentid = 0; |
347 | 347 | |
348 | 348 | // List of language codes for status |
@@ -699,8 +699,8 @@ discard block |
||
699 | 699 | $this->total_ht = $obj->total_ht; |
700 | 700 | $this->total_tva = $obj->total_tva; |
701 | 701 | $this->total_ttc = $obj->total_ttc; |
702 | - $this->localtax1 = $obj->total_localtax1; // For backward compatibility |
|
703 | - $this->localtax2 = $obj->total_localtax2; // For backward compatibility |
|
702 | + $this->localtax1 = $obj->total_localtax1; // For backward compatibility |
|
703 | + $this->localtax2 = $obj->total_localtax2; // For backward compatibility |
|
704 | 704 | $this->total_localtax1 = $obj->total_localtax1; |
705 | 705 | $this->total_localtax2 = $obj->total_localtax2; |
706 | 706 | |
@@ -1167,7 +1167,7 @@ discard block |
||
1167 | 1167 | |
1168 | 1168 | $deplig->rule_warning_message = $objp->rule_warning_message; |
1169 | 1169 | |
1170 | - $deplig->rang = $objp->rang; |
|
1170 | + $deplig->rang = $objp->rang; |
|
1171 | 1171 | |
1172 | 1172 | $this->lines[$i] = $deplig; |
1173 | 1173 | |
@@ -1963,8 +1963,8 @@ discard block |
||
1963 | 1963 | $this->line = new ExpenseReportLine($this->db); |
1964 | 1964 | |
1965 | 1965 | // We don't know seller and buyer for expense reports |
1966 | - $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
1967 | - $seller->tva_assuj = 1; // Most seller uses vat |
|
1966 | + $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
1967 | + $seller->tva_assuj = 1; // Most seller uses vat |
|
1968 | 1968 | $buyer = new Societe($this->db); |
1969 | 1969 | |
1970 | 1970 | $localtaxes_type = getLocalTaxesFromRate($vatrate, 0, $buyer, $seller); |
@@ -2046,8 +2046,8 @@ discard block |
||
2046 | 2046 | |
2047 | 2047 | // We don't know seller and buyer for expense reports |
2048 | 2048 | if (!is_object($seller)) { |
2049 | - $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
2050 | - $seller->tva_assuj = 1; // Most seller uses vat |
|
2049 | + $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
2050 | + $seller->tva_assuj = 1; // Most seller uses vat |
|
2051 | 2051 | } |
2052 | 2052 | |
2053 | 2053 | $expensereportrule = new ExpenseReportRule($db); |
@@ -2131,8 +2131,8 @@ discard block |
||
2131 | 2131 | |
2132 | 2132 | // We don't know seller and buyer for expense reports |
2133 | 2133 | if (!is_object($seller)) { |
2134 | - $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
2135 | - $seller->tva_assuj = 1; // Most seller uses vat |
|
2134 | + $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
2135 | + $seller->tva_assuj = 1; // Most seller uses vat |
|
2136 | 2136 | } |
2137 | 2137 | |
2138 | 2138 | $expenseik = new ExpenseReportIk($this->db); |
@@ -2226,10 +2226,10 @@ discard block |
||
2226 | 2226 | $type = 0; // TODO What if type is service ? |
2227 | 2227 | |
2228 | 2228 | // We don't know seller and buyer for expense reports |
2229 | - $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
2230 | - $seller->tva_assuj = 1; // Most seller uses vat |
|
2231 | - $seller->localtax1_assuj = $mysoc->localtax1_assuj; // We don't know, we reuse the state of company |
|
2232 | - $seller->localtax2_assuj = $mysoc->localtax1_assuj; // We don't know, we reuse the state of company |
|
2229 | + $seller = $mysoc; // We use same than current company (expense report are often done in same country) |
|
2230 | + $seller->tva_assuj = 1; // Most seller uses vat |
|
2231 | + $seller->localtax1_assuj = $mysoc->localtax1_assuj; // We don't know, we reuse the state of company |
|
2232 | + $seller->localtax2_assuj = $mysoc->localtax1_assuj; // We don't know, we reuse the state of company |
|
2233 | 2233 | $buyer = new Societe($this->db); |
2234 | 2234 | |
2235 | 2235 | $localtaxes_type = getLocalTaxesFromRate($vatrate, 0, $buyer, $seller); |