Add possibility to alter stock transaction field values in LocalStockTransactionEvent

Created on 22 July 2024, 5 months ago

Problem/Motivation

We'd like to add extra values to data automatically via code when we subscribe to LocalStockTransactionEvents::LOCAL_STOCK_TRANSACTION_CREATE. Right now it is not possible, there are no setters in the event's class. We have no other choice than to patch this module, or override the commerce_stock.local_stock_updater service completely to achieve that right now. It would be better to alter it in that LocalStockTransactionEvent object in a custom module.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024