SQLite database works, time for more thorough stress testing
[tpg/opendispense2.git] / src / server / dispense.c
index d55c18d..81d49dc 100644 (file)
@@ -165,7 +165,7 @@ int _GetMinBalance(int Account)
 
 int _Transfer(int Source, int Destination, int Ammount, const char *Reason)
 {
-       if( Ammount < 0 )
+       if( Ammount > 0 )
        {
                if( Bank_GetBalance(Source) + Ammount < _GetMinBalance(Source) )
                        return 1;

UCC git Repository :: git.ucc.asn.au