X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=includes%2Fui%2Fallocation_cart.inc;h=2821fe5fe7874786443bb72f0a65ea0e50c669c7;hb=d859c6081f650d22eba97b13a298b681148d0d6d;hp=1be54f5ca61442256d3eedde74d47efbf7172178;hpb=87e4961d8cb13efab395b6a5548164d6a748bf3d;p=fa-stable.git diff --git a/includes/ui/allocation_cart.inc b/includes/ui/allocation_cart.inc index 1be54f5c..2821fe5f 100644 --- a/includes/ui/allocation_cart.inc +++ b/includes/ui/allocation_cart.inc @@ -33,7 +33,7 @@ class allocation function allocation($type, $trans_no, $person_id = null, $person_type_id=null) { $this->allocs = array(); - + $this->trans_no = $trans_no; $this->type = $type; if ($person_id) @@ -132,7 +132,8 @@ class allocation $this->currency = isset($trans['bank_curr_code']) ? $trans['bank_curr_code'] : $trans['curr_code']; $this->bank_amount = @$trans["bank_amount"]; $this->amount = $trans["Total"]; - } + } else + $this->date_ = Today(); } /* Now populate the array of possible (and previous actual) allocations for this customer/supplier. First get the transactions that have