Bugzilla – Attachment 5330 Details for
Bug 4831
Actual Price being ignored after receive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-bug_4831-Use-unitprice-actual-cost-when-totalling-sp.patch (text/plain), 884 bytes, created by
Srdjan Jankovic
on 2011-09-07 04:06:23 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2011-09-07 04:06:23 UTC
Size:
884 bytes
patch
obsolete
>From 925f689b7a03b29fbc398034079ffee48ec632de Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Wed, 7 Sep 2011 16:02:21 +1200 >Subject: [PATCH] bug_4831: Use unitprice (actual cost) when totalling spent amounts for > "All available funds", as in "Already received" > >--- > C4/Budgets.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Budgets.pm b/C4/Budgets.pm >index 888b4fd..7c867e0 100644 >--- a/C4/Budgets.pm >+++ b/C4/Budgets.pm >@@ -304,7 +304,7 @@ sub GetBudgetSpent { > my ($budget_id) = @_; > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare(qq| >- SELECT SUM(ecost * quantity) AS sum FROM aqorders >+ SELECT SUM( COALESCE(unitprice, ecost) * quantity ) AS sum FROM aqorders > WHERE budget_id = ? AND > quantityreceived > 0 AND > datecancellationprinted IS NULL >-- >1.6.5 >
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 4831
:
2180
|
2181
|
5330
|
5453