Class: Spree::StockTransfers::Update
- Includes:
- Receivables::DraftEditing
- Defined in:
- app/workflows/spree/stock_transfers/update.rb
Overview
Edits a draft transfer. Once the box is marked ready what is in it is a
matter of record, so this refuses anything past draft rather than
quietly rewriting a document the warehouse is already acting on.
Instance Method Summary collapse
Methods inherited from Workflow
#call, define_argument_readers, #errors, #halt!, hooks, inherited, model_name, #read_attribute_for_validation, #reject!, workflow_key
Methods included from Spree::ServiceModule::Base
Methods included from Workflow::ControlFlow
Instance Method Details
#perform(stock_transfer:, attributes: {}, items: nil) ⇒ Object
16 17 18 19 |
# File 'app/workflows/spree/stock_transfers/update.rb', line 16 def perform(stock_transfer:, attributes: {}, items: nil) super edit end |