Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Expense Claim): status update on document cancellation #1392

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

krantheman
Copy link
Member

Expense Claim status remains "Paid" after canceling, if it has been Paid and Approved, whereas it should be "Cancelled".

no-docs

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7bef9b9) 72.51% compared to head (b3e1139) 72.47%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1392      +/-   ##
===========================================
- Coverage    72.51%   72.47%   -0.04%     
===========================================
  Files          201      201              
  Lines        10986    10987       +1     
===========================================
- Hits          7966     7963       -3     
- Misses        3020     3024       +4     
Files Coverage Δ
hrms/hr/doctype/expense_claim/expense_claim.py 85.43% <100.00%> (+0.11%) ⬆️

... and 4 files with indirect coverage changes

@ruchamahabal ruchamahabal merged commit 6403978 into frappe:develop Feb 7, 2024
7 checks passed
mergify bot pushed a commit that referenced this pull request Feb 7, 2024
* fix(Expense Claim): status update on document cancellation

* chore: improve readability and flow

(cherry picked from commit 6403978)

# Conflicts:
#	hrms/hr/doctype/expense_claim/expense_claim.py
mergify bot pushed a commit that referenced this pull request Feb 7, 2024
* fix(Expense Claim): status update on document cancellation

* chore: improve readability and flow

(cherry picked from commit 6403978)
ruchamahabal pushed a commit that referenced this pull request Feb 7, 2024
…1392) (#1405)

* fix(Expense Claim): status update on document cancellation

* chore: improve readability and flow

(cherry picked from commit 6403978)

Co-authored-by: Akash  Tom <[email protected]>
@krantheman krantheman deleted the fix-expense-claim branch February 7, 2024 11:36
ruchamahabal added a commit that referenced this pull request Feb 13, 2024
…1392) (#1404)

* fix(Expense Claim): status update on document cancellation (#1392)

* fix(Expense Claim): status update on document cancellation

* chore: improve readability and flow

(cherry picked from commit 6403978)

# Conflicts:
#	hrms/hr/doctype/expense_claim/expense_claim.py

* chore: fix conflicts

---------

Co-authored-by: Akash  Tom <[email protected]>
Co-authored-by: Rucha Mahabal <[email protected]>
frappe-pr-bot pushed a commit that referenced this pull request Feb 13, 2024
## [14.21.6](v14.21.5...v14.21.6) (2024-02-13)

### Bug Fixes

* don't consider holidays as Absent when 'Consider Unmarked Attendance As' = Absent ([af4a090](af4a090))
* **Expense Claim:** status update on document cancellation (backport [#1392](#1392)) ([#1404](#1404)) ([943236f](943236f))
* **Monthly Attendance Sheet:** parsing error (backport [#1415](#1415)) ([#1422](#1422)) ([8c3ad08](8c3ad08))
* update leave dashboard string to translatable format (backport [#1418](#1418)) ([#1419](#1419)) ([f71e048](f71e048))
frappe-pr-bot pushed a commit that referenced this pull request Feb 13, 2024
## [15.11.1](v15.11.0...v15.11.1) (2024-02-13)

### Bug Fixes

* don't consider holidays as Absent when 'Consider Unmarked Attendance' = Absent ([deace66](deace66))
* exclude holidays while getting marked attendance days ([04df09e](04df09e))
* **Expense Claim:** status update on document cancellation (backport [#1392](#1392)) ([#1405](#1405)) ([9c0cd3d](9c0cd3d))
* handle attendance condition for missing holidays ([0452649](0452649))
* **Monthly Attendance Sheet:** parsing error (backport [#1415](#1415)) ([#1423](#1423)) ([2118961](2118961))
* update leave dashboard string to translatable format (backport [#1418](#1418)) ([#1420](#1420)) ([aa49f74](aa49f74))
Comment on lines +57 to +60
if self.docstatus == 1:
if self.approval_status == "Approved":
if (
# set as paid

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

three levels of nested conditions, dont think is readable @krantheman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants