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

Merge from upstream v14 #77

Merged
merged 649 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
649 commits
Select commit Hold shift + click to select a range
9bc44a3
fix: Apply dimension filter, irrespective of dimesion columns
deepeshgarg007 Sep 12, 2023
461b607
Merge pull request #37060 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 13, 2023
c2a0c1e
fix: + btn not appearing for delivery note connection (backport #3698…
mergify[bot] Sep 13, 2023
b56c9b9
fix: accepted warehouse and rejected warehouse can't be same (backpor…
mergify[bot] Sep 13, 2023
8772e40
fix: Purchase Receipt Provisional Accounting GL Entries (backport #37…
mergify[bot] Sep 13, 2023
3ecdf02
fix: Remove redundant code (#37001)
mergify[bot] Sep 13, 2023
f2395a9
fix: precision issue and column name (#37073)
rohitwaghchaure Sep 14, 2023
fffa13f
fix: validate duplicate serial no in DN
s-aga-r Sep 15, 2023
e5177a6
test: add test case for DN duplicate serial nos
s-aga-r Sep 15, 2023
b33db6c
fix: asset validation misfire on debit notes
ruthra-kumar Sep 15, 2023
89b570e
Merge pull request #37109 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Sep 15, 2023
727dcc5
fix: ignore user permissions for `Source Warehouse` in MR (backport #…
mergify[bot] Sep 15, 2023
19a227a
Merge pull request #37106 from s-aga-r/FIX-1334
s-aga-r Sep 16, 2023
a563fed
fix(ux): move `get_route_options_for_new_doc` to `refresh` (#37092)
FHenry Sep 16, 2023
13aaff3
fix: company wise deferred accounting fields in item (#37023)
mergify[bot] Sep 18, 2023
8b2328c
refactor: show balance checkbox in Accounts Settings
ruthra-kumar Jan 2, 2023
1870284
refactor: Show Balance in COA based on Accounts Settings
ruthra-kumar Jan 2, 2023
79321f5
chore: resolve conflicts
ruthra-kumar Sep 18, 2023
46f94cf
Merge pull request #37125 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Sep 18, 2023
c41cb39
fix: Don't allow merging accounts with different currency (#37074)
mergify[bot] Sep 18, 2023
4b700b7
refactor: better date filters in `Get Outstanding Invoices` dialog
ruthra-kumar Sep 18, 2023
8ef548f
Merge pull request #37129 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Sep 18, 2023
e62b783
fix: don't set from warehouse for purchase material request (#37132)
rohitwaghchaure Sep 18, 2023
366325c
fix: Duplicate Serial Nos validation in POS (#36927)
RitvikSardana Sep 18, 2023
dfe5f63
refactor: more generic filters in Accounts Receivable report (backpor…
mergify[bot] Sep 19, 2023
af05864
fix: POS opening Issue if Product Bundle is available (#37138)
RitvikSardana Sep 19, 2023
29ff0ce
feat: provision to create RIV from `Stock Ledger Invariant Check` rep…
mergify[bot] Sep 19, 2023
480a0ca
fix: fetch logic for repay_from_salary in loan_repayment [v14] (#37135)
anandbaburajan Sep 19, 2023
699ad80
fix: incorrect stock ledger entries in DN (backport #36944) (#37066)
mergify[bot] Sep 19, 2023
1cb8c64
fix: after applying coupon code, field in_words not updated (#37133)
mergify[bot] Sep 19, 2023
8236814
fix: german translation of Sales and Purchase Invoice (#37122)
barredterra Sep 19, 2023
8c14dbd
chore: translation manual backport of #35697 (#37053)
FHenry Sep 19, 2023
c5df164
chore: translations dutch (#37042)
mergify[bot] Sep 19, 2023
428870a
Merge pull request #37153 from frappe/version-14-hotfix
deepeshgarg007 Sep 20, 2023
2713925
chore(release): Bumped to Version 14.40.0
frappe-bot Sep 20, 2023
56657b6
fix: allow to select parent warehouse in the website item (backport #…
mergify[bot] Sep 20, 2023
03e52d3
chore: resolve conflicts
barredterra Sep 20, 2023
f2bcfb5
fix: labels for `Stock Ledger Invariant Check` report (backport #3715…
mergify[bot] Sep 20, 2023
43f3779
Merge pull request #37156 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 20, 2023
02fc67c
feat: `Stock Ledger Variance` report (backport #37165) (#37183)
mergify[bot] Sep 21, 2023
b47d9bb
Merge remote-tracking branch 'frappe/version-14' into merge-v14
Sep 21, 2023
1181dcf
fix: Update `advance_paid` in SO/PO after unlinking from advance entry
marination Sep 13, 2023
591c720
test: Impact on SO of advance PE submit and unlinking/replacement by SI
marination Sep 13, 2023
139a7ce
Merge pull request #37196 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Sep 22, 2023
9d5fce9
refactor: ignore PLE's on PCV cancellation
ruthra-kumar Sep 22, 2023
d3c9a6d
Merge pull request #37206 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Sep 22, 2023
b4bc44d
fix: apply gl report filters
GursheenK Sep 23, 2023
57c82c1
feat: Toggle net values in Trial Balance report
deepeshgarg007 Sep 23, 2023
e0da8d2
fix: set customer currency in pos_invoice if exists
milanpethani Sep 20, 2023
81d52b1
Merge pull request #37220 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 24, 2023
4250a7c
Merge pull request #37217 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 24, 2023
2b8118c
Merge pull request #37218 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 24, 2023
25f800d
fix(Material Request): consider project for item details (backport #3…
mergify[bot] Sep 24, 2023
ab8a4f7
Merge branch 'version-14-hotfix' of https://github.com/frappe/erpnext…
FHenry Sep 25, 2023
c9ba777
refactor(region): Splitting of France Regional logic from ERPNext
FHenry Sep 25, 2023
ba45299
Merge pull request #37228 from FHenry/14_warning_depreciation_regiona…
deepeshgarg007 Sep 25, 2023
279f21d
fix: incorrect `Parent Task` getting set for 2nd to nth child Task (b…
mergify[bot] Sep 26, 2023
70e2093
fix: validate duplicate serial no on submit in DN (#37243)
s-aga-r Sep 26, 2023
78ab201
fix: serial number decimal issue (#37242)
rohitwaghchaure Sep 26, 2023
0a0d5b3
fix: reserved qty for production plan (#37251)
rohitwaghchaure Sep 26, 2023
1dc58b3
fix: AP & AR summary filters to match AR (backport #37248) (#37261)
mergify[bot] Sep 27, 2023
92eabe3
fix: PCV posting issues (#37029)
deepeshgarg007 Sep 27, 2023
e483b4a
fix: Use default Cost Center of the Company for additional discount (…
vr-greycube Sep 27, 2023
e752027
Merge pull request #37247 from frappe/version-14-hotfix
deepeshgarg007 Sep 27, 2023
abb6044
chore(release): Bumped to Version 14.41.0
frappe-bot Sep 27, 2023
c6966f4
Merge pull request #37263 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 27, 2023
8d813e3
chore: resolve conflicts
deepeshgarg007 Sep 27, 2023
b18678d
Merge pull request #37262 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 27, 2023
6a8146b
fix: trial balance report freezes when adding filters (backport #3726…
mergify[bot] Sep 27, 2023
53817e4
fix: trial balance report freezes when adding filters (backport #3726…
mergify[bot] Sep 27, 2023
1b86e7e
chore(release): Bumped to Version 14.41.1
frappe-bot Sep 27, 2023
e831887
Merge remote-tracking branch 'frappe/version-14' into merge-v14
Sep 27, 2023
8fe4a4d
fix: incorrect qty for material request in Production Plan (#37270)
rohitwaghchaure Sep 27, 2023
49f0f1c
fix: set route filter values for AP
GursheenK Sep 27, 2023
2b30727
fix: set route filter values for AR
GursheenK Sep 27, 2023
6d7aa2a
fix: query for multiselect filter
GursheenK Sep 27, 2023
403ff69
fix: summary report filters
GursheenK Sep 27, 2023
4962b67
fix: process soa filter for multiselect
GursheenK Sep 27, 2023
28756bf
fix: party format in test
GursheenK Sep 27, 2023
01b5413
test: multi select party filter in AR report
ruthra-kumar Sep 28, 2023
81c4279
Merge pull request #37282 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Sep 28, 2023
21c1c71
refactor: In Quotation Item, discount_and_margin section should have …
FHenry Sep 29, 2023
cfb3a9e
fix: incorrect qty for material request in Production Plan (backport …
mergify[bot] Sep 29, 2023
7fd4d3c
chore(release): Bumped to Version 14.41.2
frappe-bot Sep 29, 2023
7f1483a
fix: Description field for the 'Ignore Available Stock' (#37293)
rohitwaghchaure Sep 29, 2023
95e0bf5
fix: Not unique table/alias: 'tabTask' (backport #37285) (#37298)
mergify[bot] Sep 29, 2023
04f0dfb
fix: ignore user permissions for `Source Warehouse` (backport #37313)…
mergify[bot] Oct 1, 2023
f7de825
chore: add regional support for getting payment entries (#37119)
vorasmit Sep 19, 2023
6daea6c
feat: asset salvage_value_percentage (backport #37302) (#37334)
mergify[bot] Oct 3, 2023
82e8606
fix: currency symbol in the Supplier Quotation Comparison report (#37…
rohitwaghchaure Oct 3, 2023
020aedb
fix: add only float row values for total
GursheenK Sep 29, 2023
f3b872a
refactor: use `isinstance` over `type`
ruthra-kumar Oct 3, 2023
fe32787
Merge pull request #37346 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 3, 2023
c3aeb2d
fix: do not consider submitted Work Orders in the Production Plan Res…
rohitwaghchaure Oct 3, 2023
e975a10
chore: fix linter issue (#37349)
rohitwaghchaure Oct 3, 2023
643bb05
fix: validation message for valuation rate (#37301)
rohitwaghchaure Oct 3, 2023
12a7cb2
Merge pull request #37339 from frappe/version-14-hotfix
ruthra-kumar Oct 4, 2023
9f1b932
chore(release): Bumped to Version 14.42.0
frappe-bot Oct 4, 2023
0ecd7d2
feat: composite WIP asset (#37352)
anandbaburajan Oct 4, 2023
2b38b78
fix(Employee): enable `no_copy` for `relieving_date` (backport #37344…
mergify[bot] Oct 4, 2023
6947686
feat: composite WIP asset (backport #37352) (#37360)
mergify[bot] Oct 4, 2023
cf9fc55
chore(release): Bumped to Version 14.43.0
frappe-bot Oct 4, 2023
67a43c3
test: fixing test_capitalization_with_wip_composite_asset
anandbaburajan Oct 4, 2023
52c0900
Merge pull request #37363 from frappe/mergify/copy/version-14-hotfix/…
ruthra-kumar Oct 5, 2023
587a965
refactor: block Payment Entry as ref in JE from UI
ruthra-kumar Sep 29, 2023
64a50cf
Merge pull request #37366 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 5, 2023
98a9007
refactor: introduce access_key field
ruthra-kumar Oct 4, 2023
04b8527
chore: refactor test case for exchangerate.host provider
ruthra-kumar Oct 4, 2023
1ca0516
feat: disable currency exchange api. (#33593)
dj12djdjs Jan 16, 2023
6fad2ba
Merge pull request #37369 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 5, 2023
3b49079
Merge branch 'version-14-hotfix' into mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 5, 2023
bbc13c7
Merge pull request #37367 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 5, 2023
c1d40a6
fix: fetch company details for Lead based quotation
ruthra-kumar Oct 5, 2023
55a9a8f
Merge pull request #37371 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 5, 2023
63f4573
fix: incorrect status of the returned purchase receipt (#37300)
rohitwaghchaure Oct 6, 2023
4c337a6
fix: added validation for the batch on stock reco (#37174)
rohitwaghchaure Oct 6, 2023
1480aca
feat: validate negative stock for inventory dimension (#37373)
rohitwaghchaure Oct 6, 2023
15d2024
fix: ageing summary in AR
GursheenK Sep 29, 2023
c29eab1
refactor: separate function for statement dict
GursheenK Sep 29, 2023
24b1100
test: process soa for gl and ar
GursheenK Sep 29, 2023
3f59518
chore: resolve conflicts
GursheenK Oct 7, 2023
77d719a
chore: linting issues
GursheenK Oct 7, 2023
8f0e10b
Merge pull request #37388 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 8, 2023
e58b3b1
fix: exception on exporting errored rows
ruthra-kumar Oct 8, 2023
c42ef92
Merge pull request #37396 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 8, 2023
ae8355c
feat: introduce unreconcile doctype
ruthra-kumar Aug 22, 2023
77fa0f6
chore: working state on barebones functions
ruthra-kumar Aug 22, 2023
b9647ac
refactor: adding 'Get Allocations' button
ruthra-kumar Aug 24, 2023
fb41f5f
test: basic unreconcile function
ruthra-kumar Aug 24, 2023
9531a45
feat: UI for unreconcile
ruthra-kumar Aug 26, 2023
cb35218
feat: filter on voucher no
ruthra-kumar Aug 26, 2023
37fc82c
chore: delete references upon parent deletion
ruthra-kumar Aug 28, 2023
9422422
refactor: remove references using framework
ruthra-kumar Aug 28, 2023
2fd500c
chore: track changes
ruthra-kumar Aug 28, 2023
3a67026
chore: delete unreoncile doc upon parent doc deletion
ruthra-kumar Aug 28, 2023
b886589
refactor: add UI elements
ruthra-kumar Aug 29, 2023
1e93d0b
chore: move dialog building function to `utils.js` file
ruthra-kumar Aug 29, 2023
e464f5e
chore: move functions to a separate file in utils
ruthra-kumar Aug 29, 2023
7651ecb
chore: fetch logic for payment entry
ruthra-kumar Aug 29, 2023
f4e1959
chore: code cleanup
ruthra-kumar Aug 29, 2023
84e4a25
chore: rename and add trigger in journal entry
ruthra-kumar Aug 29, 2023
1a69db0
refactor: modularisation and group by voucher_no
ruthra-kumar Aug 30, 2023
cd2d335
feat: unreconcile support for journal entry
ruthra-kumar Aug 30, 2023
335cb5f
refactor: single fetch and unlinking logic for JE and PE
ruthra-kumar Aug 30, 2023
3cbaea3
refactor: convert raw sql to query_builder
ruthra-kumar Aug 30, 2023
8954bd7
chore: type info
ruthra-kumar Aug 30, 2023
f571839
refactor: unlink individual vouchers from payments
ruthra-kumar Aug 30, 2023
cf30891
test: more granular unreconciliation
ruthra-kumar Aug 30, 2023
606c99e
fix: typo in doctype name and qb
ruthra-kumar Aug 30, 2023
669d692
refactor: display allocated amount in account currency with symbol
ruthra-kumar Sep 5, 2023
75d3093
refactor: only cancel specific gain/loss je
ruthra-kumar Sep 5, 2023
4bd83b5
refactor: cancel gain/loss JE on multi currency transactions
ruthra-kumar Sep 5, 2023
aba51ee
refactor(test): more modularization
ruthra-kumar Sep 8, 2023
6327452
test: multi currency invoice unreconciliation
ruthra-kumar Sep 9, 2023
54cec32
Merge remote-tracking branch 'frappe/version-14' into merge-v14
Oct 9, 2023
8fc705e
chore: resolve conflicts
ruthra-kumar Oct 9, 2023
50521d4
Merge pull request #37322 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Oct 9, 2023
24852e4
chore: rewrite query using query builder (backport #37310) (#37415)
mergify[bot] Oct 9, 2023
eed5863
fix: payment request rounding in multi-currency and on status update
blaggacao Sep 17, 2023
b22ac13
fix: allocate amt for payment term invoices
GursheenK Sep 22, 2023
06b0477
fix: split inv allocated amt on server side
GursheenK Sep 23, 2023
bc0db69
chore: remove unused variable
GursheenK Sep 23, 2023
dc804f2
Merge pull request #37402 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 10, 2023
f5245f6
feat: allow on submit fields
GursheenK Sep 21, 2023
79e414c
refactor: move reposting logic to common controller
GursheenK Sep 21, 2023
cde848d
feat: add repost btn in invoice
GursheenK Sep 21, 2023
2d13dda
feat: allow repost for pi
GursheenK Sep 21, 2023
6c8a65e
fix: linting issues
GursheenK Sep 21, 2023
a512d27
test: reposted acc entries for pi
GursheenK Sep 22, 2023
8c83bbc
refactor: remove unused method
GursheenK Sep 23, 2023
677525b
refactor: use repost accounting legder
GursheenK Sep 23, 2023
c9bcf79
refactor: remove repeated validation for voucher
GursheenK Sep 23, 2023
4123e7b
fix: do not run bg job for single doc
GursheenK Sep 23, 2023
bec3e8e
fix: call validate before setting repost flag
GursheenK Sep 23, 2023
3dc68e3
fix: validation for si
GursheenK Sep 23, 2023
debfbc4
refactor: remove references in repost doctypes upon parent doc delet
ruthra-kumar Sep 26, 2023
0aad942
fix: fetch dependent task subject and project (backport #37401) (#37421)
mergify[bot] Oct 10, 2023
5d97a69
Merge branch 'version-14-hotfix' into mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 10, 2023
b0ac097
chore: resolve conflicts
ruthra-kumar Oct 10, 2023
ee1255a
fix: ignore cancelled gle in voucher-wise balance report (#36417)
GursheenK Jul 31, 2023
9689c1f
Merge branch 'version-14' into version-14-hotfix
deepeshgarg007 Oct 10, 2023
14ddcd6
Merge pull request #37427 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 10, 2023
97f9656
Merge pull request #37419 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 10, 2023
4d79a4e
Merge pull request #37420 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 10, 2023
63ff1f1
Merge pull request #37399 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 10, 2023
fb0b426
fix(ux): allow MR to Stop until fully received (backport #37452) (#37…
mergify[bot] Oct 11, 2023
573b159
fix: production plan reserved qty incorrect calculation (backport #37…
mergify[bot] Oct 11, 2023
e4ed1d6
fix: fetch company details for Lead based quotation
ruthra-kumar Oct 5, 2023
9dd3373
Merge pull request #37460 from frappe/mergify/bp/version-14/pr-37371
ruthra-kumar Oct 11, 2023
48ceead
chore(release): Bumped to Version 14.43.1
frappe-bot Oct 11, 2023
26ad688
fix: negative valuation rate in PR return (#37424)
s-aga-r Oct 11, 2023
8dd2694
refactor: for non-repost fields, don't validate
ruthra-kumar Oct 10, 2023
d37a181
refactor: add validation for Advances in SI/PI
ruthra-kumar Oct 11, 2023
33f4fae
Merge pull request #37430 from frappe/version-14-hotfix
deepeshgarg007 Oct 12, 2023
2815952
chore(release): Bumped to Version 14.44.0
frappe-bot Oct 12, 2023
f9b2355
fix: german tranlations of "Is Return"
barredterra Oct 9, 2023
f434548
Merge pull request #37465 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 12, 2023
020d2e2
Merge pull request #37464 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 12, 2023
bbdf26c
Merge pull request #37468 from frappe/mergify/bp/version-14-hotfix/pr…
sagarvora Oct 12, 2023
0590f21
fix: don't set finance books if gross_purchase_amount is not set (bac…
mergify[bot] Oct 12, 2023
cf0ab51
refactor(patch): ignore links on closing balance patch
ruthra-kumar Oct 12, 2023
c43d0b8
Merge pull request #37488 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 13, 2023
d2b22db
fix: use `flt` to ignore TypeError (#37481)
s-aga-r Oct 13, 2023
d266423
fix(gp): wrong `allocated_amount` on multi sales person invoice
rtdany10 Oct 10, 2023
6f143d3
fix: keyerror on gl and pl comparision report
ruthra-kumar Oct 13, 2023
cf9acd1
Merge pull request #37501 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 14, 2023
bae6c5b
Merge pull request #37500 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 14, 2023
9406ddb
fix: Stock Reconciliation Insufficient Stock Error (#37494)
s-aga-r Oct 14, 2023
f1814a1
fix: serial and batch no get removed on save of return DN (#37476)
s-aga-r Oct 15, 2023
405d152
test: use fixtures for sales and purchase invoice
ruthra-kumar Oct 2, 2023
9d6b434
refactor(test): unset accounts frozen date
ruthra-kumar Oct 2, 2023
485cb7d
refactor(test): use @change_settings in sales invoice
ruthra-kumar Oct 2, 2023
91a5bd8
refactor(test): fix broken test cases in Sales Invoice
ruthra-kumar Oct 2, 2023
5699a8d
refactor(test): use @change_settings to fix failing test cases
ruthra-kumar Oct 11, 2023
b97fdbe
refactor(test): use test fixture in subscription
ruthra-kumar Oct 15, 2023
33becb7
refactor(test): use test fixture in purchase invoice
ruthra-kumar Oct 15, 2023
d783168
refactor(test): make use of @change_settings in PI test cases
ruthra-kumar Oct 15, 2023
8d1eac8
refactor(test): make sure TDS Payable is available for testing
ruthra-kumar Oct 15, 2023
7f90353
chore: resovle conflicts
ruthra-kumar Oct 15, 2023
78e22af
fix: inflated total amt in TDS report using back calculation
ruthra-kumar Oct 15, 2023
77e7a6c
Merge pull request #37512 from ruthra-kumar/back_calculate_tds
ruthra-kumar Oct 15, 2023
d1f6d62
chore: fix flaky test case
ruthra-kumar Oct 15, 2023
65b7fb1
Merge pull request #37511 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 15, 2023
1b94510
fix: consider received qty while creating SO -> MR (backport #37414) …
mergify[bot] Oct 15, 2023
c32258e
fix: GL Entries not getting created for PR Return (backport #37513) (…
mergify[bot] Oct 15, 2023
44f7de0
fix: Incorrect vat amount in KSA VAT report
deepeshgarg007 Oct 16, 2023
001c230
perf: index `dn_detail` in `Delivery Note Item` (backport #37528) (#3…
mergify[bot] Oct 16, 2023
76ef61c
fix: keep customer/supplier website role by default
ankush Oct 16, 2023
d598dad
Merge pull request #37533 from frappe/mergify/bp/version-14-hotfix/pr…
ankush Oct 16, 2023
5b1016c
Merge pull request #37524 from deepeshgarg007/ksa_vat
deepeshgarg007 Oct 16, 2023
71cb7d3
refactor: checkbox to toggle exchange rate inheritence in PO->PI
ruthra-kumar Oct 3, 2023
4736105
Merge pull request #37540 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 17, 2023
5025850
fix: same Serial No get mapped while creating SO -> DN (#37527)
s-aga-r Oct 17, 2023
e23710b
fix(test): project test case (backport #37541) (#37543)
mergify[bot] Oct 17, 2023
bfa93cd
chore: Add accounting dimensions to Sales Order Item table
deepeshgarg007 Oct 17, 2023
7db6988
chore: resolve conflicts
deepeshgarg007 Oct 18, 2023
3499089
refactor: use account in key while grouping voucher in ar/ap report
ruthra-kumar Oct 17, 2023
760eab9
test: report output if party is missing
ruthra-kumar Oct 17, 2023
e2e8949
Merge pull request #37556 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 18, 2023
ac7d6d6
fix: billed_qty to show a sum of all invoiced qty from the purchase o…
mergify[bot] Oct 18, 2023
e8d0825
refactor: move `unreconcile` btn inside a drop down
ruthra-kumar Sep 15, 2023
54f672e
refactor: add `unreconcile` btn to purchase invoice
ruthra-kumar Sep 15, 2023
f6a550f
Merge pull request #37569 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Oct 18, 2023
837a6b5
Merge pull request #37555 from frappe/mergify/bp/version-14-hotfix/pr…
deepeshgarg007 Oct 18, 2023
022f85d
fix: e-commerce permissions for address (#37554)
mergify[bot] Oct 18, 2023
95abd79
fix: payment entry count on supplier dashboard (backport #37571) (#37…
mergify[bot] Oct 19, 2023
e1504ef
fix: Issues related to RFQ and Supplier Quotation on Portal (backport…
mergify[bot] Oct 19, 2023
fdb2e94
Merge pull request #37545 from frappe/version-14-hotfix
deepeshgarg007 Oct 19, 2023
6931db9
chore(release): Bumped to Version 14.44.1
frappe-bot Oct 19, 2023
59dd2ed
Merge remote-tracking branch 'frappe/version-14' into merge-v14
Oct 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion erpnext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import frappe

__version__ = "14.32.1"
__version__ = "14.44.1"


def get_default_company(user=None):
Expand Down
2 changes: 1 addition & 1 deletion erpnext/accounts/deferred_revenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def book_deferred_income_or_expense(doc, deferred_process, posting_date=None):
"enable_deferred_revenue" if doc.doctype == "Sales Invoice" else "enable_deferred_expense"
)

accounts_frozen_upto = frappe.get_cached_value("Accounts Settings", "None", "acc_frozen_upto")
accounts_frozen_upto = frappe.db.get_single_value("Accounts Settings", "acc_frozen_upto")

def _book_deferred_revenue_or_expense(
item,
Expand Down
3 changes: 0 additions & 3 deletions erpnext/accounts/doctype/account/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ frappe.ui.form.on('Account', {
args: {
old: frm.doc.name,
new: data.name,
is_group: frm.doc.is_group,
root_type: frm.doc.root_type,
company: frm.doc.company
},
callback: function(r) {
if(!r.exc) {
Expand Down
39 changes: 27 additions & 12 deletions erpnext/accounts/doctype/account/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class BalanceMismatchError(frappe.ValidationError):
pass


class InvalidAccountMergeError(frappe.ValidationError):
pass


class Account(NestedSet):
nsm_parent_field = "parent_account"

Expand Down Expand Up @@ -444,24 +448,35 @@ def update_account_number(name, account_name, account_number=None, from_descenda


@frappe.whitelist()
def merge_account(old, new, is_group, root_type, company):
def merge_account(old, new):
# Validate properties before merging
if not frappe.db.exists("Account", new):
throw(_("Account {0} does not exist").format(new))
new_account = frappe.get_cached_doc("Account", new)
old_account = frappe.get_cached_doc("Account", old)

val = list(frappe.db.get_value("Account", new, ["is_group", "root_type", "company"]))
if not new_account:
throw(_("Account {0} does not exist").format(new))

if val != [cint(is_group), root_type, company]:
if (
cint(new_account.is_group),
new_account.root_type,
new_account.company,
cstr(new_account.account_currency),
) != (
cint(old_account.is_group),
old_account.root_type,
old_account.company,
cstr(old_account.account_currency),
):
throw(
_(
"""Merging is only possible if following properties are same in both records. Is Group, Root Type, Company"""
)
msg=_(
"""Merging is only possible if following properties are same in both records. Is Group, Root Type, Company and Account Currency"""
),
title=("Invalid Accounts"),
exc=InvalidAccountMergeError,
)

if is_group and frappe.db.get_value("Account", new, "parent_account") == old:
frappe.db.set_value(
"Account", new, "parent_account", frappe.db.get_value("Account", old, "parent_account")
)
if old_account.is_group and new_account.parent_account == old:
new_account.db_set("parent_account", frappe.get_cached_value("Account", old, "parent_account"))

frappe.rename_doc("Account", old, new, merge=1, force=1)

Expand Down
55 changes: 30 additions & 25 deletions erpnext/accounts/doctype/account/account_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,36 +56,41 @@ frappe.treeview_settings["Account"] = {
accounts = nodes;
}

const get_balances = frappe.call({
method: 'erpnext.accounts.utils.get_account_balances',
args: {
accounts: accounts,
company: cur_tree.args.company
},
});
frappe.db.get_single_value("Accounts Settings", "show_balance_in_coa").then((value) => {
if(value) {

const get_balances = frappe.call({
method: 'erpnext.accounts.utils.get_account_balances',
args: {
accounts: accounts,
company: cur_tree.args.company
},
});

get_balances.then(r => {
if (!r.message || r.message.length == 0) return;
get_balances.then(r => {
if (!r.message || r.message.length == 0) return;

for (let account of r.message) {
for (let account of r.message) {

const node = cur_tree.nodes && cur_tree.nodes[account.value];
if (!node || node.is_root) continue;
const node = cur_tree.nodes && cur_tree.nodes[account.value];
if (!node || node.is_root) continue;

// show Dr if positive since balance is calculated as debit - credit else show Cr
const balance = account.balance_in_account_currency || account.balance;
const dr_or_cr = balance > 0 ? "Dr": "Cr";
const format = (value, currency) => format_currency(Math.abs(value), currency);
// show Dr if positive since balance is calculated as debit - credit else show Cr
const balance = account.balance_in_account_currency || account.balance;
const dr_or_cr = balance > 0 ? "Dr": "Cr";
const format = (value, currency) => format_currency(Math.abs(value), currency);

if (account.balance!==undefined) {
node.parent && node.parent.find('.balance-area').remove();
$('<span class="balance-area pull-right">'
+ (account.balance_in_account_currency ?
(format(account.balance_in_account_currency, account.account_currency) + " / ") : "")
+ format(account.balance, account.company_currency)
+ " " + dr_or_cr
+ '</span>').insertBefore(node.$ul);
}
if (account.balance!==undefined) {
node.parent && node.parent.find('.balance-area').remove();
$('<span class="balance-area pull-right">'
+ (account.balance_in_account_currency ?
(format(account.balance_in_account_currency, account.account_currency) + " / ") : "")
+ format(account.balance, account.company_currency)
+ " " + dr_or_cr
+ '</span>').insertBefore(node.$ul);
}
}
});
}
});
},
Expand Down
119 changes: 67 additions & 52 deletions erpnext/accounts/doctype/account/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
import frappe
from frappe.test_runner import make_test_records

from erpnext.accounts.doctype.account.account import merge_account, update_account_number
from erpnext.accounts.doctype.account.account import (
InvalidAccountMergeError,
merge_account,
update_account_number,
)
from erpnext.stock import get_company_default_inventory_account, get_warehouse_account

test_dependencies = ["Company"]
Expand Down Expand Up @@ -47,49 +51,53 @@ def test_rename_account(self):
frappe.delete_doc("Account", "1211-11-4 - 6 - Debtors 1 - Test - - _TC")

def test_merge_account(self):
if not frappe.db.exists("Account", "Current Assets - _TC"):
acc = frappe.new_doc("Account")
acc.account_name = "Current Assets"
acc.is_group = 1
acc.parent_account = "Application of Funds (Assets) - _TC"
acc.company = "_Test Company"
acc.insert()
if not frappe.db.exists("Account", "Securities and Deposits - _TC"):
acc = frappe.new_doc("Account")
acc.account_name = "Securities and Deposits"
acc.parent_account = "Current Assets - _TC"
acc.is_group = 1
acc.company = "_Test Company"
acc.insert()
if not frappe.db.exists("Account", "Earnest Money - _TC"):
acc = frappe.new_doc("Account")
acc.account_name = "Earnest Money"
acc.parent_account = "Securities and Deposits - _TC"
acc.company = "_Test Company"
acc.insert()
if not frappe.db.exists("Account", "Cash In Hand - _TC"):
acc = frappe.new_doc("Account")
acc.account_name = "Cash In Hand"
acc.is_group = 1
acc.parent_account = "Current Assets - _TC"
acc.company = "_Test Company"
acc.insert()
if not frappe.db.exists("Account", "Accumulated Depreciation - _TC"):
acc = frappe.new_doc("Account")
acc.account_name = "Accumulated Depreciation"
acc.parent_account = "Fixed Assets - _TC"
acc.company = "_Test Company"
acc.account_type = "Accumulated Depreciation"
acc.insert()
create_account(
account_name="Current Assets",
is_group=1,
parent_account="Application of Funds (Assets) - _TC",
company="_Test Company",
)

create_account(
account_name="Securities and Deposits",
is_group=1,
parent_account="Current Assets - _TC",
company="_Test Company",
)

create_account(
account_name="Earnest Money",
parent_account="Securities and Deposits - _TC",
company="_Test Company",
)

create_account(
account_name="Cash In Hand",
is_group=1,
parent_account="Current Assets - _TC",
company="_Test Company",
)

create_account(
account_name="Receivable INR",
parent_account="Current Assets - _TC",
company="_Test Company",
account_currency="INR",
)

create_account(
account_name="Receivable USD",
parent_account="Current Assets - _TC",
company="_Test Company",
account_currency="USD",
)

doc = frappe.get_doc("Account", "Securities and Deposits - _TC")
parent = frappe.db.get_value("Account", "Earnest Money - _TC", "parent_account")

self.assertEqual(parent, "Securities and Deposits - _TC")

merge_account(
"Securities and Deposits - _TC", "Cash In Hand - _TC", doc.is_group, doc.root_type, doc.company
)
merge_account("Securities and Deposits - _TC", "Cash In Hand - _TC")

parent = frappe.db.get_value("Account", "Earnest Money - _TC", "parent_account")

# Parent account of the child account changes after merging
Expand All @@ -98,30 +106,28 @@ def test_merge_account(self):
# Old account doesn't exist after merging
self.assertFalse(frappe.db.exists("Account", "Securities and Deposits - _TC"))

doc = frappe.get_doc("Account", "Current Assets - _TC")

# Raise error as is_group property doesn't match
self.assertRaises(
frappe.ValidationError,
InvalidAccountMergeError,
merge_account,
"Current Assets - _TC",
"Accumulated Depreciation - _TC",
doc.is_group,
doc.root_type,
doc.company,
)

doc = frappe.get_doc("Account", "Capital Stock - _TC")

# Raise error as root_type property doesn't match
self.assertRaises(
frappe.ValidationError,
InvalidAccountMergeError,
merge_account,
"Capital Stock - _TC",
"Softwares - _TC",
doc.is_group,
doc.root_type,
doc.company,
)

# Raise error as currency doesn't match
self.assertRaises(
InvalidAccountMergeError,
merge_account,
"Receivable INR - _TC",
"Receivable USD - _TC",
)

def test_account_sync(self):
Expand Down Expand Up @@ -400,11 +406,20 @@ def create_account(**kwargs):
"Account", filters={"account_name": kwargs.get("account_name"), "company": kwargs.get("company")}
)
if account:
return account
account = frappe.get_doc("Account", account)
account.update(
dict(
is_group=kwargs.get("is_group", 0),
parent_account=kwargs.get("parent_account"),
)
)
account.save()
return account.name
else:
account = frappe.get_doc(
dict(
doctype="Account",
is_group=kwargs.get("is_group", 0),
account_name=kwargs.get("account_name"),
account_type=kwargs.get("account_type"),
parent_account=kwargs.get("parent_account"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def make_closing_entries(closing_entries, voucher_name, company, closing_date):
}
)
cle.flags.ignore_permissions = True
cle.flags.ignore_links = True
cle.submit()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ frappe.ui.form.on('Accounting Dimension', {
};
});

frm.set_query("offsetting_account", "dimension_defaults", function(doc, cdt, cdn) {
let d = locals[cdt][cdn];
return {
filters: {
company: d.company,
root_type: ["in", ["Asset", "Liability"]],
is_group: 0
}
}
});

if (!frm.is_new()) {
frm.add_custom_button(__('Show {0}', [frm.doc.document_type]), function () {
frappe.set_route("List", frm.doc.document_type);
Expand Down
Loading