X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fcustomers.php;h=65c36c934e795f3ff3a04a5016b69e3b6d0b10ca;hb=0b63d898491b6577a5a5bf90e771dca0dcbbcf1f;hp=b7226e1fd9e350070ba94f721b08043cb90d60a4;hpb=649c678c71f2827326c9761b0091bb15196f8878;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index b7226e1f..65c36c93 100644 --- a/sales/manage/customers.php +++ b/sales/manage/customers.php @@ -236,7 +236,8 @@ function customer_settings($selected_id) text_row(_("GSTNo:"), 'tax_id', null, 40, 40); - if (!$selected_id || is_new_customer($selected_id)) + if (!$selected_id || is_new_customer($selected_id) || (!key_in_foreign_table($selected_id, 'debtor_trans', 'debtor_no') && + !key_in_foreign_table($selected_id, 'sales_orders', 'debtor_no'))) { currencies_list_row(_("Customer's Currency:"), 'curr_code', $_POST['curr_code']); }