X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fallocations%2Fcustomer_allocation_main.php;h=2cbce6a0e01f76ef3bc561a89197eee341970c46;hb=fd59c60718609c1bf3240a303030167a4f1b1885;hp=b0c67256423967e3397f0b739b655d5484cf311e;hpb=0e484731f1e6036625f5f22a59be003d0b409ef2;p=fa-stable.git diff --git a/sales/allocations/customer_allocation_main.php b/sales/allocations/customer_allocation_main.php index b0c67256..2cbce6a0 100644 --- a/sales/allocations/customer_allocation_main.php +++ b/sales/allocations/customer_allocation_main.php @@ -12,6 +12,13 @@ if ($use_popup_windows) page(_("Customer Allocations"), false, false, "", $js); //-------------------------------------------------------------------------------- +if ($ret = context_restore()) { + if(isset($ret['customer_id'])) + $_POST['customer_id'] = $ret['customer_id']; +} +if (isset($_POST['_customer_id_editor'])) { + context_call($path_to_root.'/sales/manage/customers.php?debtor_no='.$_POST['customer_id'] ); +} function display_allocatable_transactions() { @@ -92,11 +99,8 @@ function display_allocatable_transactions() } amount_cell($myrow["Total"]); amount_cell($myrow["Total"] - $myrow["alloc"]); - if ($myrow["Total"] - $myrow["alloc"] != 0.0) - label_cell("" . _("Allocate") . ""); - else - label_cell(""); end_row(); }