if (list_updated('PayType') || list_updated('person_id'))
{
+ if (list_updated('PayType'))
+ {
+ $_POST['person_id'] = "";
+ unset($_POST['bank_account']);
+ }
if ($_POST['PayType'] == PT_CUSTOMER || $_POST['PayType'] == PT_SUPPLIER)
{
- $Ajax->activate('person_id');
if ($_POST['PayType'] == PT_CUSTOMER)
$_POST['bank_account'] = get_default_customer_bank_account($_POST['person_id']);
else