Invoice for free plans

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 10 months ago - 8 years 10 months ago #64672 by Stephen
Invoice for free plans was created by Stephen
Hi Tuan
I need that invoce is going out even for free plans.
Earlier i changed the core code like this:
Code:
public static function needToCreateInvoice($row) { if ($row->amount > 0 || $row->gross_amount > 0) { return true; } else { return false; } }
to this
Code:
public static function needToCreateInvoice($row) { return true; }
in file components=>com_osmembership=>helper/helper.php (line 606, earlier it was line 202)
However changing this just result in that no invoice at all are going out.
Could you please help me and point me in the right direction were to change the code so that I have an invoice going out for all plans (even those who are free)

One more thing I saw now is that if you use the offline payment and after admin approved the subscription there is no invoice going out that says that payment is ok (just the confirmation email is coming) I also need that a new invoice is sent with confirmation that payment has been done (I know that subscribers can download it but I really need it sent by email as well)

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Last edit: 8 years 10 months ago by Stephen.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #64679 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice for free plans
Hi Stephen

That should be correct change. What version of the extension you are using ?

Tuan

Please Log in or Create an account to join the conversation.

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
8 years 10 months ago #64685 by Stephen
Replied by Stephen on topic Invoice for free plans
Hi
I´m using the latest version 2.0.0

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

Please Log in or Create an account to join the conversation.