brotherton-erpnext/erpnext/stock/report
s-aga-r 2d8363a983
feat: Serial and Batch reservation (#35946)
* feat: add `Has Serial No` and `Has Batch No` fields in SRE

* chore: set `Has Serial No` and `Has Batch No` while creating SRE

* feat: add field `Reserved Serial and Batch` in SRE

* fix(ux): hide `Amend` button on cancelled SRE

* fix: add validation for SRE amended doc

* fix(ux): hide `Reserved Serial and Batch` Table for non-serial/batch item

* fix(ux): set `Display Depends On` for `Has Serial No` and `Has Batch No` in SRE

* fix(ux): make `serial_no` and `batch_no` fields read-only based on `has_serial_no` and `has_batch_no`

* chore: remove table `Serial and Batch Entry` fieldlabel

* fix(ux): set warehouse for new row

* fix(ux): make qty field read-only for serial item

* fix(ux): set rows qty to `1` before making the field read-only

* chore: add filters for serial no

* chore: add filters for batch no

* chore: don't show Serial NO if already selected

* chore: hide rate related fields

* feat: add field `Reservation Based On` in SRE

* chore: make `Reserved Qty` field editable in SCR

* chore: add method to get total reserved qty against a voucher

* fix: add validation for `Reserved Qty`

* fix: update SRE status and Voucher's Reserved Qty

* chore: enable `Track Changes` in SRE

* fix: add validation to prevent delivered SRE to get updated

* fix(ux): make fields `Reserved Qty` and `Reservation Based On` read-only for delivered SRE

* fix: consider voucher's delivered qty while calculating max reserved qty

* fix: add UOM validation for SRE Reserved Qty

* fix: SRE warehouse mismatch error in DN

* fix: auto cancel SRE on update if item is fully delivered for the SO

* fix: skip SRE creation for group warehouse

* feat: add `Set Warehouse` field in SO stock reservation dialog

* fix(ux): hide `Add Row` button in SO stock reservation dialog

* fix: group warehouse validation in SO

* fix(ux): don't show Batch No if already selected

* feat: add field `Auto Reserve Serial and Batch Nos` in `Stock Settings`

* refactor: SRE reserved qty validation

* feat: auto serial and batch reservation

* chore: add section for `Serial and Batch Reservation` in `Stock Settings`

* fix: make SRE sb_entries warehouse mandatory

* fix(ux): unreserved qty calculation

* fix: add validation for `Reserved Qty` against `Batch`

* refactor: combine `get_available_qty_to_reserve()` and `get_available_qty_to_reserve_batch()`

* fix: validate disabled batch

* fix: add validation to validate serial nos availability

* fix: update row qty if `Partial Reservation` is enabled

* fix: ignore reserved serial nos while getting available serial nos

* fix: add validation to prevent repeat batches

* fix(ux): add validation for duplicate Serial No

* fix: don't allow to update SRE with delivered stock

* fix: ignore reserved serial and batch if reservation based on is not Serial and Batch

* fix(ux): stock un-reservation confirmation before `Update Items`

* chore: return list instead os set

* feat: add field `Delivered Qty` in `Serial and Batch Entry`

* feat: option to get SO reserved stock in Delivery Note

* fix: ignore reserved batches while getting available batches

* chore: `conflicts`

* fix: incorrect available qty

* fix: 'str' object has no attribute 'nodes_'

* fix: `linter`

* fix(ux): hide `Get Items From > Stock Reservation` if Stock Reservation is disabled

* fix(ux): add `depends_on` for `Auto Reserve Serial and Batch Nos`

* fix(ux): hide Stock Reservation field description in submitted SO

* fix(ux): confirm before unreserve stock

* feat: option to create DN for reserved stock from SO

* fix: update delivered qty in SRE sb_entries

* fix: Delivery Note (Reserved Stock) based on Delivery Date

* fix(ux): SO `Update Items` confirmation on `Update` button click

* feat: add dialog box to select SRE to unreserve

* fix: `ZeroDivisionError` while saving the DN (Reserved Stock)

* fix: don't allow to create Pick List if stock is reserved against SO

* fix(ux): hide Create > Pick List button for SO with reserved stock

* refactor: map reserved stock by default in DN

* refactor: code cleanup and comments

* fix: don't allow Stock Reservation against SO having Pick List

* refactor: `create_stock_reservation_entries()`

* feat: add fields to hold Pick List ref in SRE

* feat: add field `Stock Reserved Qty` in Pick List Item

* feat: provision to reserve stock from Pick List against Sales Order

* fix: don't allow to update SRE if created against a Pick List

* fix(ux): confirm before unreserve stock in Pick List

* fix: don't allow to update Pick List having reserved stock

* fix: circular dependency while cancelling the DN created from Pick List with Reserved Stock

* chore: update `Max Reserve Qty` err msg to be more descriptive

* refactor: rename field `Reserve Stock on Sales Order Submission`

* fix: msg on partial reservation if disabled in stock settings

* chore: add field description for `Enable Stock Reservation`

* fix(test): `test_stock_reservation_against_sales_order`

* fix(test): `test_stock_reservation_against_sales_order`

* test: add test cases for serial and batch reservation

* fix: batch stock levels qty

* refactor: method `get_sre_reserved_qty_for_item_and_warehouse`

* feat: show `Reserved Stock` in item master stock levels

* feat: Reserved Stock Report

* fix(ux): SO stock reservation dialogs width

* refactor: get previous values from `_doc_before_save` instead of db

* fix(ux): make `Reservation Based On` read-only if created against Pick List

* feat: option to open `Reserved Stock` report from Sales Order

* fix(ux): Sales Order - Reserve and Unreserve dialog box

* fix: decrease SRE Delivered Qty on DN cancel

* fix(ux): hide `Unreserve` button once reserved stock is delivered

* chore: `linter`

* fix(test): `test_reserved_stock_report`

* test: add test case for DN cancellation

* chore: rename field `Auto Reserve Stock on Sales Order Submission`

* fix: `Insufficient Stock` error msg
2023-09-02 11:02:24 +05:30
..
batch_item_expiry_status fix: Default year start and end date in reports 2023-07-27 21:03:32 +05:30
batch_wise_balance_history perf: avoid full table scan in sle count check (#36428) 2023-07-31 22:13:47 +05:30
bom_search fix: bulk fix (~330) missing translations 2022-04-04 13:59:51 +05:30
cogs_by_item_group ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
delayed_item_report ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
delayed_order_report ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
delivery_note_trends fix: report chart field type 2022-09-26 17:47:24 +05:30
fifo_queue_vs_qty_after_transaction_comparison ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
incorrect_balance_qty_after_transaction ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
incorrect_serial_no_valuation fix: Default year start and end date in reports 2023-07-27 21:03:32 +05:30
incorrect_stock_value_report ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
item_balance item balance report (#12983) 2018-02-20 12:17:49 +05:30
item_price_stock ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
item_prices refactor: rewrite Item Prices Report queries in QB 2022-09-26 17:50:17 +05:30
item_shortage_report fix: don't show disabled items in Item Shortage Report (#36550) 2023-08-10 09:40:58 +05:30
item_variant_details ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
item_wise_price_list_rate Added brand in item price doctype, item prices report (#13900) 2018-05-03 16:23:57 +05:30
items_to_be_requested added roles in the report 2017-03-06 14:26:09 +05:30
itemwise_recommended_reorder_level fix: Default year start and end date in reports 2023-07-27 21:03:32 +05:30
material_requests_for_which_supplier_quotations_are_not_created added roles in the report 2017-03-06 14:26:09 +05:30
product_bundle_balance refactor: rewrite Product Bundle Balance Report queries in QB 2022-10-21 14:49:09 +05:30
purchase_receipt_trends fix: report chart field type 2022-09-26 17:47:24 +05:30
requested_items_to_be_transferred added roles in the report 2017-03-06 14:26:09 +05:30
reserved_stock feat: Serial and Batch reservation (#35946) 2023-09-02 11:02:24 +05:30
serial_and_batch_summary fix: Added report 'Serial and Batch Summary' to view serial / batch nos 2023-07-16 13:28:08 +05:30
serial_no_ledger ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
serial_no_service_contract_expiry added roles in the report 2017-03-06 14:26:09 +05:30
serial_no_status added roles in the report 2017-03-06 14:26:09 +05:30
serial_no_warranty_expiry added roles in the report 2017-03-06 14:26:09 +05:30
stock_ageing Stock aging report fix when called in dashboard chart (#35671) 2023-06-13 19:20:07 +05:30
stock_analytics ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
stock_and_account_value_comparison ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
stock_balance feat: Serial and Batch reservation (#35946) 2023-09-02 11:02:24 +05:30
stock_ledger fix: added valuation field type (Float/Currency) in the filter (#36866) 2023-08-29 16:53:00 +05:30
stock_ledger_invariant_check ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
stock_projected_qty feat: reserve qty against production plan raw materials in BIN 2023-05-03 18:21:23 +05:30
stock_qty_vs_serial_no_count ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
supplier_wise_sales_analytics refactor: rewrite Supplier-Wise Sales Analytics Report queries in QB 2022-10-06 17:42:31 +05:30
total_stock_summary ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
warehouse_wise_item_balance_age_and_value ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
warehouse_wise_stock_balance ci: add eslint and update linting confs 2023-07-14 18:53:02 +05:30
__init__.py moved modules inside erpnext folder 2013-12-11 10:43:52 +05:30
test_reports.py chore: fifo queue vs qty after transaction comparison report 2022-05-11 14:43:03 +05:30