Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
554a640c
Commit
554a640c
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 6.0
parents
3a7aea48
73494a23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/contrat/class/contrat.class.php
+1
-1
1 addition, 1 deletion
htdocs/contrat/class/contrat.class.php
htdocs/resource/list.php
+22
-8
22 additions, 8 deletions
htdocs/resource/list.php
htdocs/stripe/config.php
+2
-1
2 additions, 1 deletion
htdocs/stripe/config.php
with
25 additions
and
10 deletions
htdocs/contrat/class/contrat.class.php
+
1
−
1
View file @
554a640c
...
@@ -872,7 +872,7 @@ class Contrat extends CommonObject
...
@@ -872,7 +872,7 @@ class Contrat extends CommonObject
$sql
.
=
" fk_commercial_signature, fk_commercial_suivi, fk_projet,"
;
$sql
.
=
" fk_commercial_signature, fk_commercial_suivi, fk_projet,"
;
$sql
.
=
" ref, entity, note_private, note_public, ref_customer, ref_supplier, ref_ext)"
;
$sql
.
=
" ref, entity, note_private, note_public, ref_customer, ref_supplier, ref_ext)"
;
$sql
.
=
" VALUES ('"
.
$this
->
db
->
idate
(
$now
)
.
"',"
.
$this
->
socid
.
","
.
$user
->
id
;
$sql
.
=
" VALUES ('"
.
$this
->
db
->
idate
(
$now
)
.
"',"
.
$this
->
socid
.
","
.
$user
->
id
;
$sql
.
=
", '"
.
$this
->
db
->
idate
(
$this
->
date_contrat
)
.
"'"
;
$sql
.
=
",
"
.
(
dol_strlen
(
$this
->
date_contrat
)
!=
0
?
"
'"
.
$this
->
db
->
idate
(
$this
->
date_contrat
)
.
"'"
:
"NULL"
)
;
$sql
.
=
","
.
(
$this
->
commercial_signature_id
>
0
?
$this
->
commercial_signature_id
:
"NULL"
);
$sql
.
=
","
.
(
$this
->
commercial_signature_id
>
0
?
$this
->
commercial_signature_id
:
"NULL"
);
$sql
.
=
","
.
(
$this
->
commercial_suivi_id
>
0
?
$this
->
commercial_suivi_id
:
"NULL"
);
$sql
.
=
","
.
(
$this
->
commercial_suivi_id
>
0
?
$this
->
commercial_suivi_id
:
"NULL"
);
$sql
.
=
","
.
(
$this
->
fk_project
>
0
?
$this
->
fk_project
:
"NULL"
);
$sql
.
=
","
.
(
$this
->
fk_project
>
0
?
$this
->
fk_project
:
"NULL"
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/resource/list.php
+
22
−
8
View file @
554a640c
...
@@ -135,6 +135,7 @@ if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x',
...
@@ -135,6 +135,7 @@ if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x',
{
{
$search_ref
=
""
;
$search_ref
=
""
;
$search_label
=
""
;
$search_label
=
""
;
$search_type
=
""
;
$search_array_options
=
array
();
$search_array_options
=
array
();
$filter
=
array
();
$filter
=
array
();
}
}
...
@@ -163,14 +164,7 @@ if ($action == 'delete_resource')
...
@@ -163,14 +164,7 @@ if ($action == 'delete_resource')
print
$form
->
formconfirm
(
$_SERVER
[
'PHP_SELF'
]
.
"?element="
.
$element
.
"&element_id="
.
$element_id
.
"&lineid="
.
$lineid
,
$langs
->
trans
(
"DeleteResource"
),
$langs
->
trans
(
"ConfirmDeleteResourceElement"
),
"confirm_delete_resource"
,
''
,
''
,
1
);
print
$form
->
formconfirm
(
$_SERVER
[
'PHP_SELF'
]
.
"?element="
.
$element
.
"&element_id="
.
$element_id
.
"&lineid="
.
$lineid
,
$langs
->
trans
(
"DeleteResource"
),
$langs
->
trans
(
"ConfirmDeleteResourceElement"
),
"confirm_delete_resource"
,
''
,
''
,
1
);
}
}
// Load object list
$ret
=
$object
->
fetch_all
(
$sortorder
,
$sortfield
,
$limit
,
$offset
,
$filter
);
if
(
$ret
==
-
1
)
{
dol_print_error
(
$db
,
$object
->
error
);
exit
;
}
else
{
print_barre_liste
(
$pagetitle
,
$page
,
$_SERVER
[
"PHP_SELF"
],
$param
,
$sortfield
,
$sortorder
,
''
,
$ret
+
1
,
$object
->
num_all
,
'title_generic.png'
);
}
$var
=
true
;
$var
=
true
;
...
@@ -187,6 +181,26 @@ print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
...
@@ -187,6 +181,26 @@ print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
print
'<input type="hidden" name="page" value="'
.
$page
.
'">'
;
print
'<input type="hidden" name="page" value="'
.
$page
.
'">'
;
print
'<input type="hidden" name="contextpage" value="'
.
$contextpage
.
'">'
;
print
'<input type="hidden" name="contextpage" value="'
.
$contextpage
.
'">'
;
if
(
empty
(
$conf
->
global
->
MAIN_DISABLE_FULL_SCANLIST
))
{
$ret
=
$object
->
fetch_all
(
''
,
''
,
0
,
0
,
$filter
);
if
(
$ret
==
-
1
)
{
dol_print_error
(
$db
,
$object
->
error
);
exit
;
}
else
{
$nbtotalofrecords
=
$ret
;
}
}
// Load object list
$ret
=
$object
->
fetch_all
(
$sortorder
,
$sortfield
,
$limit
,
$offset
,
$filter
);
if
(
$ret
==
-
1
)
{
dol_print_error
(
$db
,
$object
->
error
);
exit
;
}
else
{
print_barre_liste
(
$pagetitle
,
$page
,
$_SERVER
[
"PHP_SELF"
],
$param
,
$sortfield
,
$sortorder
,
''
,
$ret
+
1
,
$nbtotalofrecords
,
'title_generic.png'
,
0
,
''
,
''
,
$limit
);
}
$moreforfilter
=
''
;
$moreforfilter
=
''
;
print
'<div class="div-table-responsive">'
;
print
'<div class="div-table-responsive">'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/stripe/config.php
+
2
−
1
View file @
554a640c
<?php
<?php
/* Copyright (C) 2017 Alexandre Spangaro <aspangaro@zendsi.com>
/* Copyright (C) 2017 Alexandre Spangaro <aspangaro@zendsi.com>
* Copyright (C) 2017 Saasprov <saasprov@gmail.com>
* Copyright (C) 2017 Saasprov <saasprov@gmail.com>
* Copyright (C) 2017 Ferran Marcet <fmarcet@2byte.es.com>
*
*
* This program is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -32,7 +33,7 @@ global $conf;
...
@@ -32,7 +33,7 @@ global $conf;
//use \includes\stripe as stripe;
//use \includes\stripe as stripe;
$stripe
=
array
();
$stripe
=
array
();
if
(
empty
(
$conf
->
global
->
S
KY
PE_LIVE
))
if
(
empty
(
$conf
->
global
->
S
TRI
PE_LIVE
))
{
{
$stripe
=
array
(
$stripe
=
array
(
"secret_key"
=>
$conf
->
global
->
STRIPE_TEST_SECRET_KEY
,
"secret_key"
=>
$conf
->
global
->
STRIPE_TEST_SECRET_KEY
,
...
...
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