|
@@ -1172,7 +1172,28 @@ if (empty($reshook)) {
|
|
if (!empty($conf->global->MAIN_DEPOSIT_MULTI_TVA) && $diff != 0) {
|
|
if (!empty($conf->global->MAIN_DEPOSIT_MULTI_TVA) && $diff != 0) {
|
|
$object->fetch_lines();
|
|
$object->fetch_lines();
|
|
$subprice_diff = $object->lines[0]->subprice - $diff / (1 + $object->lines[0]->tva_tx / 100);
|
|
$subprice_diff = $object->lines[0]->subprice - $diff / (1 + $object->lines[0]->tva_tx / 100);
|
|
- $object->updateline($object->lines[0]->id, $object->lines[0]->desc, $subprice_diff, $object->lines[0]->qty, $object->lines[0]->remise_percent, $object->lines[0]->date_start, $object->lines[0]->date_end, $object->lines[0]->tva_tx, 0, 0, 'HT', $object->lines[0]->info_bits, $object->lines[0]->product_type, 0, 0, 0, $object->lines[0]->pa_ht, $object->lines[0]->label, 0, array(), 100);
|
|
|
|
|
|
+ $object->updateline(
|
|
|
|
+ $object->lines[0]->id,
|
|
|
|
+ $object->lines[0]->desc,
|
|
|
|
+ $subprice_diff,
|
|
|
|
+ $object->lines[0]->tva_tx,
|
|
|
|
+ $object->lines[0]->localtax1_tx,
|
|
|
|
+ $object->lines[0]->localtax2_tx,
|
|
|
|
+ $object->lines[0]->qty,
|
|
|
|
+ $object->lines[0]->fk_product,
|
|
|
|
+ 'HT',
|
|
|
|
+ $object->lines[0]->info_bits,
|
|
|
|
+ $object->lines[0]->product_type,
|
|
|
|
+ $object->lines[0]->remise_percent,
|
|
|
|
+ 0,
|
|
|
|
+ $object->lines[0]->date_start,
|
|
|
|
+ $object->lines[0]->date_end,
|
|
|
|
+ 0,
|
|
|
|
+ 0,
|
|
|
|
+ 0,
|
|
|
|
+ '',
|
|
|
|
+ 100
|
|
|
|
+ );
|
|
}
|
|
}
|
|
} elseif ($result > 0) {
|
|
} elseif ($result > 0) {
|
|
$lines = $srcobject->lines;
|
|
$lines = $srcobject->lines;
|