function allocation($type, $trans_no, $person_id = null, $person_type_id=null)
{
$this->allocs = array();
function allocation($type, $trans_no, $person_id = null, $person_type_id=null)
{
$this->allocs = array();
$this->currency = isset($trans['bank_curr_code']) ? $trans['bank_curr_code'] : $trans['curr_code'];
$this->bank_amount = @$trans["bank_amount"];
$this->amount = $trans["Total"];
$this->currency = isset($trans['bank_curr_code']) ? $trans['bank_curr_code'] : $trans['curr_code'];
$this->bank_amount = @$trans["bank_amount"];
$this->amount = $trans["Total"];
}
/* Now populate the array of possible (and previous actual) allocations
for this customer/supplier. First get the transactions that have
}
/* Now populate the array of possible (and previous actual) allocations
for this customer/supplier. First get the transactions that have