Bugzilla – Attachment 7399 Details for
Bug 7457
basket.pl makes a lot of noise in the logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-7457-log-cleaning-on-basket.pl.patch (text/plain), 1.87 KB, created by
Adrien SAURAT
on 2012-01-31 14:29:46 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Adrien SAURAT
Created:
2012-01-31 14:29:46 UTC
Size:
1.87 KB
patch
obsolete
>From 5d62c88232abd80284b39491e69e0390475123c1 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Tue, 31 Jan 2012 15:17:07 +0100 >Subject: [PATCH] Bug 7457: log cleaning on basket.pl > >--- > acqui/basket.pl | 14 +++++++------- > 1 files changed, 7 insertions(+), 7 deletions(-) > >diff --git a/acqui/basket.pl b/acqui/basket.pl >index c528156..b559732 100755 >--- a/acqui/basket.pl >+++ b/acqui/basket.pl >@@ -229,12 +229,12 @@ if ( $op eq 'delete_confirm' ) { > my $gist = $bookseller->{gstrate} // C4::Context->preference("gist") // 0; > $gist = 0 if $gist == 0.0000; > my $discount = $bookseller->{'discount'} / 100; >- my $total_rrp; # RRP Total, its value will be assigned to $total_rrp_gsti or $total_rrp_gste depending of $bookseller->{'listincgst'} >- my $total_rrp_gsti; # RRP Total, GST included >- my $total_rrp_gste; # RRP Total, GST excluded >- my $gist_rrp; >- my $total_rrp_est; >- >+ my $total_rrp = 0; # RRP Total, its value will be assigned to $total_rrp_gsti or $total_rrp_gste depending of $bookseller->{'listincgst'} >+ my $total_rrp_gsti = 0; # RRP Total, GST included >+ my $total_rrp_gste = 0; # RRP Total, GST excluded >+ my $gist_rrp = 0; >+ my $total_rrp_est = 0; >+ > my $qty_total; > my @books_loop; > >@@ -281,7 +281,7 @@ if ( $op eq 'delete_confirm' ) { > $line{biblios} = $countbiblio - 1; > $line{left_subscription} = 1 if scalar @subscriptions >= 1; > $line{subscriptions} = scalar @subscriptions; >- $line{left_holds} = 1 if $holds >= 1; >+ ($holds >= 1) ? $line{left_holds} = 1 : $line{left_holds} = 0; > $line{left_holds_on_order} = 1 if $line{left_holds}==1 && ($line{items} == 0 || $itemholds ); > $line{holds} = $holds; > $line{holds_on_order} = $itemholds?$itemholds:$holds if $line{left_holds_on_order}; >-- >1.7.4.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 7457
:
7399
|
7493