Bugzilla – Attachment 154085 Details for
Bug 34445
Default budget is not selected in addorderiso2709.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34445: Set default budget in addorderiso2709.pl
Bug-34445-Set-default-budget-in-addorderiso2709pl.patch (text/plain), 1.30 KB, created by
Matt Blenkinsop
on 2023-07-31 09:51:58 UTC
(
hide
)
Description:
Bug 34445: Set default budget in addorderiso2709.pl
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-07-31 09:51:58 UTC
Size:
1.30 KB
patch
obsolete
>From 615ac374321a8e0c972cc7aaa8dba2571e04926f Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Mon, 31 Jul 2023 09:48:18 +0000 >Subject: [PATCH] Bug 34445: Set default budget in addorderiso2709.pl > >This patch allows the default budget to be used as a fallback if no budget is selected. Currently the default budget is set using lines 129-133 but then is never used. > >Test plan: >1) Apply patch >2) restart_all >3) Follow the steps from the bug description >4) Order lines should be added properly >--- > acqui/addorderiso2709.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index fb31a8bcee..cba4c8cd56 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -257,6 +257,7 @@ if ($op eq ""){ > # Group orderlines from MarcItemFieldsToOrder > my $budget_hash; > for (my $i = 0; $i < $count; $i++) { >+ $budget_codes[$i] = $budget_id if !$budget_codes[$i]; # Use default budget if no budget selected in the UI > $budget_hash->{$budget_codes[$i]}->{quantity} += 1; > $budget_hash->{$budget_codes[$i]}->{price} = $itemprices[$i]; > $budget_hash->{$budget_codes[$i]}->{replacementprice} = $replacementprices[$i]; >-- >2.37.1 (Apple Git-137.1)
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 34445
:
154084
|
154085
|
154413
|
154791
|
154795
|
154874