diff --git a/fyle_accounting_mappings/models.py b/fyle_accounting_mappings/models.py index e60afdb..4709ade 100644 --- a/fyle_accounting_mappings/models.py +++ b/fyle_accounting_mappings/models.py @@ -394,8 +394,8 @@ def bulk_create_or_update_destination_attributes( ) else: if attribute_disable_callback_path and is_import_to_fyle_enabled and ( - (attribute['value'] != primary_key_map[attribute['destination_id']]['value']) - or ('code' in attribute and attribute['code'] != primary_key_map[attribute['destination_id']]['code']) + (attribute['value'] and primary_key_map[attribute['destination_id']]['value'] and attribute['value'].lower() != primary_key_map[attribute['destination_id']]['value'].lower()) + or ('code' in attribute and attribute['code'] and attribute['code'] != primary_key_map[attribute['destination_id']]['code']) ): attributes_to_disable[attribute['destination_id']] = { 'value': primary_key_map[attribute['destination_id']]['value'], @@ -408,7 +408,7 @@ def bulk_create_or_update_destination_attributes( (attribute['value'] != primary_key_map[attribute['destination_id']]['value']) or ('detail' in attribute and attribute['detail'] != primary_key_map[attribute['destination_id']]['detail']) or ('active' in attribute and attribute['active'] != primary_key_map[attribute['destination_id']]['active']) - or ('code' in attribute and attribute['code'] != primary_key_map[attribute['destination_id']]['code']) + or ('code' in attribute and attribute['code'] and attribute['code'] != primary_key_map[attribute['destination_id']]['code']) ): attributes_to_be_updated.append( DestinationAttribute( diff --git a/setup.py b/setup.py index 7f471b9..affe963 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='fyle-accounting-mappings', - version='1.34.3', + version='1.34.4', author='Shwetabh Kumar', author_email='shwetabh.kumar@fyle.in', description='Django application to store the fyle accounting mappings in a generic manner',