Problem/motivation

When generation promotion coupons with FIX price amount discount, module calculate discount % from unit price instead of total item price (for all quantities).

Steps to reproduce

  • create discount with fix amount per item
  • add to order item with multiple quantities
  • add discount coupon
  • Submit order
  • check superfaktura administration and see wrong discount in that item

Proposed solution

for fixed amount discount calculate % from total item price

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

durifal created an issue. See original summary.

durifal’s picture

Issue summary: View changes

durifal’s picture

Assigned: durifal » Unassigned
Status: Active » Needs review
StatusFileSize
new930 bytes

I have prepare MR to fix it. Please test it. Meantime I have also prepared patch for use with composer if anybody need it.

kaszarobert’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

avpaderno’s picture

Issue summary: View changes