X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sales%2Fmanage%2Fcustomers.php;h=f76e1cd9ccecc8e24a7056d5b6a6f9aa310c4151;hb=29a830f28694733a997b3095aecc8b192f7b7187;hp=93768344ec214fa20eec1d5bf4d0c56c3fe3478c;hpb=2e7f4b37582315f873a1ace59d380d0ede20ae08;p=fa-stable.git diff --git a/sales/manage/customers.php b/sales/manage/customers.php index 93768344..f76e1cd9 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']); }