View | Details | Raw Unified | Return to bug 23363
Collapse All | Expand All

(-)a/acqui/spent.pl (-2 / +3 lines)
Lines 119-125 while ( my $data = $sth->fetchrow_hashref ) { Link Here
119
119
120
my $total = $subtotal;
120
my $total = $subtotal;
121
$query = qq{
121
$query = qq{
122
    SELECT invoicenumber, shipmentcost
122
    SELECT invoiceid, invoicenumber, shipmentcost
123
    FROM aqinvoices
123
    FROM aqinvoices
124
    WHERE shipmentcost_budgetid = ?
124
    WHERE shipmentcost_budgetid = ?
125
};
125
};
Lines 129-135 my @shipmentcosts; Link Here
129
while (my $data = $sth->fetchrow_hashref) {
129
while (my $data = $sth->fetchrow_hashref) {
130
    push @shipmentcosts, {
130
    push @shipmentcosts, {
131
        shipmentcost => sprintf("%.2f", $data->{shipmentcost}),
131
        shipmentcost => sprintf("%.2f", $data->{shipmentcost}),
132
        invoicenumber => $data->{invoicenumber}
132
        invoiceid => $data->{invoiceid},
133
	invoicenumber => $data->{invoicenumber}
133
    };
134
    };
134
    $total += $data->{shipmentcost};
135
    $total += $data->{shipmentcost};
135
}
136
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt (-2 / +1 lines)
Lines 88-94 Link Here
88
                <tr>
88
                <tr>
89
                    <td></td>
89
                    <td></td>
90
                    <td colspan="8">Shipping cost for invoice
90
                    <td colspan="8">Shipping cost for invoice
91
                        <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcode.invoiceid | uri %]">
91
                        <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcost.invoiceid | uri %]">
92
                             [% shipmentcost.invoicenumber | html %]
92
                             [% shipmentcost.invoicenumber | html %]
93
                        </a>
93
                        </a>
94
                    </td>
94
                    </td>
95
- 

Return to bug 23363