$_POST['salesman'], $_POST['area'], $_POST['email'], $_POST['tax_group_id'], $_POST['sales_account'],
$_POST['sales_discount_account'], $_POST['receivables_account'], $_POST['payment_discount_account'],
$_POST['default_location'], $_POST['br_post_address'], $_POST['disable_trans'], $_POST['group_no'],
- $_POST['default_ship_via'], $_POST['notes']);
+ $_POST['default_ship_via'], $_POST['notes'], $_POST['rep_lang']);
$note =_('Selected customer branch has been updated');
}
$_POST['salesman'], $_POST['area'], $_POST['email'], $_POST['tax_group_id'], $_POST['sales_account'],
$_POST['sales_discount_account'], $_POST['receivables_account'], $_POST['payment_discount_account'],
$_POST['default_location'], $_POST['br_post_address'], $_POST['disable_trans'], $_POST['group_no'],
- $_POST['default_ship_via'], $_POST['notes']);
+ $_POST['default_ship_via'], $_POST['notes'], $_POST['rep_lang']);
$note = _('New customer branch has been added');
}
$_POST['contact_name'] = $myrow["contact_name"];
$_POST['salesman'] =$myrow["salesman"];
$_POST['area'] =$myrow["area"];
+ $_POST['rep_lang'] =$myrow["rep_lang"];
$_POST['phone'] =$myrow["phone"];
$_POST['phone2'] =$myrow["phone2"];
$_POST['fax'] =$myrow["fax"];
}
elseif ($Mode != 'ADD_ITEM')
{ //end of if $SelectedBranch only do the else when a new record is being entered
+ $myrow = get_default_info_for_branch($_POST['customer_id']);
+ $_POST['rep_lang'] = $myrow['rep_lang'];
if(!$num_branches) {
- $myrow = get_default_info_for_branch($_POST['customer_id']);
$_POST['br_name'] = $myrow["name"];
$_POST['br_ref'] = $myrow["debtor_ref"];
$_POST['contact_name'] = _('Main Branch');
sales_persons_list_row( _("Sales Person:"), 'salesman', null);
+languages_list_row( _("Document Language:"), 'rep_lang', null, _("Customer default"));
+
sales_areas_list_row( _("Sales Area:"), 'area', null);
sales_groups_list_row(_("Sales Group:"), 'group_no', null, true);
update_customer($_POST['customer_id'], $_POST['CustName'], $_POST['cust_ref'], $_POST['address'],
$_POST['tax_id'], $_POST['curr_code'], $_POST['email'], $_POST['dimension_id'], $_POST['dimension2_id'],
$_POST['credit_status'], $_POST['payment_terms'], input_num('discount') / 100, input_num('pymt_discount') / 100,
- input_num('credit_limit'), $_POST['sales_type'], $_POST['notes']);
+ input_num('credit_limit'), $_POST['sales_type'], $_POST['notes'], $_POST['rep_lang']);
update_record_status($_POST['customer_id'], $_POST['inactive'],
'debtors_master', 'debtor_no');
add_customer($_POST['CustName'], $_POST['cust_ref'], $_POST['address'],
$_POST['tax_id'], $_POST['curr_code'], $_POST['email'], $_POST['dimension_id'], $_POST['dimension2_id'],
$_POST['credit_status'], $_POST['payment_terms'], input_num('discount') / 100, input_num('pymt_discount') / 100,
- input_num('credit_limit'), $_POST['sales_type'], $_POST['notes']);
+ input_num('credit_limit'), $_POST['sales_type'], $_POST['notes'], $_POST['rep_lang']);
$_POST['customer_id'] = db_insert_id();
$new_customer = false;
$_POST['dimension_id'] = 0;
$_POST['dimension2_id'] = 0;
$_POST['sales_type'] = -1;
+ $_POST['rep_lang'] = '';
$_POST['email'] = '';
$_POST['curr_code'] = get_company_currency();
$_POST['credit_status'] = -1;
$_POST['dimension_id'] = $myrow["dimension_id"];
$_POST['dimension2_id'] = $myrow["dimension2_id"];
$_POST['sales_type'] = $myrow["sales_type"];
+ $_POST['rep_lang'] = $myrow["rep_lang"];
$_POST['curr_code'] = $myrow["curr_code"];
$_POST['credit_status'] = $myrow["credit_status"];
$_POST['payment_terms'] = $myrow["payment_terms"];
hidden('curr_code', $_POST['curr_code']);
}
sales_types_list_row(_("Sales Type/Price List:"), 'sales_type', $_POST['sales_type']);
+languages_list_row( _("Document Language:"), 'rep_lang', $_POST['rep_lang'], _('System default'));
table_section(2);