Bugzilla – Attachment 57347 Details for
Bug 17563
Acquisition/CancelReceipt.t is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17563: (followup) Silence undef warnings
Bug-17563-followup-Silence-undef-warnings.patch (text/plain), 1.15 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-11-08 19:13:11 UTC
(
hide
)
Description:
Bug 17563: (followup) Silence undef warnings
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-11-08 19:13:11 UTC
Size:
1.15 KB
patch
obsolete
>From f7e377c8694b4e9d616fdb0d6a1814ba6a8ae331 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 8 Nov 2016 16:11:49 -0300 >Subject: [PATCH] Bug 17563: (followup) Silence undef warnings > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Acquisition.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 3b255b4..6ad5ff7 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1419,6 +1419,10 @@ sub ModReceiveOrder { > $order->{budget_id} = ( $budget_id || $order->{budget_id} ); > $order->{quantity} = $quantrec; > $order->{quantityreceived} = $quantrec; >+ $order->{ecost_tax_excluded} //= 0; >+ $order->{tax_rate_on_ordering} //= 0; >+ $order->{unitprice_tax_excluded} //= 0; >+ $order->{tax_rate_on_receiving} //= 0; > $order->{tax_value_on_ordering} = $order->{quantity} * $order->{ecost_tax_excluded} * $order->{tax_rate_on_ordering}; > $order->{tax_value_on_receiving} = $order->{quantity} * $order->{unitprice_tax_excluded} * $order->{tax_rate_on_receiving}; > $order->{datereceived} = $datereceived; >-- >2.7.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 17563
:
57250
|
57254
|
57346
| 57347