Author Topic: discount not calculated on invoice (version 2.0.9)  (Read 633 times)

Offline apopescu

  • Full Member
  • ***
  • Posts: 22
    • View Profile
discount not calculated on invoice (version 2.0.9)
« on: 26/March/2010, 04:47:34 PM »
Hi, when I generate the invoice for orders with discount option "Auto-Disable Discount?" set to"Yes" the discount is not being calculated on invoice.



Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,957
    • View Profile
Re: discount not calculated on invoice (version 2.0.9)
« Reply #1 on: 26/March/2010, 07:51:48 PM »
As there are various ways of creating orders and setting up discounts, could you please give me step-by-step instructions on how to reproduce the problem?

Offline apopescu

  • Full Member
  • ***
  • Posts: 22
    • View Profile
Re: discount not calculated on invoice (version 2.0.9)
« Reply #2 on: 26/March/2010, 08:21:34 PM »
I created a discount for new orders with option Auto-disable on.When making the order online with discount everything ok, it calculates the discount and total amount is right.
Then I generate the invoice and it makes it without discount - so the item bought has the normal price and there is no discount line on the invoice.
All my settings seem right.If I choose "no" for option "Auto-disable" in Discount settings there aren't problems: invoice reports the correct discount line and correct amount is calculated.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,957
    • View Profile
Re: discount not calculated on invoice (version 2.0.9)
« Reply #3 on: 27/March/2010, 08:28:56 AM »
So the order record is created automatically when someone submits your order form? If so, why is the invoice not also created automatically - why do you have to generate it yourself?

When I tried, even if I set the order form not to create an invoice (so that I would have to generate it myself), it still applied the discount.

Perhaps if you explain step-by-step what you are doing, I might be able to reproduce the problem, eg:

1) Create a new discount record
2) Set the voucher code to 'ABC'
3) Set auto disable to 'yes'
4) Save
5) Create an order form
6) Assign a product to one of the fields
7) Assign the 'discount voucher code' order value to a text field
8) Submit the form through the front end
etc.

 

anything