next message in archive
no next message in thread
previous message in archive
Index of Subjects
This is from a while ago:
>=20
> On Fri, 9 May 1997, Daniel Dupuis wrote:
>=20
> >=20
> > URL : http://landon.chebucto.ns.ca/cgi-officebin/reverse-money
> >=20
> > It asks you to type in the user name, but there is no place to put =
it.
>=20
> You actually get a "SELECT" list of logins that have had money =
recorded.
> You just get to pick one. It looks like there was nothing in the
> "money" file. It's still a "bug" - a display bug, that is - =
nonetheless.
>=20
> It should tell you there is no money transactions to reverse.
>=20
> >=20
> > Example :
> >=20
> > =20
> > Select Login ID to reverse: =20
> > ] =20
> > =20
> > Reason for reversal: ________________________________________
> > =
_________________________________________________________________ =
=
=20
> > =20
> > Reverse the Money Log Record or =20
> > Restart =
=
=20
> > =
_________________________________________________________________
> > =20
> > [1]CSuite Administration =20
>=20
> Gerard MacNeil, P. Eng.
However, I believe I have recorded 2 cheques and 1 cash donation, yet I =
still
do not get a select list. I have waited an hour, (so that any cron jobs =
that
may have some affect on this will have run).
Here's what I think has been entered in the database:
aa001 - $10.00 cheque
aa002 - $15.00 cash
aa003 - $20.00 cheque
I've looked at the code for what get's placed in this select list, and I =
can't=20
make out a thing: :D*=0D
<SELECT NAME=3D"datestamp">
=20
"
[ ! -f $CS_PRIVATE/log/bank/audit ] && touch =
$CS_PRIVATE/log/bank/audit
[ ! -f $CS_PRIVATE/log/bank/money ] && touch =
$CS_PRIVATE/log/bank/money
=20
gawk -F'|' -v notfound=3D$"Cannot find original for reversed =
entry" '
NF > 3 && $1 !=3D "cash" { n[$2 " " $3 " " $4] =3D $5 }
NF > 3 && $1 =3D=3D "x" {
if (($2 " " $3 " " $4) in n)
delete n[$2 " " $3 " " $4]
else
print notfound, $2, $3, $4 "<p>"
}
# do not present already audited items
NF =3D=3D 3 && ($1 " " $2 " " $3) in n { delete n[$1 " " $2 " " =
$3] }
END {
for (i in n)
print "<OPTION VALUE=3D" n[i] ">" i
}
' $CS_PRIVATE/log/bank/money $CS_PRIVATE/log/bank/audit | sort =
-t">" +1
=20
echo $"</SELECT><p>
=20
Anyone have any suggestions?
--
James Fifield
<fifield@ug.cs.dal.ca> =20
next message in archive
no next message in thread
previous message in archive
Index of Subjects