SELECT
aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber,
quantity-quantityreceived AS tleft,
- ecost, budgetdate, entrydate,
+ ecost_tax_included, budgetdate, entrydate,
aqbasket.booksellerid,
aqbooksellers.name as vendorname,
itype,
$left = $data->{'quantity'};
}
if ( $left && $left > 0 ) {
- my $subtotal = $left * $data->{'ecost'};
+ my $subtotal = $left * $data->{'ecost_tax_included'};
$data->{subtotal} = sprintf( "%.2f", $subtotal );
$data->{'left'} = $left;
push @ordered, $data;
SELECT
aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber,
quantity-quantityreceived AS tleft,
- ecost, budgetdate, entrydate,
+ budgetdate, entrydate,
aqbasket.booksellerid,
itype,
title,
aqorders.invoiceid,
aqinvoices.invoicenumber,
quantityreceived,
- unitprice,
+ unitprice_tax_included,
datereceived,
aqbooksellers.name as vendorname
FROM (aqorders, aqbasket)
while ( my $data = $sth->fetchrow_hashref ) {
my $recv = $data->{'quantityreceived'};
if ( $recv > 0 ) {
- my $rowtotal = $recv * $data->{'unitprice'};
+ my $rowtotal = $recv * $data->{'unitprice_tax_included'};
$data->{'rowtotal'} = sprintf( "%.2f", $rowtotal );
- $data->{'unitprice'} = sprintf( "%.2f", $data->{'unitprice'} );
+ $data->{'unitprice_tax_included'} = sprintf( "%.2f", $data->{'unitprice_tax_included'} );
$subtotal += $rowtotal;
push @spent, $data;
}
[% USE Asset %]
[% USE KohaDates %]
[% USE ItemTypes %]
+[% USE Price %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Acquisitions › Ordered</title>
[% order.left | html %]
</td>
<td class="data cell">
- [% order.ecost | html %]
+ [% order.ecost_tax_included | $Price %]
</td>
<td class="cell">
<span title="[% order.entrydate | html %]">[% order.entrydate | $KohaDates %]</span>
[% USE Asset %]
[% USE KohaDates %]
[% USE ItemTypes %]
+[% USE Price %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Acquisitions › Spent</title>
[% order.quantityreceived | html %]
</td>
<td class="cell">
- [% order.unitprice | html %]
+ [% order.unitprice_tax_included | $Price %]
</td>
<td class="cell">
<span title="[% order.entrydate | html %]">[% order.entrydate | $KohaDates %]</span>