bugfix in order modification
authortipaul <tipaul>
Tue, 14 Sep 2004 12:09:51 +0000 (12:09 +0000)
committertipaul <tipaul>
Tue, 14 Sep 2004 12:09:51 +0000 (12:09 +0000)
acqui/addorder.pl
acqui/newbiblio.pl
koha-tmpl/intranet-tmpl/default/en/acqui/newbiblio.tmpl

index 58c6963..2332ab7 100755 (executable)
@@ -121,7 +121,7 @@ if ($quantity ne '0'){
 #                      );
        }
        if ($ordnum) {
-               modorder($title,$ordnum,$quantity,$listprice,$bibnum,$basketno,$booksellerid,$loggedinuser,$notes,$bookfund,$bibitemnum,$rrp,$ecost,$gst,$budget,$cost,$sub,$invoice,$sort1,$sort2);
+               modorder($title,$ordnum,$quantity,$listprice,$bibnum,$basketno,$booksellerid,$loggedinuser,$notes,$bookfund,$bibitemnum,$rrp,$ecost,$gst,$budget,$cost,$invoice,$sort1,$sort2);
        }else {
                $basketno=neworder($basketno,$bibnum,$title,$quantity,$listprice,$booksellerid,$loggedinuser,$notes,$bookfund,$bibitemnum,$rrp,$ecost,$gst,$budget,$cost,$sub,$invoice,$sort1,$sort2);
        }
index c836b9e..00283a1 100755 (executable)
@@ -169,6 +169,7 @@ $template->param( existing => $biblio,
                                                quantity => $data->{'quantity'},
                                                listprice => $data->{'listprice'},
                                                rrp => $data->{'rrp'},
+                                               invoice => $data->{'booksellerinvoicenumber'},
                                                ecost => $data->{'ecost'},
                                                notes => $data->{'notes'},
                                                sort1 => $data->{'sort1'},
index 3f1c02a..8e56c81 100644 (file)
@@ -144,11 +144,11 @@ win.document.write("</font></body></html>");
                </p>
                <p>
                        <label class="label100">Actual Cost</label>
-                       <input type="text" size="20" name="cost">
+                       <input type="text" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->">
                </p>
                <p>
                        <label class="label100">Invoice Number *</label>
-                       <input type="text" size="20" name="invoice" >
+                       <input type="text" size="20" name="invoice"  value="<!-- TMPL_VAR name="invoice" -->">
                <p>
                        <label class="label100">Notes</label>
                        <input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->">