Bugzilla – Attachment 28352 Details for
Bug 12274
Closed invoices not properly handled on invoice details page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12274: Invoice detail: billingdate is badly formated
Bug-12274-Invoice-detail-billingdate-is-badly-form.patch (text/plain), 1.34 KB, created by
Jonathan Druart
on 2014-05-20 11:43:07 UTC
(
hide
)
Description:
Bug 12274: Invoice detail: billingdate is badly formated
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-05-20 11:43:07 UTC
Size:
1.34 KB
patch
obsolete
>From b9a4acc37a6653d3304056630f61b262bcfb387e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 20 May 2014 13:39:26 +0200 >Subject: [PATCH] Bug 12274: Invoice detail: billingdate is badly formated > >Bug 10613 sent the billingdate as a string. The template waits a DateTime >object. > >To reproduce: >1/ Go on a invoice detail page >2/ Select a billing date >3/ Boom without the patch >[Tue May 20 13:39:18 2014] invoice.pl: Template process failed: undef >error - The 'day' parameter ("2014") to DateTime::new did not pass the >'an integer which is a possible valid day of month' callback. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > acqui/invoice.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/acqui/invoice.pl b/acqui/invoice.pl >index 84b7834..18e94d9 100755 >--- a/acqui/invoice.pl >+++ b/acqui/invoice.pl >@@ -150,7 +150,7 @@ $template->param( > suppliername => $details->{'suppliername'}, > booksellerid => $details->{'booksellerid'}, > datereceived => $details->{'datereceived'}, >- billingdate => C4::Dates->new($details->{'billingdate'}, "iso")->output(), >+ billingdate => $details->{'billingdate'}, > invoiceclosedate => $details->{'closedate'}, > shipmentcost => $details->{'shipmentcost'}, > orders_loop => \@orders_loop, >-- >2.0.0.rc2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12274
:
28303
|
28351
|
28352
|
28395
|
28396