fix: resolved conflict

This commit is contained in:
Nabin Hait 2024-02-26 12:21:25 +05:30 committed by GitHub
parent 3c98368e45
commit d196aa5a36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -561,11 +561,8 @@ def modify_depreciation_schedule_for_asset_repairs(asset, notes):
def reverse_depreciation_entry_made_after_disposal(asset, date):
for row in asset.get("finance_books"):
asset_depr_schedule_doc = get_asset_depr_schedule_doc(asset.name, "Active", row.finance_book)
<<<<<<< HEAD
=======
if not asset_depr_schedule_doc or not asset_depr_schedule_doc.get("depreciation_schedule"):
continue
>>>>>>> 17f85de6fb (fix: Issues regarding asset cancellation and deletion)
for schedule_idx, schedule in enumerate(asset_depr_schedule_doc.get("depreciation_schedule")):
if schedule.schedule_date == date and schedule.journal_entry: