From 92b914b3943e4da2c4afcd0cb757d11a6af5f908 Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 14 Sep 2004 12:32:13 +0000 Subject: [PATCH] fix to calculate item cost (the / was buggy : everywhere else there is the price is the unit price) --- acqui/finishreceive.pl | 6 +++--- .../intranet-tmpl/default/en/acqui/acquire.tmpl | 2 +- .../intranet-tmpl/default/en/acqui/recieve.tmpl | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl index 11cccb7f88..fe689eda60 100755 --- a/acqui/finishreceive.pl +++ b/acqui/finishreceive.pl @@ -44,9 +44,9 @@ my $freight=$input->param('freight'); my $supplierid = $input->param('supplierid'); my $branch=$input->param('branch'); -if ($quantrec != 0){ - $cost /= $quantrec; -} +# if ($quantrec != 0){ +# $cost /= $quantrec; +# } if ($quantity != 0) { # save the quantity recieved. diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui/acquire.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui/acquire.tmpl index 462345ce6e..ef41152d66 100644 --- a/koha-tmpl/intranet-tmpl/default/en/acqui/acquire.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/acqui/acquire.tmpl @@ -88,7 +88,7 @@ "> "> - + (that all costs are for 1 item) &booksellerid="> Edit diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui/recieve.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui/recieve.tmpl index aebb222e19..30c327ea2c 100644 --- a/koha-tmpl/intranet-tmpl/default/en/acqui/recieve.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/acqui/recieve.tmpl @@ -45,10 +45,10 @@ &biblio=&invoice=&gst=&freight=&supplierid="> - $ + - $ + @@ -56,10 +56,10 @@ SUBTOTALS - $ + - $ + @@ -69,11 +69,11 @@ When you have finished this invoice save the changes. GST - $ + TOTAL - $ + -- 2.39.5