}
if (list_updated('supplier_id') || list_updated('bank_account')) {
+ $_SESSION['alloc']->read();
+ $_POST['memo_'] = $_POST['amount'] = '';
$Ajax->activate('alloc_tbl');
}
//----------------------------------------------------------------------------------------
$_POST['memo_'] = $inv['supp_reference'];
foreach($_SESSION['alloc']->allocs as $line => $trans) {
if ($trans->type == ST_SUPPINVOICE && $trans->type_no == $_GET['PInvoice']) {
- $_POST['amount'] =
+ $_POST['amount'] =
$_SESSION['alloc']->amount = price_format($_SESSION['alloc']->allocs[$line]->amount);
$_SESSION['alloc']->allocs[$line]->current_allocated =
$_SESSION['alloc']->allocs[$line]->amount;
unset($inv);
} else
display_error(_("Invalid purchase invoice number."));
-
}
}
if (isset($_GET['AddedID'])) {
if ($bank_currency == $supplier_currency) {
div_start('alloc_tbl');
- $_SESSION['alloc']->read();
show_allocatable(false);
div_end();
}