medusa icon indicating copy to clipboard operation
medusa copied to clipboard

feat: add a line item to an order edit

Open fPolic opened this issue 3 years ago • 1 comments

What

  • Implement adding a line item to order (edit)

How

  • by implementing the following "flow"
    • checking the inventory
    • generate a line item
    • computing line item adjustments for that line item
    • creating tax lines
    • creating a change record

Testing

  • integration tests
    • check if line item and order item change objects are created (with correct tax lines)
    • line item adjustments are generated if discount is applied to cart
  • unit tests
    • ensure that methods from Inventory, LineItem, LineItemAdjustment etc. services are called

RESOLVES CORE-495

fPolic avatar Sep 21 '22 15:09 fPolic

⚠️ No Changeset found

Latest commit: 68383a2c0688dd5d060b0d22af55d467254f6129

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Sep 21 '22 15:09 changeset-bot[bot]