Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Dec 11, 2024
1 parent 6b8637d commit 1679d80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/workspaces/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ def update(self, instance, validated):
mapping_settings = validated.pop('mapping_settings')
import_settings = validated.pop('import_settings')

if import_settings.get('charts_of_accounts') != instance.import_settings.charts_of_accounts:
import_setting_instance = ImportSetting.objects.filter(workspace_id=instance.id).first()

if import_setting_instance and import_settings.get('charts_of_accounts') != instance.import_settings.charts_of_accounts:
category_import_log = ImportLog.objects.filter(workspace_id=instance.id, attribute_type='CATEGORY').first()

if category_import_log:
Expand Down

0 comments on commit 1679d80

Please sign in to comment.