Skip to content

Conversation

@olivercastro
Copy link

@olivercastro olivercastro commented Dec 17, 2020

Summary of the issue
Products with custom options reflecting twice in Dibs Dashboard when creating an invoice.

Steps to reproduce

  • Place an order with 2 products with distinct custom options (SKUs must be the same)
  • Create a separate invoice for each products
  • Check Dibs Dashboard

Expected Result

  • Should only charge 2 items in DIBs dashboard

Actual Result

  • Charged 2 items with 1 reserved item in DIBs dashboard

Reason:

  • Incorrect usage of method getId. The getId method would return distinct values equivalent to their table values for
    \Magento\Sales\Model\Order\Invoice\Item = sales_invoice_item
    \Magento\Sales\Model\Order\Creditmemo\Item = sales_creditmemo_item
    \Magento\Sales\Model\Order\Item = sales_order_item

Always use quote_item_id

martinSternelius pushed a commit that referenced this pull request May 21, 2021
fix: 🐛 Fix qty selector in checkout (thx kasem)

Approved-by: Jose Sinisterra <jose@nordicwebteam.se>
konrad-konieczny added a commit that referenced this pull request Mar 31, 2025
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

Successfully merging this pull request may close these issues.

1 participant