X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fallocations%2Fcustomer_allocation_main.php;h=2cbce6a0e01f76ef3bc561a89197eee341970c46;hb=f3dd02a8a4c88076627aca073e9e1148cac7a4b1;hp=b0c67256423967e3397f0b739b655d5484cf311e;hpb=c09be0dad6b05131e240349a375af7a4b7bf3444;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(); }