Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
afde9a57
Commit
afde9a57
authored
Jun 02, 2021
by
Hamza HRAMCHI
Browse files
FIX #16956 TIME 1:40 signature position for external user if mandatory
parent
af3b341a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/app/actions/send-external-signatory-book-action/send-external-signatory-book-action.component.ts
View file @
afde9a57
...
...
@@ -186,13 +186,16 @@ export class SendExternalSignatoryBookActionComponent implements OnInit {
if
(
externalUsers
.
length
>
0
)
{
let
resToSign
:
any
[]
=
this
.
maarchParapheur
.
resourcesToSign
.
filter
((
res
:
any
)
=>
res
.
hasOwnProperty
(
'
signaturePositions
'
));
let
mustSign
:
boolean
=
false
;
if
(
this
.
maarchParapheur
.
resourcesToSign
.
length
-
resToSign
.
length
>=
1
)
{
if
(
this
.
maarchParapheur
.
resourcesToSign
.
length
>
1
&&
this
.
maarchParapheur
.
resourcesToSign
.
length
-
resToSign
.
length
>=
1
)
{
return
true
;
}
else
if
(
resToSign
.
length
===
0
)
{
return
true
;
}
else
{
resToSign
=
resToSign
.
map
((
res
:
any
)
=>
res
.
signaturePositions
);
externalUsers
.
forEach
((
element
:
any
,
index
:
number
)
=>
{
externalUsers
.
forEach
((
element
:
any
)
=>
{
for
(
let
i
=
0
;
i
<
resToSign
.
length
;
i
++
)
{
if
(
resToSign
[
i
].
filter
((
item
:
any
)
=>
item
.
sequence
===
index
).
length
===
0
)
{
const
userIndex
:
number
=
this
.
maarchParapheur
.
appExternalVisaWorkflow
.
visaWorkflow
.
items
.
indexOf
(
element
);
if
(
resToSign
[
i
].
filter
((
item
:
any
)
=>
item
.
sequence
===
i
).
length
===
0
)
{
mustSign
=
true
;
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment