Qual: Derived missing variable from a known one
This commit is contained in:
parent
ae11a151d7
commit
7cdabb7d6c
@ -101,6 +101,7 @@ class Expedition extends CommonObject
|
||||
$this->products = array();
|
||||
|
||||
// List of long language codes for status
|
||||
$this->statuts = array();
|
||||
$this->statuts[-1] = 'StatusSendingCanceled';
|
||||
$this->statuts[0] = 'StatusSendingDraft';
|
||||
$this->statuts[1] = 'StatusSendingValidated';
|
||||
@ -1087,7 +1088,7 @@ class Expedition extends CommonObject
|
||||
$line->volume_units = $obj->volume_units;
|
||||
|
||||
// For invoicing
|
||||
$tabprice = calcul_price_total($obj->qty_shipped, $obj->subprice, $obj->remise_percent, $obj->tva_tx, $obj->localtax1_tx, $obj->localtax2_tx, 0, 'HT', $info_bits, $obj->fk_product_type); // We force type to 0
|
||||
$tabprice = calcul_price_total($obj->qty_shipped, $obj->subprice, $obj->remise_percent, $obj->tva_tx, $obj->localtax1_tx, $obj->localtax2_tx, 0, 'HT', $obj->info_bits, $obj->fk_product_type); // We force type to 0
|
||||
$line->desc = $obj->description; // We need ->desc because some code into CommonObject use desc (property defined for other elements)
|
||||
$line->qty = $obj->qty_shipped;
|
||||
$line->total_ht = $tabprice[0];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user