Skip to content
Snippets Groups Projects

Issue #2916252 by lawxen, wim leers, mglaman, skyredwang: [PP-1] Order's...

Merged Issue #2916252 by lawxen, wim leers, mglaman, skyredwang: [PP-1] Order's...
2 unresolved threads
2 unresolved threads

Issue #2916252 by lawxen, wim leers, mglaman, skyredwang: [PP-1] Order's Adjustment can't be normalized and serialized

Closes #2916252

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
32 protected $definition;
33
34 /**
35 * {@inheritdoc}
36 */
37 public function setValue($value, $notify = TRUE): void {
38 $parent = $this->getParent();
39 if (!($parent instanceof AdjustmentItem) || $parent->isEmpty()) {
40 return;
41 }
42 $parent_values = $parent->getValue();
43 $parent_value = reset($parent_values);
44 if (!($parent_value instanceof Adjustment)) {
45 return;
46 }
47 $property_name = $this->definition->getAdjustmentProperty();
  • 37 $properties['type'] = AdjustmentPropertyDefinition::create('adjustment_property')
    38 ->setAdjustmentProperty('type')
    39 ->setLabel(t('Type'))
    40 ->setComputed(TRUE);
    41
    42 $properties['label'] = AdjustmentPropertyDefinition::create('adjustment_property')
    43 ->setLabel(t('Label'))
    44 ->setComputed(TRUE);
    45
    46 $properties['amount'] = AdjustmentPropertyDefinition::create('adjustment_property')
    47 ->setAdjustmentProperty('amount')
    48 ->setLabel(t('Amount'))
    49 ->setComputed(TRUE);
    50
    51 $properties['source_id'] = AdjustmentPropertyDefinition::create('adjustment_property')
    52 ->setAdjustmentProperty('source_id')
  • Jonathan Sacksick added 29 commits

    added 29 commits

    • 469b63eb...be78da03 - 27 commits from branch project:3.x
    • d299544e - Remove the extra adjustment properties.
    • 53a3bf25 - Merge branch '3.x' into 2916252-commerce3.0.x-orders-adjustment

    Compare with previous version

  • added 1 commit

    • dddba714 - Put back the additional properties.

    Compare with previous version

  • added 3 commits

    • 874c22df - 1 commit from branch project:3.x
    • 2e5aed8c - Remove an unused use statement.
    • 915ad1ac - Merge branch '3.x' into 2916252-commerce3.0.x-orders-adjustment

    Compare with previous version

  • Jonathan Sacksick added 11 commits

    added 11 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading