- Renamed public function`update_new_bom` to `update_new_bom_in_bom_items`
- Replaced `get_cached_doc` with `get_doc`
- Removed click progress bar (drive through update log)
- Removed `bom_obj.update_new_bom()`, was redundant. Did same job as `update_new_bom_in_bom_items`
- Removed `update_new_bom()` in `bom.py`, unused.
- Prettier query formatting
- `update_type` annotated as non optional Literal
- Removed redundant use of JobTimeoutException
- Corrected type annotations in `create_bom_update_log()`
(cherry picked from commit 620575a901)
# Conflicts:
# erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
- Added Typing
- Moved all job business logic to bom update log
- Added `run_bom_job` that handles errors and runs either of two methods
- UX: Replace button disabled until both inputs are filled
- Show log creation message on UI for correctness
- APIs return log document as result
- Converted raw sql to QB
(cherry picked from commit cff91558d4)
# Conflicts:
# erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
- Created BOM Update Log that will handle queued job status and failures
- Moved validation and BG job to thus new doctype
- BOM Update Tool only works as an endpoint
(cherry picked from commit 4283a13e5a)
# Conflicts:
# erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
* fix: Dont set `idx` while adding WO items to Stock Entry
- `idx` must be computed by base document's `self.append()` function, so do not set it
(cherry picked from commit a787ebb732)
# Conflicts:
# erpnext/stock/doctype/stock_entry/stock_entry.py
* chore: Remove redundant idx query and value setting
- idx can be removed from `select_columns` as it is already in the main query
- setting idx to '' is not required as it is not used further
(cherry picked from commit 639d380c1f)
# Conflicts:
# erpnext/stock/doctype/stock_entry/stock_entry.py
* test: idx mapping correctness
(cherry picked from commit fa3b953cf7)
* fix: Linter
(cherry picked from commit b5ad626d23)
* fix: resolve conflicts
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
* fix(lead): reload address and contact before updating their links
They might have changed since they were created. Backport of #29966.
* refactor: reload contact after insert
- status doesn't change to Paid if the entire required amount is already covered via linked advances
- status doesn't change to Paid if the claim is partially paid via advances
- patch to update such uncancelled claims to Paid