Bugzilla – Attachment 88968 Details for
Bug 22791
Calculation differs on aqui-home/spent and ordered.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22791: Unify calculation between aqui-home and ordered.pl
Bug-22791-Unify-calculation-between-aqui-home-and-.patch (text/plain), 1.09 KB, created by
Nick Clemens
on 2019-04-26 19:59:55 UTC
(
hide
)
Description:
Bug 22791: Unify calculation between aqui-home and ordered.pl
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2019-04-26 19:59:55 UTC
Size:
1.09 KB
patch
obsolete
>From 2ef0b5da2cca5d8d03d3334d2a4a990bccf3cfc8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 26 Apr 2019 19:58:05 +0000 >Subject: [PATCH] Bug 22791: Unify calculation between aqui-home and ordered.pl > >To test: >1 - Enable order price rounding >2 - Order an example with 8 * 16,99 and 42% discount, 19.45% tax. >3 - Check ordered page - 94.17 is total >4 - Check aqui-home - 94.16 is total >5 - Apply patch >6 - Verify numbers now match >--- > acqui/ordered.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/acqui/ordered.pl b/acqui/ordered.pl >index ebf89e86d0..f6796f2e3f 100755 >--- a/acqui/ordered.pl >+++ b/acqui/ordered.pl >@@ -99,7 +99,7 @@ while ( my $data = $sth->fetchrow_hashref ) { > $left = $data->{'quantity'}; > } > if ( $left && $left > 0 ) { >- my $subtotal = get_rounded_price( $left * $data->{'ecost_tax_included'} ); >+ my $subtotal = $left * get_rounded_price( $data->{'ecost_tax_included'} ); > $data->{subtotal} = sprintf( "%.2f", $subtotal ); > $data->{'left'} = $left; > push @ordered, $data; >-- >2.11.0
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 22791
:
88968
|
89327
|
89422