Bugzilla – Attachment 45700 Details for
Bug 15376
Edit invoices: Can not change Shipping cost.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15376: Edit invoices: Can not change Shipping cost
Bug-15376-Edit-invoices-Can-not-change-Shipping-co.patch (text/plain), 1.60 KB, created by
Marc Véron
on 2015-12-15 14:19:23 UTC
(
hide
)
Description:
Bug 15376: Edit invoices: Can not change Shipping cost
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-12-15 14:19:23 UTC
Size:
1.60 KB
patch
obsolete
>From 38ef9e2947afb2afe9291140a4056d5d1d0c14d9 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 15 Dec 2015 15:14:47 +0100 >Subject: [PATCH] Bug 15376: Edit invoices: Can not change Shipping cost > >To reproduce: >- Go to Home > Acquisitions >- Edit an invoice that has no shipping date >- Change shipment cost. Leave shipping date empty >- Save >Result: Page reloads, shipment cost keeps old value. > Warnings in intranet-error.log > >To test: >- Apply patch >- Follow steps above >Result: Shipment costs are changed as expected > No warnings in intrante-error.log >--- > acqui/invoice.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/acqui/invoice.pl b/acqui/invoice.pl >index f56afcc..05b3689 100755 >--- a/acqui/invoice.pl >+++ b/acqui/invoice.pl >@@ -81,8 +81,8 @@ elsif ( $op && $op eq 'mod' ) { > my $shipment_budget_id = $input->param('shipment_budget_id'); > ModInvoice( > invoiceid => $invoiceid, >- shipmentdate => output_pref( { str => $input->param('shipmentdate'), dateformat => 'iso', dateonly => 1 } ), >- billingdate => output_pref( { str => $input->param('billingdate'), dateformat => 'iso', dateonly => 1 } ), >+ shipmentdate => output_pref( { str => $input->param('shipmentdate'), dateformat => 'iso', dateonly => 1 } ) || '', >+ billingdate => output_pref( { str => $input->param('billingdate'), dateformat => 'iso', dateonly => 1 } ) || '', > shipmentcost => $shipmentcost, > shipmentcost_budgetid => $shipment_budget_id > ); >-- >1.7.10.4
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 15376
:
45700
|
45701
|
45709
|
45718