- 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
* fix: only validate qty for main non-subassy items
(cherry picked from commit 3d43c437ad)
* fix: subassembly items linked to temporary name
Production Plan tables for po_items and sub_assembly_items are prepared
client side so both dont exist at time of first save or modifying and
hence any "links" created are invalid. This change retains temporary
name so it can be relinked server side after naming is performed.
Co-Authored-By: Marica <maricadsouza221197@gmail.com>
(cherry picked from commit 5b1d6055e6)
* test: dont resubmit WO
[skip ci]
Co-authored-by: Ankush Menat <ankush@frappe.io>