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

refactor: bank transaction #38182

Merged

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Nov 18, 2023

  • Modify values before database write, not after.
  • Don't implicitly ignore duplicate vouchers in one special case. Instead always explicitly validate that there are no duplicates.
  • Turn the Allocated Amount and Unallocated Amount fields into read only, computed fields, allowed after submit.
  • Move the Amended From field to a more appropriate position.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Nov 18, 2023
@barredterra barredterra force-pushed the refactor-bank-transaction branch 2 times, most recently from 08567f6 to 70fc567 Compare November 18, 2023 18:05
@barredterra barredterra force-pushed the refactor-bank-transaction branch from 70fc567 to 2a49db5 Compare November 18, 2023 18:17
Copy link

codecov bot commented Nov 18, 2023

Codecov Report

Merging #38182 (2a49db5) into develop (969616e) will decrease coverage by 0.02%.
Report is 3 commits behind head on develop.
The diff coverage is 80.43%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #38182      +/-   ##
===========================================
- Coverage    67.26%   67.25%   -0.02%     
===========================================
  Files          757      757              
  Lines        60495    60484      -11     
===========================================
- Hits         40691    40677      -14     
- Misses       19804    19807       +3     
Files Coverage Δ
...nk_reconciliation_tool/bank_reconciliation_tool.py 52.91% <100.00%> (+0.17%) ⬆️
erpnext/selling/doctype/customer/customer.py 76.48% <100.00%> (ø)
erpnext/stock/report/item_prices/item_prices.py 94.80% <ø> (ø)
...ounts/doctype/bank_transaction/bank_transaction.py 65.64% <79.06%> (-4.08%) ⬇️

@barredterra
Copy link
Collaborator Author

Unit tests are looking good:

Bildschirmfoto 2023-11-24 um 14 09 55

@barredterra barredterra added backport version-14-hotfix backport to version 14 backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Nov 24, 2023
@deepeshgarg007 deepeshgarg007 merged commit 5426b93 into frappe:develop Nov 26, 2023
13 checks passed
mergify bot pushed a commit that referenced this pull request Nov 26, 2023
(cherry picked from commit 5426b93)
mergify bot pushed a commit that referenced this pull request Nov 26, 2023
(cherry picked from commit 5426b93)
@barredterra barredterra deleted the refactor-bank-transaction branch November 26, 2023 13:21
deepeshgarg007 pushed a commit that referenced this pull request Nov 26, 2023
refactor: bank transaction (#38182)

(cherry picked from commit 5426b93)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
deepeshgarg007 pushed a commit that referenced this pull request Nov 26, 2023
refactor: bank transaction (#38182)

(cherry picked from commit 5426b93)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
deepeshgarg007 added a commit that referenced this pull request Dec 10, 2023
deepeshgarg007 added a commit that referenced this pull request Dec 10, 2023
Revert "refactor: bank transaction (#38182)"

This reverts commit a4b5fc8.
frappe-pr-bot pushed a commit that referenced this pull request Dec 12, 2023
# [14.54.0](v14.53.0...v14.54.0) (2023-12-12)

### Bug Fixes

* 1st row depr. sch. value of asset put to less than 180 days acc. to I.T. S. 32 ([#38697](#38697)) ([753a1b5](753a1b5))
* calc monthly_repayment_amount correctly in regenerate_repayment_schedule ([#38636](#38636)) ([008400d](008400d))
* format only if searched text contain link value text ([b28deaa](b28deaa))
* limit end date to current date ([cbe15e1](cbe15e1))
* typo in unittest ([#38673](#38673)) ([c87a3c7](c87a3c7))
* **ux:** don't update qty blindly (backport [#38608](#38608)) ([#38638](#38638)) ([29cd474](29cd474))

### Features

* add employee number to client user bootinfo (backport [#38477](#38477)) ([#38602](#38602)) ([c2a137f](c2a137f))

### Reverts

* Revert "refactor: bank transaction (backport #38182)" (#38653) ([7813efa](7813efa)), closes [#38182](#38182) [#38653](#38653) [#38182](#38182)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants