X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fallocation_cart.inc;h=b45110b35ade07d366eb4a8622f81e7d9b93ee0f;hb=2aea99756a8c19766f0f9dfee56b27f7c1994f37;hp=4519db73e5af4f57231f119345d94f7d2d4f6b98;hpb=95ff74b5722826544743a01daf527aa3c9efe11a;p=fa-stable.git diff --git a/includes/ui/allocation_cart.inc b/includes/ui/allocation_cart.inc index 4519db73..b45110b3 100644 --- a/includes/ui/allocation_cart.inc +++ b/includes/ui/allocation_cart.inc @@ -30,7 +30,7 @@ class allocation var $allocs; /*array of transactions allocated to */ - function allocation($type, $trans_no, $person_id = null, $person_type_id=null) + function __construct($type, $trans_no, $person_id = null, $person_type_id=null) { $this->allocs = array(); @@ -254,7 +254,7 @@ class allocation_item var $current_allocated; - function allocation_item ($type, $type_no, $date_, $due_date, $amount, + function __construct($type, $type_no, $date_, $due_date, $amount, $amount_allocated, $current_allocated, $ref) { @@ -298,7 +298,7 @@ function show_allocatable($show_totals) { { alt_table_row_color($k); label_cell($systypes_array[$alloc_item->type]); - label_cell(get_trans_view_str($alloc_item->type, $alloc_item->type_no)); + label_cell(get_trans_view_str($alloc_item->type, $alloc_item->type_no), "nowrap align='right'"); label_cell($alloc_item->ref); label_cell($alloc_item->date_, "align=right"); label_cell($alloc_item->due_date, "align=right");