I'm interested in creating a billing module to generate monthly bills for my business customers (Not the same as recurring billing!).

I'm using both a website and regular in store POS, which is connected to magento. When a business registers as a customer, they are allowed to order goods in store or online and receive them without paying upfront. At the end of each month, a bill is generated showing all the customer orders; the date each was ordered, items ordered, the price and total due to be paid.

I was able to allow the business customer group to place orders without paying by using an extension that allows me to set a specific payment method for a specified customer group (in this case business).

NEEDS: Now the next part of the puzzle is to find a way to generate a pdf for each business customer, displaying their account information, orders place within that month and the total due to be paid. This can then be printed or emailed to each customer.

I have searched high and low for an extension that is at least close to what i need, but i was unsuccessful in finding one.

Current Magento Process enter image description here

As you can see, with the current Magento system an invoice and shipment has to be created for each order.

SOLUTION: I believe 1 solution could be to group each business customers orders under 1 invoice# each month, so i can generate that one invoice showing the array of order items for that period. after which a new invoice# will be assigned for the new month, which that months orders will be grouped under, repeating the process.

Illustration enter image description here

so essentially, when a business customer places an order, it will automatically do the invoicing placing the order under that months invoice number. at the end of that month the bill is generated and sent to the business, when payment is received, the shipping process is done to completing the process.

Is this a solution/workflow that will work within the magento system or do i need to come up with another solution?

any help will be appreciated. Thanks...

  • I have this exact same business need. And I cannot find an extension that seems to do this. Did you ever find a solution that works? Thanks for any advice you can pass along. Kind Regards, Roy
    – Roy Grady
    Oct 20, 2018 at 18:19

2 Answers 2


I think that a good solution could be to use an external instrument to make invoices.


Because there are a lot of magento methods that assume that an invoice could be related only to a single order like.


This function exists in a lot of methods and assume that value is not a collection (invoice obj or false). Asking this question before start to develop has been very cleaver before to get the road to the hell!

Rewriting all these methods could be very frustrating!

I suggest you to evalutate an other system to send invoice with a cron and a REST/API sending every month order by customer and disable in your frontend any relation to the invoice (email sending and download in customer area).

  • Interesting... thanks for the feedback. Are there any external systems you could recommend?
    – Nxlevel
    Sep 12, 2015 at 17:09
  • Instead of modifying how order->invoice works, what if i created a new link in the chain called "MBill" that groups the invoices/orders, so i can keep track of the mbills paid, change the status of the array, etc. This way i get the features i want and dont affect the current magento method like you mentioned. @antonino
    – Nxlevel
    Sep 12, 2015 at 17:25
  • Multiple bills merged in a group? Could be this doesn't produce a single bill anyway. If you need to produce a legal document (an invoice) is quite different. And doesn't fit with your initial request. There are a lot of system to manage invoice. I feel confortable with Debitoor: good for small companies. Look for someone offering a good REST Api interface. Sep 12, 2015 at 17:30

The solution would be to create a new invoice type, called something like 'group invoice'.

This group invoice can include all invoices in one PDF file, an show a total for all invoices on the first page.

That way there's no need to rewrite existing Magento functionality, but you can still let customer easily send all invoices at once with a simple overview for easy payment.

Is this an idea maybe?

  • yes, it does sound like a good idea to me. I actually came up with the same concept a few minutes ago and asked Antonino if it would work, then realized you were proposing the same thing. It does sound a bit tricky, but i'm gonna try and attempt it. If any of you are up for a collaboration, please let me know! @Milan
    – Nxlevel
    Sep 12, 2015 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.