Files
erpnext/erpnext/public/js
Mihir Kandoi 4ed03748fe fix(stock): correct secondary item valuation across stock entry purposes
Backport of five fixes merged to develop, adapted to this branch, where
the field is still named `type` and the stock entry rate logic has not
been split out of set_basic_rate.

- A secondary row with no BOM link is costed out of the finished good,
  as legacy scrap was. Finished goods are rated last so a single
  validate pass sees the secondary rows' amounts. (#57732)
- Repack no longer flags secondary rows as finished goods, so each side
  takes the share the BOM declares instead of the scrap absorbing the
  finished good's percentage. (#57735)
- A BOM allocation of 0% means the row carries no cost, rather than
  falling through to the item's own valuation rate. (#57736)
- Secondary Item Type no longer waives a quality inspection on purposes
  that do not produce secondary items. (#57737)
- The BOM allocation applies to the consumption entry's cost when the
  raw material cost comes from one. (#57738)

Replaces the individual backports, which could not be cherry-picked
cleanly: every hunk needed rewriting against the pre-rename field and
the un-refactored rate logic.
2026-08-03 16:53:20 +05:30
..
2024-03-10 19:45:40 +05:30
2024-03-19 12:03:36 +01:00
2024-03-10 19:45:40 +05:30
2024-03-19 12:03:36 +01:00
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2025-05-08 14:09:06 +05:30
2024-03-10 19:45:40 +05:30
2021-05-07 14:51:05 +05:30
2024-03-10 19:45:40 +05:30
2021-05-07 14:51:05 +05:30
2026-04-13 15:30:56 +05:30
2024-03-19 12:03:36 +01:00
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30