Ajax additions
[fa-stable.git] / sales / allocations / customer_allocation_main.php
index 8d85e42317e8713d9aef77f8c3e93012d9de1548..b0c67256423967e3397f0b739b655d5484cf311e 100644 (file)
@@ -56,7 +56,7 @@ function display_allocatable_transactions()
                $customer_id = $_POST['customer_id'];
 
        $trans_items = get_allocatable_from_cust_transactions($customer_id, $settled);
-
+ div_start('alloc_tbl');
        start_table($table_style);
        if (!isset($_POST['customer_id']))
                $th = array(_("Transaction Type"), _("#"), _("Reference"), _("Date"), _("Customer"),
@@ -107,12 +107,14 @@ function display_allocatable_transactions()
 
        if (db_num_rows($trans_items) == 0)
                display_note(_("There are no allocations to be done."), 1, 2);
-
+       div_end();
        end_form();
 }
 
 //--------------------------------------------------------------------------------
-
+if (get_post('_ShowSettled_update')) {
+       $Ajax->activate('alloc_tbl');
+}
 display_allocatable_transactions();
 
 //--------------------------------------------------------------------------------