Changed all numeric constants to the new defined constants. A huge task.
[fa-stable.git] / includes / ui / allocation_cart.inc
index e1f45ce1bdd20c6258e5b358694060dbe75c67f1..45bc0e8239d8955b36b5f46e4c069461c9d1514e 100644 (file)
@@ -92,7 +92,7 @@ class allocation
                        $trans_no = $this->trans_no;
                }
                
-               $sup = $type == 21 || $type == 22;
+               $sup = $type == ST_SUPPCREDIT || $type == ST_SUPPAYMENT;
                $this->allocs = array();
 
                if ($trans_no) {
@@ -155,7 +155,7 @@ class allocation
        //
        function write()
        {
-               $sup = $this->type == 21 || $this->type == 22;
+               $sup = $this->type == ST_SUPPCREDIT || $this->type == ST_SUPPAYMENT;
 
                begin_transaction();