1. 20 Feb, 2025 30 commits
  2. 18 Feb, 2025 4 commits
    • Titouan Soulard's avatar
      erp5_trade: rework Inventory workflow · f73378ac
      Titouan Soulard authored
      In order to have Inventory Offset Lines, we want the user to be able to check
      the generated lines before validating. This commit therefore adds an
      intermediate state `planned`, which will be used to trigger generation of
      Simulation Movements and building of the offset lines.
      
      Some other small changes have been done to make the actions' names more clear
      and adhere to ERP5 standards, but all keep backward compatiblity: previous states
      have been kept, and previously validated inventories are now recorded so that
      no Simulation Movements will be generated that would impact stock values.
      f73378ac
    • Titouan Soulard's avatar
      b809c0b6
    • Titouan Soulard's avatar
      erp5_advanced_trade: delete script `Movement_isQuantityEditable` · d3195baf
      Titouan Soulard authored
      The script now has a drop-in replacement in `erp5_trade` which works as-is even
      in the case of advanced trade (calls `Movement_isQuantityEnabled`). Henceforth,
      the custom script in `erp5_advanced_trade` is not needed anymore.
      d3195baf
    • Titouan Soulard's avatar
      erp5_trade: rework `isQuantityEnabled` and `isQuantityEditable` scripts · c60c02a8
      Titouan Soulard authored
      The two scripts were a bit too independant from one another, sometimes causing
      weird behaviours. Editing a quantity now depends on the quantity being enabled,
      which happens when the line is not expected to have cells or sublines.
      
      Also enforces expected behaviour for items: if a product or service has
      *required* items, its quantity cannot be edited, since quantity of the items
      should set the quantity of the line or cell.
      c60c02a8
  3. 17 Feb, 2025 2 commits
  4. 14 Feb, 2025 4 commits