| ';
print ''.img_object($langs->trans("Payment"), "payment").' '.$objp->rowid.' | ';
- // Date
print ''.dol_print_date($db->jdate($objp->dp), 'dayhour', 'tzuserrel')." | \n";
$labeltype = $langs->trans("PaymentType".$objp->type_code) != ("PaymentType".$objp->type_code) ? $langs->trans("PaymentType".$objp->type_code) : $objp->paiement_type;
print "".$labeltype.' '.$objp->num_payment." | \n";
@@ -1046,6 +1050,17 @@ if ($id > 0) {
print ''."\n";
if ($action != 'edit') {
+ // Dynamic send mail button
+ $parameters = array();
+ $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
+ if (empty($reshook)) {
+ if (empty($user->socid)) {
+ $canSendMail = true;
+
+ print dolGetButtonAction($langs->trans('SendMail'), '', 'default', $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&action=presend&token='.newToken().'&mode=init#formmailbeforetitle', '', $canSendMail, $params);
+ }
+ }
+
// Reopen
if ($object->paye && $user->rights->salaries->write) {
print dolGetButtonAction('', $langs->trans('ReOpen'), 'default', $_SERVER["PHP_SELF"].'?action=reopen&token='.newToken().'&id='.$object->id, '');
@@ -1137,6 +1152,10 @@ if ($id > 0) {
$trackid = 'salary'.$object->id;
include DOL_DOCUMENT_ROOT.'/core/tpl/card_presend.tpl.php';
+
+ // Hook to add more things on page
+ $parameters = array();
+ $reshook = $hookmanager->executeHooks('salaryCardTabAddMore', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
}
// End of page