Skip to content

Commit

Permalink
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 1, 2024
2 parents 9dd1646 + 2e620ba commit 13801c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions htdocs/commande/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
if ($user->socid) {
$socid = $user->socid;
}
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('ordercontact', 'globalcard'));

$result = restrictedArea($user, 'commande', $id, '');

$usercancreate = $user->hasRight("commande", "creer");
Expand Down
4 changes: 4 additions & 0 deletions htdocs/commande/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
if ($user->socid) {
$socid = $user->socid;
}

// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('orderdocument', 'globalcard'));

$result = restrictedArea($user, 'commande', $id, '');


Expand Down
2 changes: 1 addition & 1 deletion htdocs/mrp/mo_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
$res = $object->add_object_linked('mo', $mo_parent->id);
}

header("Location: ".dol_buildpath('/mrp/mo_card.php?id='.((int) $moline->fk_mo), 1));
header("Location: ".dol_buildpath('/mrp/mo_card.php?id='.((int) $mo_parent->id), 1));
exit;
}

Expand Down
4 changes: 4 additions & 0 deletions htdocs/public/onlinesign/newonlinesign.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,13 @@
print '</td></tr>'."\n";

// Amount

$amount = '<tr class="CTableRow2"><td class="CTableRow2">'.$langs->trans("Amount");
$amount .= '</td><td class="CTableRow2">';
$amount .= '<b>'.price($object->total_ttc, 0, $langs, 1, -1, -1, $conf->currency).'</b>';
if ($object->multicurrency_code != $conf->currency) {
$amount .= ' ('.price($object->multicurrency_total_ttc, 0, $langs, 1, -1, -1, $object->multicurrency_code).')';
}
$amount .= '</td></tr>'."\n";

// Call Hook amountPropalSign
Expand Down

0 comments on commit 13801c6

Please sign in to comment.