[mobile] scan for stock reconciliation
Stock Reconciliation [Mobile version]
Reconciliation option added to menu
This option menu was added to setup.py so it should be included when executing
bench execute 'beam.tests.setup.before_test'
Handling WH Scan
You can scan or select a Warehouse
The data is handled in mappers of the store, similar to how it is managed in the Move or Repack pages.
Coverage Report
@lauty95 I am not seeing a scan of any warehouse have an effect, and when I try to select form the drop down, I'm not seeing either the selection or the items in the warehouse.
@agritheory @lauty95 I was only able to use barcodes setup in Warehouses (3114794434123221501 vs Kitchen - APC). Let me know if that's the actual behaviour, or it should also allow plaintext scans.
and when I try to select form the drop down, I'm not seeing either the selection or the items in the warehouse.
I'm seeing the same behaviour, and it doesn't seem like the items are being mapped to the view correctly. @lauty95 should it be pulling from the mapped Stock Recon document directly?
@lauty95 Just tested this again - not seeing any items populate when I scan a warehouse
Debugg
I added a console.log to debugg the warehouse list
Let me know if you can see the select dropdown populated with warehouses on any other page.
Components
I temporarily added ItemCount.vue, ListItem.vue and ListVuew.vue to test some features (changes were also included in the Stonecrop PR: https://github.com/agritheory/stonecrop/pull/261)
Demo
https://github.com/user-attachments/assets/355f7864-8175-476d-996c-6c9baa73f2d3
@lauty95 Please update dependencies after release w/ Stonecrop
@lauty95 Just tested this again - not seeing any items populate when I scan a warehouse
Could you test it again? I installed a new site and it’s working for me.
If it’s still not working, I left some console.logs to help with debugging.
@lauty95 Clearing the warehouse with the [x] button does not remove the items from the list, but scanning a warehouse does populate the items in the first place.
Scanning an item does not increment its quantity which it should.
Scanning a new item does not correctly add it to the list (I scanned Butter, which was not kept in this warehouse)
Discussion point:
I'm not sure we should any items where the actual qty is 0, which should be part of the db query/filter?
@agritheory
Features
- x button now removes the items
- scanning an item now increments its quantity
Discussion
I added a function to get items similar to what the Stock Reconciliation Doctype does. Also, I added a filter by valuation_rate because when you try to save the list with items that don't have a valuation_rate, Frappe prevents you from saving the document.
Let me know if it's ok.
Demo
https://github.com/user-attachments/assets/d5f9de97-aaa9-4f2f-9bb1-21ea66f3c080
@lauty95 Please regenerate yarn.lock ro resolve conflict