fixed bug with employee_number

This commit is contained in:
Ali 2026-03-07 03:25:36 +04:00
parent c28c968710
commit dca5a13de3
2 changed files with 16 additions and 1 deletions

View File

@ -1594,6 +1594,7 @@ def create_single_employee_from_amas(asan_login_name, employee_data, company, cr
emp.last_name = last_name emp.last_name = last_name
emp.company = company emp.company = company
emp.passport_number = fin emp.passport_number = fin
emp.employee_number = fin
emp.date_of_birth = dob or "2000-01-01" emp.date_of_birth = dob or "2000-01-01"
emp.date_of_joining = doj or frappe.utils.today() emp.date_of_joining = doj or frappe.utils.today()
emp.gender = gender emp.gender = gender
@ -1879,6 +1880,7 @@ def create_single_employee_from_amas(asan_login_name, emp_data, company, create_
emp.last_name = last_name emp.last_name = last_name
emp.company = company emp.company = company
emp.passport_number = fin emp.passport_number = fin
emp.employee_number = fin
emp.date_of_birth = dob or "2000-01-01" emp.date_of_birth = dob or "2000-01-01"
emp.date_of_joining = doj or frappe.utils.today() emp.date_of_joining = doj or frappe.utils.today()
emp.gender = gender emp.gender = gender
@ -2186,6 +2188,7 @@ def create_employees_from_amas(asan_login_name, employees, company, create_desig
emp.last_name = last_name emp.last_name = last_name
emp.company = company emp.company = company
emp.passport_number = fin emp.passport_number = fin
emp.employee_number = fin
emp.date_of_birth = dob or "2000-01-01" emp.date_of_birth = dob or "2000-01-01"
emp.date_of_joining = doj or frappe.utils.today() emp.date_of_joining = doj or frappe.utils.today()
emp.gender = gender emp.gender = gender

View File

@ -30,7 +30,19 @@ frappe.ui.form.on('E-Taxes Settings', {
frm.fields_dict['unit_mappings'].grid.add_custom_button(__('Bulk Edit'), function() { frm.fields_dict['unit_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
bulk_edit_table(frm, 'unit_mappings'); bulk_edit_table(frm, 'unit_mappings');
}); });
frm.fields_dict['customer_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
bulk_edit_table(frm, 'customer_mappings');
});
frm.fields_dict['supplier_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
bulk_edit_table(frm, 'supplier_mappings');
});
frm.fields_dict['vat_account_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
bulk_edit_table(frm, 'vat_account_mappings');
});
// Items section buttons // Items section buttons
frm.add_custom_button(__('Match items by similar name'), function() { frm.add_custom_button(__('Match items by similar name'), function() {
if(frm.is_dirty()) { if(frm.is_dirty()) {