- Posts: 67
- Thank you received: 5
create invoice for free subscription
- gerrit
- Topic Author
- Offline
- Senior Member
-
Less
More
8 years 8 months ago #85016
by gerrit
create invoice for free subscription was created by gerrit
Will it be possible to also create invoices for free subscription plans?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
8 years 8 months ago #85059
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic create invoice for free subscription
Hi
It is not logic for generating invoice for free subscriptions, so we could not add support for it. If you want to generate invoice for free events, you will have to edit the code
Look at the file components/com_osmembership/helper/helper.php, find the method needToCreateInvoice, change it from
to
After that, it should work as expected
Tuan
It is not logic for generating invoice for free subscriptions, so we could not add support for it. If you want to generate invoice for free events, you will have to edit the code
Look at the file components/com_osmembership/helper/helper.php, find the method needToCreateInvoice, change it from
Code:
public static function needToCreateInvoice($row)
{
if ($row->amount > 0 || $row->gross_amount > 0)
{
return true;
}
return false;
}
to
Code:
public static function needToCreateInvoice($row)
{
return true;
}
After that, it should work as expected
Tuan
Please Log in or Create an account to join the conversation.
- gerrit
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
- Thank you received: 5
8 years 8 months ago - 8 years 8 months ago #85095
by gerrit
Replied by gerrit on topic create invoice for free subscription
Nope, don't work
And i know its not very logic, but in my country they are very strict about thinks like this
And i know its not very logic, but in my country they are very strict about thinks like this
Last edit: 8 years 8 months ago by gerrit.
Please Log in or Create an account to join the conversation.
- Stephen
-
- Offline
- Platinum Member
-
Less
More
- Posts: 363
- Thank you received: 25
8 years 8 months ago #85099
by Stephen
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Replied by Stephen on topic create invoice for free subscription
Hi
I to have this "not very logic" thing to deal with.
I also need invoice/receipt for free purchase. I havee not tested this after the upgrade to 2.6.0 but the code provided is the same I have used before.
But lets face the fact, It's not logical to send out an invoice for free subscriptions/merchandise but there is logic to send out an receipt for free subscriptions or free merchandise.
The difference here is that an invoice is a request for payment and a receipt is documentation that payment has been made to finalize a sale (even if it's free).
In this case the invoice is turned in to a receipt for the purchase and I'm obliged to leave a receipt for all transactions, even the free ones. And I think (i'm not sure to a 100% here) that it's the same in the whole EU.
There is a new EU directive coming out soon that says:
So i'll guess that most of us who use MemPro does not send out an invoice (except for offline payment e.g banktransfer) but sends out a receipt for the transaction made.
The ideal thing would be to have both invoice (sent out before the transaction is closed e.g before payment is done) and a receipt (sent out after that the payment is done). I'm not sure wether this is doable but it would be a great ting to have built in to MemPro.
So please take in to concideration to implement this functionality in to the component and add support for it.
I to have this "not very logic" thing to deal with.
I also need invoice/receipt for free purchase. I havee not tested this after the upgrade to 2.6.0 but the code provided is the same I have used before.
But lets face the fact, It's not logical to send out an invoice for free subscriptions/merchandise but there is logic to send out an receipt for free subscriptions or free merchandise.
The difference here is that an invoice is a request for payment and a receipt is documentation that payment has been made to finalize a sale (even if it's free).
In this case the invoice is turned in to a receipt for the purchase and I'm obliged to leave a receipt for all transactions, even the free ones. And I think (i'm not sure to a 100% here) that it's the same in the whole EU.
There is a new EU directive coming out soon that says:
the directive will start in third quarter of 2018The Directive calls for making the receipt and processing of electronic invoices in public procurement obligatory
So i'll guess that most of us who use MemPro does not send out an invoice (except for offline payment e.g banktransfer) but sends out a receipt for the transaction made.
The ideal thing would be to have both invoice (sent out before the transaction is closed e.g before payment is done) and a receipt (sent out after that the payment is done). I'm not sure wether this is doable but it would be a great ting to have built in to MemPro.
So please take in to concideration to implement this functionality in to the component and add support for it.
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.
- gerrit
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
- Thank you received: 5
8 years 8 months ago #85326
by gerrit
Replied by gerrit on topic create invoice for free subscription
Problem solved, cdn was my problem
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
8 years 8 months ago #85343
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic create invoice for free subscription
Great. Thanks for confirming
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- gerrit
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
- Thank you received: 5
8 years 7 months ago #87677
by gerrit
Replied by gerrit on topic create invoice for free subscription
Dear Tuan,
Since the new update. This solution does not work anymore??
Since the new update. This solution does not work anymore??
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
8 years 7 months ago #87690
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic create invoice for free subscription
That solution should still work. What's status of the subscription record? Is it Pending or Active?
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- gerrit
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
- Thank you received: 5
8 years 7 months ago #87698
by gerrit
Replied by gerrit on topic create invoice for free subscription
Pending, (not changed since update)
Before the update i also used pending)
Before the update i also used pending)
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
8 years 7 months ago #87726
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic create invoice for free subscription
If the status is Pending, please try to install this modified plugin to your site. It should work well
Tuan
Tuan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.