TASK-2025-01247 : create journal entry in draft for vehicle incident record #1031
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature description
create journal entry in draft related to vehicle incident if employee is not payable
Solution description
Created Journal Entry for all vehicle incidents , regardless of whether is_employee_payable is checked.
If is_employee_payable is True:
Debit: debit_account (Employee Payable Account)
Credit: credit_account
If is_employee_payable is False:
Debit: credit_account
Credit: debit_account (Employee Payable Account)
Output screenshots (optional)
Areas affected and ensured
List out the areas affected by your code changes.
Is there any existing behavior change of other features due to this code change?
Mention Yes or No. If Yes, provide the appropriate explanation.
Was this feature tested on the browsers?