mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
NEW contract signed status update (#30779)
* Moved signed status constants to array dictionary * Added getLibSignedStatus & getSignedStatusLocalisedArray methods * Updated fetch & create methods for signed_status * Added signed status to status badge * Updated signed_status module builder field * Added object context signed status for action trigger * Added signed status to contract list * Fixed signed status for contract list * Added sign, unsign, confirm_sign, confirm_unsign actions. Added sign button. * Fixed old contract without signed status * Added contract modify notification * Added contract signed status update * Updated EN localizations * Fixed contract notification administration * Fixed notification message * Fixed contract status badge * Fixed langs * Fixed langs key * Fixed duplicate localization
This commit is contained in:
@@ -149,7 +149,8 @@ class Notify
|
||||
'EXPENSE_REPORT_APPROVE',
|
||||
'HOLIDAY_VALIDATE',
|
||||
'HOLIDAY_APPROVE',
|
||||
'ACTION_CREATE'
|
||||
'ACTION_CREATE',
|
||||
'CONTRACT_MODIFY'
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -904,6 +905,13 @@ class Notify
|
||||
$object_type = 'action';
|
||||
$mesg = $outputlangs->transnoentitiesnoconv("EMailTextActionAdded", $link);
|
||||
break;
|
||||
case 'CONTRACT_MODIFY':
|
||||
$link = '<a href="'.$urlwithroot.'/contrat/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
||||
$context_info = array_key_exists('signature', $object->context) ? $object->getLibSignedStatus() : '';
|
||||
$dir_output = $conf->contract->multidir_output;
|
||||
$object_type = 'contract';
|
||||
$mesg = $outputlangs->transnoentitiesnoconv("EMailTextContractModified", $link, $context_info);
|
||||
break;
|
||||
default:
|
||||
$object_type = $object->element;
|
||||
$dir_output = $conf->$object_type->multidir_output[$object->entity ? $object->entity : $conf->entity]."/".get_exdir(0, 0, 0, 1, $object, $object_type);
|
||||
@@ -1202,6 +1210,13 @@ class Notify
|
||||
$object_type = 'action';
|
||||
$mesg = $langs->transnoentitiesnoconv("EMailTextActionAdded", $link);
|
||||
break;
|
||||
case 'CONTRACT_MODIFY':
|
||||
$link = '<a href="'.$urlwithroot.'/contrat/card.php?id='.$object->id.'&entity='.$object->entity.'">'.$newref.'</a>';
|
||||
$context_info = array_key_exists('signature', $object->context) ? $object->getLibSignedStatus() : '';
|
||||
$dir_output = $conf->contract->multidir_output;
|
||||
$object_type = 'contrat';
|
||||
$mesg = $langs->transnoentitiesnoconv("EMailTextContractModified", $link, $context_info);
|
||||
break;
|
||||
default:
|
||||
$object_type = $object->element;
|
||||
$dir_output = $conf->$object_type->multidir_output[$object->entity ? $object->entity : $conf->entity]."/".get_exdir(0, 0, 0, 1, $object, $object_type);
|
||||
|
||||
Reference in New Issue
Block a user