fix to calculate item cost (the / was buggy : everywhere else there is the price...
authortipaul <tipaul>
Tue, 14 Sep 2004 12:32:13 +0000 (12:32 +0000)
committertipaul <tipaul>
Tue, 14 Sep 2004 12:32:13 +0000 (12:32 +0000)
acqui/finishreceive.pl
koha-tmpl/intranet-tmpl/default/en/acqui/acquire.tmpl
koha-tmpl/intranet-tmpl/default/en/acqui/recieve.tmpl

index 11cccb7..fe689ed 100755 (executable)
@@ -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.
index 462345c..ef41152 100644 (file)
@@ -88,7 +88,7 @@
                                <input type="hidden" name="freight" value="<!-- TMPL_VAR NAME="freight" -->">
                                <input type="hidden" name="gst" value="<!-- TMPL_VAR NAME="gst" -->">
                                <!-- TMPL_IF name="catview" -->
-                                       <input type="submit" class="button acquisition" value="save">
+                                       <input type="submit" class="button acquisition" value="save"> (that all costs are for 1 item)
                                <!-- TMPL_ELSE -->
                                        <a class="button acquisition" href="/cgi-bin/koha/acqui/newbiblio.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;booksellerid=<!-- TMPL_VAR NAME="supplierid" -->">
                                                Edit
index aebb222..30c327e 100644 (file)
                                <td><!-- TMPL_VAR NAME="isbn" --></td>
                                <td><a href="acquire.pl?recieve=<!-- TMPL_VAR NAME="ordernumber" -->&amp;biblio=<!-- TMPL_VAR NAME="biblionumber" -->&amp;invoice=<!-- TMPL_VAR NAME="invoice" -->&amp;gst=<!-- TMPL_VAR NAME="gst" -->&amp;freight=<!-- TMPL_VAR NAME="freight" -->&amp;supplierid=<!-- TMPL_VAR NAME="supplierid" -->"><!-- TMPL_VAR NAME="title" --></a></td>
                                <td><!-- TMPL_VAR NAME="author" --></td>
-                               <td>$<!-- TMPL_VAR NAME="unitprice" --></td>
+                               <td><!-- TMPL_VAR NAME="unitprice" --></td>
                                <td></td>
                                <td><!-- TMPL_VAR NAME="quantityrecieved" --></td>
-                               <td>$<!-- TMPL_VAR NAME="total" --></td>
+                               <td><!-- TMPL_VAR NAME="total" --></td>
                        </tr>
                <!-- /TMPL_LOOP -->
                <tr bgcolor="white">
                        <th class="acquisition"></th>
                        <th class="acquisition"></th>
                        <th class="acquisition">SUBTOTALS</th>
-                       <th class="acquisition">$<!-- TMPL_VAR NAME="totalprice" --></th>
+                       <th class="acquisition"><!-- TMPL_VAR NAME="totalprice" --></th>
                        <th class="acquisition"><!-- TMPL_VAR NAME="totalfreight" --></th>
                        <th class="acquisition"><!-- TMPL_VAR NAME="totalquantity" --></th>
-                       <th class="acquisition">$<!-- TMPL_VAR NAME="tototal" --></th>
+                       <th class="acquisition"><!-- TMPL_VAR NAME="tototal" --></th>
                </tr>
                <tr>
                        <td colspan="5" rowspan=2  bgcolor="#ffdf61">
                        When you have finished this invoice save the changes.
                        </td>
                        <td colspan="2" align="right"><b>GST</b></td>
-                       <td>$<!-- TMPL_VAR NAME="gst" --></td>
+                       <td><!-- TMPL_VAR NAME="gst" --></td>
                </tr>
                <tr bgcolor="white">
                        <td colspan="2" align="right" ><b>TOTAL</b></td>
-                       <td>$<!-- TMPL_VAR NAME="grandtot" --></td>
+                       <td><!-- TMPL_VAR NAME="grandtot" --></td>
                </tr>
        </table>
        </div>