X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fui%2Fallocation_cart.inc;h=45bc0e8239d8955b36b5f46e4c069461c9d1514e;hb=ddadb47f2620ce6902ad4694ce6512568862ba05;hp=e1f45ce1bdd20c6258e5b358694060dbe75c67f1;hpb=286e6233d6d7d63fbaafea42475ecbd5f4cf0dd0;p=fa-stable.git diff --git a/includes/ui/allocation_cart.inc b/includes/ui/allocation_cart.inc index e1f45ce1..45bc0e82 100644 --- a/includes/ui/allocation_cart.inc +++ b/includes/ui/allocation_cart.inc @@ -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();