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
2e9dc28e
Commit
2e9dc28e
authored
17 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de la possibilité de pouvoir déterminer la date et l'adresse de livraison dans une propale
parent
46ff8a12
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/admin/propale.php
+34
-1
34 additions, 1 deletion
htdocs/admin/propale.php
htdocs/langs/en_US/admin.lang
+2
-0
2 additions, 0 deletions
htdocs/langs/en_US/admin.lang
htdocs/langs/fr_FR/admin.lang
+2
-0
2 additions, 0 deletions
htdocs/langs/fr_FR/admin.lang
with
38 additions
and
1 deletion
htdocs/admin/propale.php
+
34
−
1
View file @
2e9dc28e
...
...
@@ -85,6 +85,20 @@ if ($_POST["action"] == 'setdefaultduration')
exit
;
}
if
(
$_POST
[
"action"
]
==
'addshippingdate'
)
{
dolibarr_set_const
(
$db
,
"PROPALE_ADD_SHIPPING_DATE"
,
$_POST
[
"value"
]);
Header
(
"Location: propale.php"
);
exit
;
}
if
(
$_POST
[
"action"
]
==
'adddeliveryaddress'
)
{
dolibarr_set_const
(
$db
,
"PROPALE_ADD_DELIVERY_ADDRESS"
,
$_POST
[
"value"
]);
Header
(
"Location: propale.php"
);
exit
;
}
if
(
$_POST
[
"action"
]
==
'setclassifiedinvoiced'
)
{
dolibarr_set_const
(
$db
,
"PROPALE_CLASSIFIED_INVOICED_WITH_ORDER"
,
$_POST
[
"value"
]);
...
...
@@ -391,6 +405,25 @@ print '<td align="right"><input type="submit" class="button" value="'.$langs->tr
print
'</tr>'
;
print
'</form>'
;
$var
=!
$var
;
print
"<form method=
\"
post
\"
action=
\"
"
.
$_SERVER
[
"PHP_SELF"
]
.
"
\"
>"
;
print
"<input type=
\"
hidden
\"
name=
\"
action
\"
value=
\"
setaddshippingdate
\"
>"
;
print
"<tr "
.
$bc
[
$var
]
.
">"
;
print
'<td>'
.
$langs
->
trans
(
"AddShippingDateAbility"
)
.
'</td>'
;
print
'<td>'
.
$html
->
selectyesno
(
'value'
,
$conf
->
global
->
PROPALE_ADD_SHIPPING_DATE
,
1
)
.
'</td>'
;
print
'<td align="right"><input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'"></td>'
;
print
'</tr>'
;
print
'</form>'
;
$var
=!
$var
;
print
"<form method=
\"
post
\"
action=
\"
"
.
$_SERVER
[
"PHP_SELF"
]
.
"
\"
>"
;
print
"<input type=
\"
hidden
\"
name=
\"
action
\"
value=
\"
setadddeliveryaddress
\"
>"
;
print
"<tr "
.
$bc
[
$var
]
.
">"
;
print
'<td>'
.
$langs
->
trans
(
"AddDeliveryAddressAbility"
)
.
'</td>'
;
print
'<td>'
.
$html
->
selectyesno
(
'value'
,
$conf
->
global
->
PROPALE_ADD_DELIVERY_ADDRESS
,
1
)
.
'</td>'
;
print
'<td align="right"><input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'"></td>'
;
print
'</tr>'
;
print
'</form>'
;
if
(
$conf
->
commande
->
enabled
)
{
...
...
@@ -422,7 +455,7 @@ print "<tr class=\"liste_titre\">\n";
print
" <td>"
.
$langs
->
trans
(
"Name"
)
.
"</td>
\n
"
;
print
" <td>"
.
$langs
->
trans
(
"Value"
)
.
"</td>
\n
"
;
print
"</tr>
\n
"
;
print
"<tr "
.
$bc
[
false
]
.
">
\n
<td width=
\"
140
\"
>"
.
$langs
->
trans
(
"Directory"
)
.
"</td>
\n
<td>"
.
$conf
->
propal
->
dir_output
.
"</td>
\n
</tr>
\n
"
;
print
"<tr "
.
$bc
[
false
]
.
">
\n
<td width=
\"
140
\"
>"
.
$langs
->
trans
(
"
Path
Directory"
)
.
"</td>
\n
<td>"
.
$conf
->
propal
->
dir_output
.
"</td>
\n
</tr>
\n
"
;
print
"</table>
\n
<br>"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/admin.lang
+
2
−
0
View file @
2e9dc28e
...
...
@@ -524,6 +524,8 @@ ProposalsPDFModules=Commercial proposal documents models
ClassifiedInvoiced=Classified invoiced
ClassifiedInvoicedWithOrder=Classify invoiced proposal at the same time as the order
HideTreadedPropal=Hide the treated commercial proposals in the list
AddShippingDateAbility=Add shipping date ability
AddDeliveryAddressAbility=Add delivery date ability
##### Orders #####
OrdersSetup=Orders' management setup
OrdersNumberingModules=Orders numbering modules
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/fr_FR/admin.lang
+
2
−
0
View file @
2e9dc28e
...
...
@@ -526,6 +526,8 @@ ProposalsPDFModules=Mod
ClassifiedInvoiced=Classé facturée
ClassifiedInvoicedWithOrder=Classé facturée la propale en même temps que la commande
HideTreadedPropal=Cacher les propositions commerciales traitées de la liste
AddShippingDateAbility=Possibilité de déterminer une date de livraison
AddDeliveryAddressAbility=Possibilité de sélectionner une adresse de livraison
##### Orders #####
OrdersSetup=Configuration du module Commandes
OrdersNumberingModules=Modules de numérotation des commandes
...
...
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