Commission invoices

 
If the Commission functionality is enabled in the ROI tab of Site Configuration, then any commission invoices generated will be shown here.
 
When a booking is made, if the settings allow for charging commission, then an orphan invoice is created (by j07010commission_lineitem_insert.class.php) and assigned to the first property manager who's assigned to that property, if that manager isn't a super property manager.
 
The distinction is made because we think it would be improper for a site manager (in the guise of a super property manager) to be able to create bookings for a property, then reap the commission from that booking.
 
Jomres has a feature called Pseudo-cron functionality. It works a bit like cron jobs for 'nix in that it's designed to trigger jobs at certain intervals. The invoice p-cron (j06000cron_invoice.class.php)* is triggered to happen daily and when it does the orphan invoices are trawled through, and an invoice is added for each manager who has orphan line items. The line items are then added to this invoice (and deleted from the orphan line items table) and the manager is emailed.
 
You can manually trigger these cron jobs to happen by going to the administrator -> jomres -> pseudo-cron page and clicking on the link "invoice". This will open a new window with no output (unless you've edited the script to show some).
 
*Note that this plugin is also the one that suspends managers for non-payment of bills, if you find that you want to see that particular functionality too.
This document is copyright Vince Wooll/Woollyinwales IT, 2011. All rights reserved.