$customer_id = $_POST['customer_id'];
$trans_items = get_allocatable_from_cust_transactions($customer_id, $settled);
$customer_id = $_POST['customer_id'];
$trans_items = get_allocatable_from_cust_transactions($customer_id, $settled);
start_table($table_style);
if (!isset($_POST['customer_id']))
$th = array(_("Transaction Type"), _("#"), _("Reference"), _("Date"), _("Customer"),
_("Currency"), _("Total"), _("Left To Allocate"), "");
start_table($table_style);
if (!isset($_POST['customer_id']))
$th = array(_("Transaction Type"), _("#"), _("Reference"), _("Date"), _("Customer"),
_("Currency"), _("Total"), _("Left To Allocate"), "");
$th = array(_("Transaction Type"), _("#"), _("Reference"), _("Date"),
_("Total"), _("Left To Allocate"), "");
table_header($th);
$th = array(_("Transaction Type"), _("#"), _("Reference"), _("Date"),
_("Total"), _("Left To Allocate"), "");
table_header($th);
- amount_cell(-$myrow["Total"]);
- amount_cell(-$myrow["Total"] - $myrow["alloc"]);
- if (-$myrow["Total"] - $myrow["alloc"] != 0.0)
- label_cell("<a href='$path_to_root/sales/allocations/customer_allocate.php?trans_no=" . $myrow["trans_no"] . "&trans_type=" . $myrow["type"] . "'>" . _("Allocate") . "</a>");
+ amount_cell($myrow["Total"]);
+ amount_cell($myrow["Total"] - $myrow["alloc"]);
+ if ($myrow["Total"] - $myrow["alloc"] != 0.0)
+ label_cell("<a href='$path_to_root/sales/allocations/customer_allocate.php?trans_no="
+ .$myrow["trans_no"] . "&trans_type=" . $myrow["type"] . "'>" . _("Allocate") . "</a>");
if (db_num_rows($trans_items) == 0)
display_note(_("There are no allocations to be done."), 1, 2);
if (db_num_rows($trans_items) == 0)
display_note(_("There are no allocations to be done."), 1, 2);
display_allocatable_transactions();
//--------------------------------------------------------------------------------
display_allocatable_transactions();
//--------------------------------------------------------------------------------