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
d32f52cc
Commit
d32f52cc
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix date of delivery, and avoid duplicate tracking number.
parent
ce8ad39a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/modules/expedition/doc/pdf_merou.modules.php
+12
-4
12 additions, 4 deletions
htdocs/core/modules/expedition/doc/pdf_merou.modules.php
htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
+11
-4
11 additions, 4 deletions
htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
with
23 additions
and
8 deletions
htdocs/core/modules/expedition/doc/pdf_merou.modules.php
+
12
−
4
View file @
d32f52cc
...
@@ -560,7 +560,7 @@ class pdf_merou extends ModelePdfExpedition
...
@@ -560,7 +560,7 @@ class pdf_merou extends ModelePdfExpedition
$pdf
->
SetXY
(
$blSocX
-
80
,
$blSocY
+
17
);
$pdf
->
SetXY
(
$blSocX
-
80
,
$blSocY
+
17
);
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
$pdf
->
SetTextColor
(
0
,
0
,
0
);
$pdf
->
SetTextColor
(
0
,
0
,
0
);
$pdf
->
MultiCell
(
50
,
8
,
$outputlangs
->
transnoentities
(
"Date"
)
.
" : "
.
dol_print_date
(
$object
->
date_delivery
,
'day'
,
false
,
$outputlangs
,
true
),
''
,
'L'
);
$pdf
->
MultiCell
(
50
,
8
,
$outputlangs
->
transnoentities
(
"Date
Delivery
"
)
.
" : "
.
dol_print_date
(
$object
->
date_delivery
,
'day'
,
false
,
$outputlangs
,
true
),
''
,
'L'
);
$pdf
->
SetXY
(
$blSocX
-
80
,
$blSocY
+
20
);
$pdf
->
SetXY
(
$blSocX
-
80
,
$blSocY
+
20
);
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
...
@@ -568,7 +568,7 @@ class pdf_merou extends ModelePdfExpedition
...
@@ -568,7 +568,7 @@ class pdf_merou extends ModelePdfExpedition
$pdf
->
MultiCell
(
50
,
8
,
$outputlangs
->
transnoentities
(
"TrackingNumber"
)
.
" : "
.
$object
->
tracking_number
,
''
,
'L'
);
$pdf
->
MultiCell
(
50
,
8
,
$outputlangs
->
transnoentities
(
"TrackingNumber"
)
.
" : "
.
$object
->
tracking_number
,
''
,
'L'
);
// Deliverer
// Deliverer
$pdf
->
SetXY
(
$blSocX
-
80
,
$blSocY
+
2
4
);
$pdf
->
SetXY
(
$blSocX
-
80
,
$blSocY
+
2
3
);
$pdf
->
SetFont
(
''
,
''
,
$default_font_size
-
2
);
$pdf
->
SetFont
(
''
,
''
,
$default_font_size
-
2
);
$pdf
->
SetTextColor
(
0
,
0
,
0
);
$pdf
->
SetTextColor
(
0
,
0
,
0
);
...
@@ -581,8 +581,16 @@ class pdf_merou extends ModelePdfExpedition
...
@@ -581,8 +581,16 @@ class pdf_merou extends ModelePdfExpedition
{
{
// Get code using getLabelFromKey
// Get code using getLabelFromKey
$code
=
$outputlangs
->
getLabelFromKey
(
$this
->
db
,
$object
->
shipping_method_id
,
'c_shipment_mode'
,
'rowid'
,
'code'
);
$code
=
$outputlangs
->
getLabelFromKey
(
$this
->
db
,
$object
->
shipping_method_id
,
'c_shipment_mode'
,
'rowid'
,
'code'
);
$label
=
$outputlangs
->
trans
(
"SendingMethod"
.
strtoupper
(
$code
))
.
" :"
;
$label
=
''
;
$pdf
->
writeHTMLCell
(
50
,
8
,
''
,
''
,
$label
.
" "
.
$object
->
tracking_url
,
''
,
'L'
);
$label
.
=
$outputlangs
->
trans
(
"SendingMethod"
)
.
": "
.
$outputlangs
->
trans
(
"SendingMethod"
.
strtoupper
(
$code
));
//var_dump($object->tracking_url != $object->tracking_number);exit;
if
(
$object
->
tracking_url
!=
$object
->
tracking_number
)
{
$label
.
=
" : "
;
$label
.
=
$object
->
tracking_url
;
}
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
$pdf
->
writeHTMLCell
(
50
,
8
,
''
,
''
,
$label
,
''
,
'L'
);
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
+
11
−
4
View file @
d32f52cc
...
@@ -212,10 +212,17 @@ class pdf_rouget extends ModelePdfExpedition
...
@@ -212,10 +212,17 @@ class pdf_rouget extends ModelePdfExpedition
{
{
// Get code using getLabelFromKey
// Get code using getLabelFromKey
$code
=
$outputlangs
->
getLabelFromKey
(
$this
->
db
,
$object
->
shipping_method_id
,
'c_shipment_mode'
,
'rowid'
,
'code'
);
$code
=
$outputlangs
->
getLabelFromKey
(
$this
->
db
,
$object
->
shipping_method_id
,
'c_shipment_mode'
,
'rowid'
,
'code'
);
$label
=
$outputlangs
->
trans
(
"LinkToTrackYourPackage"
)
.
"<br>"
;
$label
=
''
;
$label
.
=
$outputlangs
->
trans
(
"SendingMethod"
.
strtoupper
(
$code
))
.
" :"
;
if
(
$object
->
tracking_url
!=
$object
->
tracking_number
)
$label
.
=
$outputlangs
->
trans
(
"LinkToTrackYourPackage"
)
.
"<br>"
;
$label
.
=
$outputlangs
->
trans
(
"SendingMethod"
)
.
": "
.
$outputlangs
->
trans
(
"SendingMethod"
.
strtoupper
(
$code
));
//var_dump($object->tracking_url != $object->tracking_number);exit;
if
(
$object
->
tracking_url
!=
$object
->
tracking_number
)
{
$label
.
=
" : "
;
$label
.
=
$object
->
tracking_url
;
}
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
-
2
);
$pdf
->
writeHTMLCell
(
60
,
4
,
$this
->
posxdesc
-
1
,
$tab_top
+
6
,
$label
.
" "
.
$object
->
tracking_url
,
0
,
1
,
false
,
true
,
'L'
);
$pdf
->
writeHTMLCell
(
60
,
4
,
$this
->
posxdesc
-
1
,
$tab_top
_alt
,
$label
,
0
,
1
,
false
,
true
,
'L'
);
$tab_top_alt
=
$pdf
->
GetY
();
$tab_top_alt
=
$pdf
->
GetY
();
}
}
...
@@ -537,7 +544,7 @@ class pdf_rouget extends ModelePdfExpedition
...
@@ -537,7 +544,7 @@ class pdf_rouget extends ModelePdfExpedition
$posy
+=
4
;
$posy
+=
4
;
$pdf
->
SetXY
(
$posx
,
$posy
);
$pdf
->
SetXY
(
$posx
,
$posy
);
$pdf
->
SetTextColor
(
0
,
0
,
60
);
$pdf
->
SetTextColor
(
0
,
0
,
60
);
$pdf
->
MultiCell
(
100
,
4
,
$outputlangs
->
transnoentities
(
"Date"
)
.
" : "
.
dol_print_date
(
$object
->
date_
creati
on
,
"daytext"
,
false
,
$outputlangs
,
true
),
''
,
'R'
);
$pdf
->
MultiCell
(
100
,
4
,
$outputlangs
->
transnoentities
(
"Date
DeliveryPlanned
"
)
.
" : "
.
dol_print_date
(
$object
->
date_
livrais
on
,
"daytext"
,
false
,
$outputlangs
,
true
),
''
,
'R'
);
if
(
!
empty
(
$object
->
client
->
code_client
))
if
(
!
empty
(
$object
->
client
->
code_client
))
{
{
...
...
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