Skip to content

Commit

Permalink
Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 14, 2024
2 parents 1e64870 + fa22ebd commit 278eea6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions htdocs/comm/action/class/actioncomm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,7 @@ public function sendEmailsReminder()

// Load event
$res = $this->fetch($actionCommReminder->fk_actioncomm);
if ($res > 0) $res = $this->fetch_thirdparty();
if ($res > 0) {
// PREPARE EMAIL
$errormesg = '';
Expand Down
7 changes: 7 additions & 0 deletions htdocs/holiday/class/holiday.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,13 @@ public function update($user = null, $notrigger = 0)
$error++; $this->errors[] = "Error ".$this->db->lasterror();
}

if (!$error) {
$result = $this->insertExtraFields();
if ($result < 0) {
$error++;
}
}

if (!$error) {
if (!$notrigger) {
// Call trigger
Expand Down
15 changes: 9 additions & 6 deletions htdocs/product/stock/replenish.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,20 @@
// TODO Get desc in language of thirdparty
}

$line->tva_tx = $productsupplier->vatrate_supplier;
$tva = $line->tva_tx / 100;

// If we use multicurrency
if (isModEnabled('multicurrency') && !empty($productsupplier->fourn_multicurrency_code) && $productsupplier->fourn_multicurrency_code != $conf->currency) {
$line->multicurrency_code = $productsupplier->fourn_multicurrency_code;
$line->fk_multicurrency = $productsupplier->fourn_multicurrency_id;
$line->multicurrency_subprice = $productsupplier->fourn_multicurrency_unitprice;
$line->multicurrency_code = $productsupplier->fourn_multicurrency_code;
$line->fk_multicurrency = $productsupplier->fourn_multicurrency_id;
$line->multicurrency_subprice = $productsupplier->fourn_multicurrency_unitprice;
$line->multicurrency_total_ht = $line->multicurrency_subprice * $qty;
$line->multicurrency_total_tva = $line->multicurrency_total_ht * $tva;
$line->multicurrency_total_ttc = $line->multicurrency_total_ht + $line->multicurrency_total_tva;
}

$line->tva_tx = $productsupplier->vatrate_supplier;
$line->subprice = $productsupplier->fourn_pu;
$line->total_ht = $productsupplier->fourn_pu * $qty;
$tva = $line->tva_tx / 100;
$line->total_tva = $line->total_ht * $tva;
$line->total_ttc = $line->total_ht + $line->total_tva;
$line->remise_percent = $productsupplier->remise_percent;
Expand Down

0 comments on commit 278eea6

Please sign in to comment.