Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
K
kiosqueip
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza Arfaoui
kiosqueip
Commits
2784c3f7
Commit
2784c3f7
authored
9 months ago
by
Hamza Arfaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CAF199
parent
cf4a71e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app.js
bornes/assets/js/app.js
+2
-2
No files found.
bornes/assets/js/app.js
View file @
2784c3f7
...
...
@@ -449,7 +449,7 @@ app.controller("CaisseController", ['$http', '$scope', '$controller', '$timeout'
msg
+=
(
that
.
config
.
fields
.
GENDER
.
REQUIRED
&&
!
that
.
civilite
)
?
$scope
.
titles
.
CIV_ERROR
:
""
;
msg
+=
(
$scope
.
clientcompany
&&
!
that
.
company
)
?
(
"<br/>"
+
$scope
.
titles
.
COMPANY_ERROR
)
:
""
;
msg
+=
msg
?
"<br/>"
:
""
;
msg
+=
((
!
that
.
lastname
&&
that
.
config
.
fields
.
LASTNAME
.
REQUIRED
)
||
(
!
that
.
firstname
&&
that
.
config
.
fields
.
FIRSTNAME
.
REQUIRED
)
||
(
that
.
firstname
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
&&
that
.
firstname
.
length
<
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
)
||
(
that
.
lastname
&&
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
&&
that
.
lastname
.
length
<
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
))
?
(
$scope
.
titles
.
NAME_ERROR
)
:
""
;
msg
+=
((
!
that
.
lastname
&&
that
.
config
.
fields
.
LASTNAME
.
REQUIRED
)
||
(
!
that
.
firstname
&&
that
.
config
.
fields
.
FIRSTNAME
.
REQUIRED
)
||
(
!
that
.
maticule
&&
that
.
config
.
fields
.
MATRICULE
.
REQUIRED
)
||
(
that
.
firstname
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
&&
that
.
firstname
.
length
<
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
)
||
(
that
.
lastname
&&
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
&&
that
.
lastname
.
length
<
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
))
?
(
$scope
.
titles
.
NAME_ERROR
)
:
""
;
if
(
$scope
.
config
.
borne
.
POPUP_ERRORS
!=
undefined
&&
$scope
.
config
.
borne
.
POPUP_ERRORS
===
true
)
{
$
(
"#error-popup .content"
).
html
(
msg
);
$
(
"#error-popup"
).
show
();
...
...
@@ -655,7 +655,7 @@ app.controller("CaisseController", ['$http', '$scope', '$controller', '$timeout'
$scope
.
validKeyboard
=
function
()
{
var
valid
=
true
;
if
(
$scope
.
config
)
{
valid
=
(
!
that
.
cgu
&&
$scope
.
config
.
fields
.
CGU
&&
$scope
.
config
.
fields
.
CGU
.
ENABLED
&&
$scope
.
config
.
fields
.
CGU
.
REQUIRED
)
||
(
$scope
.
clientcivilite
&&
!
that
.
civilite
&&
$scope
.
config
.
fields
.
GENDER
.
REQUIRED
)
||
(
$scope
.
clientcompany
&&
!
that
.
company
&&
$scope
.
config
.
fields
.
COMPANY
.
REQUIRED
)
||
(
!
that
.
firstname
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
ENABLED
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
REQUIRED
)
||
(
!
that
.
lastname
&&
$scope
.
config
.
fields
.
LASTNAME
.
ENABLED
&&
$scope
.
config
.
fields
.
LASTNAME
.
REQUIRED
)
||
(
that
.
lastname
&&
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
&&
that
.
lastname
.
length
<
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
)
||
(
that
.
firstname
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
&&
that
.
firstname
.
length
<
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
);
valid
=
(
!
that
.
cgu
&&
$scope
.
config
.
fields
.
CGU
&&
$scope
.
config
.
fields
.
CGU
.
ENABLED
&&
$scope
.
config
.
fields
.
CGU
.
REQUIRED
)
||
(
$scope
.
clientcivilite
&&
!
that
.
civilite
&&
$scope
.
config
.
fields
.
GENDER
.
REQUIRED
)
||
(
$scope
.
clientcompany
&&
!
that
.
company
&&
$scope
.
config
.
fields
.
COMPANY
.
REQUIRED
)
||
(
!
that
.
firstname
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
ENABLED
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
REQUIRED
)
||
(
!
that
.
lastname
&&
$scope
.
config
.
fields
.
LASTNAME
.
ENABLED
&&
$scope
.
config
.
fields
.
LASTNAME
.
REQUIRED
)
||
(
!
that
.
matricule
&&
$scope
.
config
.
fields
.
MATRICULE
.
ENABLED
&&
$scope
.
config
.
fields
.
MATRICULE
.
REQUIRED
)
||
(
that
.
lastname
&&
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
&&
that
.
lastname
.
length
<
$scope
.
config
.
fields
.
LASTNAME
.
MINCHARS
)
||
(
that
.
firstname
&&
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
&&
that
.
firstname
.
length
<
$scope
.
config
.
fields
.
FIRSTNAME
.
MINCHARS
);
}
return
!
valid
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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