Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception is thrown when submitting shipment for a product with custom option #1850

Closed
smoskaluk opened this issue Oct 29, 2018 · 1 comment
Assignees
Milestone

Comments

@smoskaluk
Copy link

smoskaluk commented Oct 29, 2018

Preconditions

  1. Magento MSI single stock mode and multy stock mode
  2. Simple product "Product 1" created with some qty and with custom option
    (Input Type: Drop-down,
    Option Title: custom option drop down,
    Required: Yes
    Title: Title Drop-down 1
    Price: 2.56
    Price Type: Fixed
    SKU: sku_drop_down_row_1)

Steps to reproduce

  1. Create order with Simple product "Product 1" with custom option with qty = 1 from admin
  2. Create shipment for this order

Expected result

  1. Shipment created

Actual result

1. Fatal error: Uncaught Error: Call to a member function getQuantity() on null in /var/www/html/vendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php:83 Stack trace: #0 /var/www/html/vendor/magento/module-inventory-shipping/Observer/SourceDeductionProcessor.php(115): Magento\InventorySourceDeductionApi\Model\SourceDeductionService->execute(Object(Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest)) #1 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Magento\InventoryShipping\Observer\SourceDeductionProcessor->execute(Object(Magento\Framework\Event\Observer)) #2 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\InventoryShipping\Observer\SourceDeductionProcessor), Object(Magento\Framework\Event\Observer)) #3 /var/www/html/vendor/magento/module-staging/Model/Event/Manager.php(97): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, O in /var/www/html/vendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php on line 83
@smoskaluk smoskaluk added this to the MSI Part II milestone Oct 29, 2018
@maghamed
Copy link
Contributor

when fixed, need to provide feedback in the internal Jira ticket - https://jira.corp.magento.com/browse/MAGETWO-95930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants