From rangi@users.sourceforge.net Tue Feb 26 01:06:23 2002 From: Chris Cormack To: koha-devel@lists.koha-community.org Subject: [Koha-devel] CVS: koha/acqui basket.pl,1.1.1.1,1.2 Date: Tue, 26 Feb 2002 01:07:02 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5440674749585720724==" --===============5440674749585720724== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update of /cvsroot/koha/koha/acqui In directory usw-pr-cvs1:/tmp/cvs-serv25553/acqui Modified Files: basket.pl=20 Log Message: Fix for displaying prices Index: basket.pl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/koha/koha/acqui/basket.pl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** basket.pl 19 Dec 2000 23:45:56 -0000 1.1.1.1 --- basket.pl 26 Feb 2002 09:06:19 -0000 1.2 *************** *** 15,21 **** print startpage; =20 ! print startmenu('acquisitions'); =20 ! #print $count; my ($count2,@booksellers)=3Dbookseller($results[0]->{'booksellerid'}); =20 --- 15,26 ---- print startpage; =20 ! my @inp=3Dstartmenu('acquisitions'); =20 ! my $count3=3D@inp; ! for (my $i=3D0;$i<$count3;$i++){ ! $inp[$i]=3D~ s/leftmargin=3D0 topmargin=3D0\>/leftmargin=3D0 topmargi= n=3D0 onload=3D'update(orderform)'\>/; ! } ! print @inp; ! # print $count; my ($count2,@booksellers)=3Dbookseller($results[0]->{'booksellerid'}); =20 *************** *** 25,39 **** Authorised By: $results[0]->{'authorisedby'}
$results[0]->{'entrydate'}; -=20 ! Shopping Basket For: {'booksellerid'}> $booksellers[0]->{'name'} !=20 ! {'booksellerid'}&basket=3D$basket>= Add more orders=20 !=20 !=20
-=20
! Search ISBN, Title or Author:

--- 30,39 ---- Authorised By: $results[0]->{'authorisedby'}
$results[0]->{'entrydate'}; ! Shopping Basket For: {'booksellerid'}> $booksellers[0]->{'name'} =20 ! {'booksellerid'}&basket=3D$basket>= Add more orders

! Search ISBN, Title or Author:

*************** *** 41,124 **** ! ! ! ! ! printend ; for (my $i=3D0;$i<$count;$i++){ my $rrp=3D$results[$i]->{'listprice'}; if ($results[$i]->{'currency'} ne 'NZD'){ ! $rrp=3Dcurconvert($results[$i]->{'currency'},$rrp); } - print < ! ! ! ! ! ! ! ! ! {'ordernumber'}> ! {'biblionumber'}> -=20 EOP ; } ! # onchange=3D'update(this.form)'> print ""; print < !=20 ! =20 ! ! ! ! ! ! !=20 ! !=20 ! !=20 !=20 ! ! !=20 ! !=20 ! ! ! ! ! ! ! !=20 ! !=20 !=20 !=20 !=20
ORDERISBNTITLEAUTHORRRP\$ESTQUANTITYTOTAL
$results[$i]->{'ordernumber'}$results[$i]->{'isbn'}{'ordernumber'}&id=3D$re= sults[$i]->{'booksellerid'}&basket=3D$basket">$results[$i]->{'title'}$results[$i]->{'author'}\${'rrp= '}">\${'eco= st'}">{'q= uantity'}>\$
! HELP
! To cancel an order, just change the quantity to 0 and click "save changes".=
! To change any of the catalogue or accounting information attached to an ord= er, click on the title.
! To add new orders to this supplier, start with a search.
SubTotal\$
GST\$
TOTAL\$
!

!=20 !=20 !=20 EOP ! ; =20 print endmenu('acquisitions'); --- 41,116 ---- ! ! ! ! ! ! ! ! printend ; +=20 +=20 + my $line_total; # total of each line + my $sub_total; # total of line totals + my $gist; # GST + my $grand_total; # $subttotal + $gist +=20 for (my $i=3D0;$i<$count;$i++){ my $rrp=3D$results[$i]->{'listprice'}; if ($results[$i]->{'currency'} ne 'NZD'){ ! $rrp=3Dcurconvert($results[$i]->{'currency'},$rrp); } =20 + $line_total=3D$results[$i]->{'quantity'}*$results[$i]->{'ecost'}; + $sub_total+=3D$line_total; + $gist=3Dsprintf("%.2f",$sub_total*0.125); + $grand_total=3D$sub_total+$gist; =20 + print < ! ! ! ! ! ! ! EOP ; } ! #=20 print ""; print <=20 + + ! ! ! ! ! ! ! ! ! ! !
ORDERISBNTITLEAUTHORRRP\$ESTQUANTITYTOTAL
$results[$i]->{'ordernumber'}$results[$i]->{'isbn'}{'ordernumber'}&id=3D$= results[$i]->{'booksellerid'}&basket=3D$basket">$results[$i]->{'title'} ! $results[$i]->{'author'}\${'r= rp'}">\${'e= cost'}">{= 'quantity'} onchange=3D'update(this.form)'>\$ ! {'ordernumber'= }> ! {'biblionumber= '}>=20
+ HELP
+ To cancel an order, just change the quantity to 0 and click "save changes= ".
+ To change any of the catalogue or accounting information attached to an o= rder, click on the title.
+ To add new orders to this supplier, start with a search.
SubTotal\$
GST\$
TOTAL\$
!
=20 EOP ! ; =20 print endmenu('acquisitions'); --===============5440674749585720724==--