Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
58fef715
Commit
58fef715
authored
2 years ago
by
Jean-Laurent DUZANT
Browse files
Options
Downloads
Patches
Plain Diff
FIX #20298 TIME 1:10 valide circuit visa when all document of letterbox are signed
parent
fe533d98
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/signatureBook/process_mailsFromSignatoryBook.php
+20
-1
20 additions, 1 deletion
bin/signatureBook/process_mailsFromSignatoryBook.php
with
20 additions
and
1 deletion
bin/signatureBook/process_mailsFromSignatoryBook.php
+
20
−
1
View file @
58fef715
...
...
@@ -311,6 +311,10 @@ foreach ($retrievedMails['noVersion'] as $resId => $value) {
}
Bt_validatedMail
([
'status'
=>
$status
,
'resId'
=>
$value
[
'res_id_master'
]]);
if
(
empty
(
$validateVisaWorkflow
[
$value
[
'res_id_master'
]][
'WorkflowCompleted'
])
||
$validateVisaWorkflow
[
$value
[
'res_id_master'
]][
'WorkflowCompleted'
]
==
false
)
{
$validateVisaWorkflow
[
$value
[
'res_id_master'
]][
'WorkflowCompleted'
]
=
true
;
}
$historyInfo
=
'La signature de la pièce jointe '
.
$historyIdentifier
.
' a été validée dans le parapheur externe'
.
$additionalHistoryInfo
;
}
elseif
(
$value
[
'status'
]
==
'refused'
)
{
if
(
!
empty
(
$value
[
'encodedFile'
]))
{
...
...
@@ -346,7 +350,8 @@ foreach ($retrievedMails['noVersion'] as $resId => $value) {
'where'
=>
[
'res_id = ?'
],
'data'
=>
[
$value
[
'res_id_master'
]]
]);
$validateVisaWorkflow
[
$value
[
'res_id_master'
]][
'WorkflowCompleted'
]
=
false
;
$historyInfo
=
'La signature de la pièce jointe '
.
$historyIdentifier
.
' a été refusée dans le parapheur externe'
.
$additionalHistoryInfo
;
}
if
(
in_array
(
$value
[
'status'
],
[
'validated'
,
'refused'
]))
{
...
...
@@ -432,6 +437,11 @@ foreach ($retrievedMails['resLetterbox'] as $resId => $value) {
if
(
$value
[
'status'
]
==
'validatedNote'
)
{
$status
=
$validatedStatusAnnot
;
}
if
(
empty
(
$validateVisaWorkflow
[
$value
[
'res_id'
]][
'WorkflowCompleted'
])
||
$validateVisaWorkflow
[
$value
[
'res_id_master'
]][
'WorkflowCompleted'
]
==
false
)
{
$validateVisaWorkflow
[
$value
[
'res_id'
]][
'WorkflowCompleted'
]
=
true
;
}
$history
=
'Le document '
.
$historyIdentifier
.
' a été validé dans le parapheur externe'
.
$additionalHistoryInfo
;
}
elseif
(
in_array
(
$value
[
'status'
],
[
'refusedNote'
,
'refused'
]))
{
Bt_writeLog
([
'level'
=>
'INFO'
,
'message'
=>
'Document refused'
]);
...
...
@@ -439,6 +449,7 @@ foreach ($retrievedMails['resLetterbox'] as $resId => $value) {
if
(
$value
[
'status'
]
==
'refusedNote'
)
{
$status
=
$refusedStatusAnnot
;
}
$validateVisaWorkflow
[
$value
[
'res_id'
]][
'WorkflowCompleted'
]
=
false
;
$history
=
'Le document '
.
$historyIdentifier
.
' a été refusé dans le parapheur externe'
.
$additionalHistoryInfo
;
}
Bt_history
([
...
...
@@ -459,6 +470,14 @@ foreach ($retrievedMails['resLetterbox'] as $resId => $value) {
}
}
// valide circuit visa
// only, if all documents of letterbox are signed
foreach
(
$validateVisaWorkflow
as
$key
=>
$value
)
{
if
(
!
empty
(
$value
[
'WorkflowCompleted'
])
&&
$value
[
'WorkflowCompleted'
])
{
\ExternalSignatoryBook\controllers\FastParapheurController
::
processVisaWorkflow
([
'res_id'
=>
$key
,
'processSignatory'
=>
true
]);
}
}
Bt_writeLog
([
'level'
=>
'INFO'
,
'message'
=>
'End of process'
]);
Bt_writeLog
([
'level'
=>
'INFO'
,
'message'
=>
$nbMailsRetrieved
.
' document(s) retrieved'
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment