Deepesh Garg
10b239ec50
perf: Add indexes in stock queries and speed up bin updation #27758
...
perf: Add indexes in stock queries and speed up bin updation
(cherry picked from commit 6f107da165 )
2021-10-12 14:46:26 +00:00
Ankush Menat
b6dc71679e
fix: remove transaction commit from tests
...
(cherry picked from commit 8d69ec72a6 )
2021-10-12 16:41:48 +05:30
Ankush Menat
5bdb6041b9
refactor: rollback after full test
...
(cherry picked from commit acdb26a4bb )
2021-10-12 16:41:48 +05:30
Ankush Menat
89828defc5
test: add custom TestCase class and use in stock
...
(cherry picked from commit 06fa35a9c1 )
2021-10-12 16:41:48 +05:30
Noah Jacob
d262d0ac27
refactor: updated onboarding cards and tours
...
(cherry picked from commit f5e0cad6a1 )
2021-10-11 10:04:40 +00:00
mergify[bot]
091c2f3023
fix(perf): index creation on voucher_detail_no ( #27866 ) ( #27875 )
...
voucher_detail_no is supposed to have an index, it was added on
on_doctype_update function of table, however this function is only
called if DocType itself is updated and `on_update` is called on
DocType. Stock ledger Entry doctype hasn't changed since addition of
this index in function.
Before: Lack of this index was causing full table scan in
get_future_sle_to_fix function. (~50 seconds in a reposting job)
After: Single row is fetched (~0.5 second in full reposting job)
Learnings:
1. Add simple indexes via doctype only
2. For complex indexes always change doctype.json file for it to take
effect.
(cherry picked from commit 6019f60d0a )
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-10-08 17:19:41 +05:30
mergify[bot]
4e6d588ae1
fix: remove readonly from billing address ( #27873 )
...
(cherry picked from commit 41fefa356f )
Co-authored-by: 18alantom <2.alan.tom@gmail.com >
2021-10-08 15:08:45 +05:30
mergify[bot]
bad489426a
feat: (Stock Reco) Ignore Empty Stock while fetching items from warehouse ( #27848 )
...
- Added checkbox to `Fetch Items from Warehouse` dialog to ignore empty stock
- fix: Items fetched twice due to Item Defaults
- Improved code readability
(cherry picked from commit 533ee9a401 )
Co-authored-by: marination <maricadsouza221197@gmail.com >
2021-10-07 20:28:08 +05:30
mergify[bot]
dd0cefbeb9
refactor: Clean up mutable defaults and add CI check ( #27828 ) ( #27841 )
...
* refactor: Clean up mutable defaults and add CI check
(cherry picked from commit 772d4753e7 )
Co-authored-by: Chillar Anand <chillar@avilpage.com >
2021-10-07 09:57:35 +00:00
mergify[bot]
56b58cbeea
fix: use ceil in case of whole uoms for reorder qty ( #27834 ) ( #27838 )
...
* fix: use ceil in case of whole uoms for reorder qty
* fix: cache uom query
(cherry picked from commit d4b2471cea )
Co-authored-by: Alan <2.alan.tom@gmail.com >
2021-10-06 18:54:22 +05:30
mergify[bot]
7e018f94ce
fix: batch_no not mapped from PR to Stock Entry ( #27804 )
...
(cherry picked from commit 9613af6c4e )
Co-authored-by: Noah Jacob <noahjacobkurian@gmail.com >
2021-10-05 14:39:36 +05:30
Ankush Menat
df1f8fddf6
fix: using DN for transfer w/o internal customer ( #27798 )
...
This used to be work before though not "advertised", since a lot of
users have started using it as feature, it can't be broken now.
2021-10-05 14:21:27 +05:30
mergify[bot]
bebd77c27d
fix: add (uom, brand) Item details in an Item Price ( #27561 ) ( #27795 )
...
* fix: add (uom, brand) and update (uom) Item details in an Item Price
* fix: order of query interpolation args
Co-authored-by: Marica <maricadsouza221197@gmail.com >
* fix: named interpolation, remove item price
* fix: sql error
Co-authored-by: Marica <maricadsouza221197@gmail.com >
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
(cherry picked from commit 7da777880b )
Co-authored-by: Alan <2.alan.tom@gmail.com >
2021-10-05 13:28:43 +05:30
mergify[bot]
91d269fe1a
fix: set item uom as stock_uom if it isn't set ( #27623 ) ( #27780 )
...
* fix: set item uom as stock_uom if it isn't set
(cherry picked from commit 5c372202d5 )
Co-authored-by: Alan <2.alan.tom@gmail.com >
2021-10-04 22:41:12 +05:30
mergify[bot]
23431cf261
fix: option to limit reposting in certain timeslot ( #27725 ) ( #27726 )
...
(cherry picked from commit a04f9c904e )
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-10-01 13:56:00 +05:30
mergify[bot]
471a8ddce0
fix: distribution of additional costs in mfg stock entry ( #27629 ) ( #27706 )
...
* refactor: remove unnecessary list comprehensions
* fix: correct cost distribution logic
While apportioning costs same condition should be present on both sides
so total value is representative of all items to be apportioned.
Here while calculating incoming_items_cost only FG items are considered,
but while apportioning all items with to_warehouse are considered.
Solution: only apportion additional cost on FG items
* test: test cost distribution
* fix: patch for additional cost
fix(patch): consider PCV while patching
- consider Period closing voucher while patching
- recomute rates for SLE of affected stock entries
consider only FG/scrap item SLEs for recomputation of rates
* fix: remove client side logic for addn cost
All of this is done in python code hence removed client side code.
(cherry picked from commit 4685ed5a8c )
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-09-30 11:20:09 +05:30
Frappe PR Bot
633847c514
fix: Ignore user permission for Represents Company field in Sales and Purchase docs ( #27684 ) ( #27695 )
...
* fix: Ignore user permission for Represents Company field in Sales and Purchase docs
* fix: Ignore user permission for fiscal year company
(cherry picked from commit b39f8a6215 )
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com >
2021-09-29 20:26:16 +05:30
Frappe PR Bot
745abef0e7
fix: set item.qty as mandatory in picklist ( #27680 ) ( #27682 )
...
(cherry picked from commit b91333afdd )
Co-authored-by: Alan <2.alan.tom@gmail.com >
2021-09-28 12:24:55 +05:30
Ganga Manoj
1ba4afa986
fix: Set parent_detail_docname to prevent overwriting Packed/Bundle Items on saving ( #27571 )
2021-09-20 21:36:07 +05:30
Frappe PR Bot
6ed40463a0
fix: unecessary keyword args were passed in mapper functions ( #27563 ) ( #27565 )
...
(cherry picked from commit e03d9aa889 )
Co-authored-by: Saqib <nextchamp.saqib@gmail.com >
2021-09-17 13:11:54 +05:30
Frappe PR Bot
e990bb8816
fix: Remove duplicates from customer_code field (bp #27555 )
...
(cherry picked from commit 41f11eca72 )
Co-authored-by: Marica <maricadsouza221197@gmail.com >
2021-09-17 05:15:03 +00:00
Frappe PR Bot
450e1e8ed4
fix: no validation on item defaults ( #27549 )
...
* fix: no validation on item defaults (#27393 )
* fix: no validation on item defaults
* fix: cache value while validating
* test: item default company relation
* fix: reorder validations
* refactor: add guard conditions on update_defaults
* test: add default warehouse for item group
* fix: validate item defaults for item groups
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
(cherry picked from commit 5eba1ccd51 )
# Conflicts:
# erpnext/setup/doctype/item_group/item_group.py
# erpnext/stock/doctype/item/item.py
* fix: resolve conflicts
Co-authored-by: Saqib <nextchamp.saqib@gmail.com >
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-09-16 12:25:39 +00:00
Frappe PR Bot
adc5bf7b9c
Merge pull request #27543 from frappe-pr-bot/backport/version-13-hotfix/27538
...
fix: Validate if item exists on uploading items in stock reco
2021-09-16 16:07:56 +05:30
Frappe PR Bot
8b3ef8e96e
test: automated test for running all stock reports ( #27510 ) ( #27522 )
...
* test: automated test for running all stock reports
These test do not assert correctness, they just check that "execute" function
is working with sane filters.
* test: make report execution test modular
(cherry picked from commit 70c203d19e )
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-09-15 22:23:07 +05:30
Frappe PR Bot
0fb112107f
fix: not able to submit stock entry with 350 items ( #27523 ) ( #27526 )
...
(cherry picked from commit e6a1ad8016 )
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com >
2021-09-15 21:06:44 +05:30
Frappe PR Bot
a87cc12024
feat: provision to add scrap item in job card ( #27483 ) ( #27512 )
...
(cherry picked from commit c5a77f60ed )
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com >
2021-09-15 17:17:59 +05:30
Marica
d76e5dcb93
Merge pull request #27486 from marination/job-card-excess-transfer-hotfix
...
fix: Handle Excess/Multiple Item Transfer against Job Card
2021-09-14 17:57:39 +05:30
Nabin Hait
10754831c3
fix: Maintain same rate in Stock Ledger until stock become positive ( #27227 )
...
* fix: Maintain same rate in Stock Ledger until stock become positive
* fix: Maintain same rate in Stock Ledger until stock become positive
2021-09-14 13:34:36 +05:30
Saqib
bb8d90d741
feat: (get_items_from) filter material request item in purchase order ( #24725 )
2021-09-13 11:46:00 +05:30
Frappe PR Bot
00c4e346c7
fix(ux): clean invalid fields from variant setting ( #27442 )
...
* fix(ux): clean invalid fields from variant setting (#27412 )
(cherry picked from commit 6ef879fca2 )
# Conflicts:
# erpnext/stock/doctype/item_variant_settings/item_variant_settings.js
* fix: resolve conflicts
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-09-12 16:41:31 +05:30
Frappe PR Bot
74fa6fab4c
fix(ux): apply proper filtering in stock reports ( #27411 ) ( #27443 )
...
* fix(ux): apply proper filtering in stock reports
Stock Balance: apply company filter to warehouse field
Stock Ageing: apply company filter to warehouse field
* fix: unnecessary parens
Co-authored-by: Alan <2.alan.tom@gmail.com >
(cherry picked from commit d743c41b54 )
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-09-12 16:41:17 +05:30
Deepesh Garg
70c5533646
fix: Website item patch fixes
2021-09-09 09:47:18 +05:30
Marica
255155c5b8
fix: Check if Item is serialised before trying to fetch SN and set SO in it ( #27358 )
...
(cherry picked from commit 61a1356109 )
2021-09-07 09:13:34 +00:00
Frappe PR Bot
61e71d45fa
fix: Dont fetch Stopped/Cancelled MRs in Stock Entry Get Items dialog ( #27326 ) ( #27354 )
...
(cherry picked from commit 0f2a52078c )
Co-authored-by: Marica <maricadsouza221197@gmail.com >
2021-09-06 13:34:50 +05:30
Frappe PR Bot
e9da4ed34d
fix: manually added weight per unit reset to zero after save ( #27330 ) ( #27338 )
...
(cherry picked from commit 7b4a65484a )
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com >
2021-09-03 22:54:49 +05:30
Chillar Anand
4b2be2999f
chore: Cleanup imports ( #27320 )
...
* chore: Added isort to pre-commit config
* chore: Sort imports with isort
* chore: Remove imports with pycln
* chore: Sort imports with isort
* chore: Fix import issues
* chore: Fix sider issues
* chore: linting
* chore: linting / sorting import
from ecommerce refactor merge
* ci: dont allow unused imports
* chore: sort / clean ecommerce imports
Co-authored-by: Ankush Menat <ankush@iwebnotes.com >
2021-09-03 18:57:43 +05:30
Marica
853f479f58
Merge branch 'version-13-hotfix' into e-commerce-refactor
2021-09-03 13:47:30 +05:30
GangaManoj
debffbfb2d
fix: Trim trailing whitespaces
2021-09-02 20:53:53 +05:30
GangaManoj
17bf32d8dc
fix: Add Product Bundle field in Items table
2021-09-02 20:04:51 +05:30
GangaManoj
c757198d8b
fix: Make Rate read-only by default
2021-09-02 20:04:25 +05:30
GangaManoj
18680990bf
fix: Display Packed/Bundle Items table only if it exists
2021-09-02 20:03:50 +05:30
GangaManoj
bb7ad885da
fix: Hide Rate of Bundle Items while printing
2021-09-02 20:02:35 +05:30
GangaManoj
288d0191ab
fix: Make Rate column read only by default
2021-09-02 20:02:35 +05:30
GangaManoj
1ecec7154b
fix: Enable Fetch If Empty for Rate
2021-09-02 20:02:35 +05:30
GangaManoj
2b56e62805
fix: Calculate Product Bundle price based on the prices of its child items
2021-09-02 20:02:35 +05:30
GangaManoj
084b27bb34
fix: Return if there are no Items
2021-09-02 20:02:35 +05:30
GangaManoj
8478a83148
fix: Only update Product Bundle prices if 'Calculate Product Bundle Price based on Child Items' Rates' is enabled
2021-09-02 19:58:47 +05:30
GangaManoj
58ef1e30a5
fix: Update Product Bundle rate based on its updated amount
2021-09-02 19:51:16 +05:30
GangaManoj
c37dc7ca33
fix: Update Product Bundle price based on the rates of its child Items
2021-09-02 19:51:16 +05:30
GangaManoj
0967d226ed
fix: Add editable Rate column
2021-09-02 19:51:16 +05:30