Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download commerce_license_billing-7.x-1.0-beta2.tar.gztar.gz 45.4 KB
MD5: 18ec3182632a0e29381f4925b5e8c236
SHA-1: 4b8edb420142196259817031a19fe77a38622f9e
SHA-256: bcd9e7f0d41cff79f75f726eab5bb0cc0d79a3ea415ce0878688d2b1392c1cfd
Download commerce_license_billing-7.x-1.0-beta2.zipzip 61.14 KB
MD5: 2f8df67a64c49a2c544e09e3ed694ab4
SHA-1: 993e1feb9eb72a7a0a5b4f6372dc71ece5106bec
SHA-256: ee7c303cadba33fe7a65a4a31a68f8b3ebe5817478cf2162ae8094580af64848

Release notes

Important: If you used Advancedqueue -dev before, make sure to update to beta1, it has had critical bugfixes!

New module dependency: Views Megarow.

This release containts critical bug fixes, along with a new billing dashboard (screenshot) powered by Views Megarow.
We now also support hourly, quarterly (3 months) and half-year (6 months) billing cycles.

Note that previous bugs might have caused orphaned line items to exist in your system, you can delete them by running code like this:

// Line items referencing a non-existent order.
$ids = db_query('SELECT line_item_id FROM commerce_line_item WHERE order_id NOT IN (SELECT order_id FROM commerce_order)')->fetchAllAssoc('line_item_id');
$ids = array_keys($ids);
entity_delete_multiple('commerce_line_item', $ids);

// Line items referencing an order that doesn't reference them back.
$ids = db_query('SELECT line_item_id FROM commerce_line_item WHERE line_item_id NOT IN (SELECT commerce_line_items_line_item_id FROM field_data_commerce_line_items)')->fetchAllAssoc('line_item_id');
$ids = array_keys($ids);
entity_delete_multiple('commerce_line_item', $ids);

Changes since 7.x-1.0-beta1:

  • #2238475: The order is not set to 'completed' after charging.
  • #2245321 by askit: Recurring line item label should not be identical to title.
  • Fix recent regressions due to wrong variable names.
  • #2237915 by mindaugasd: 'Prorate prepaid product' pricing rule removes existing price components
  • #2233097 by bojanz: Expand available billing cycle periods.
  • #2238119: cl_billing_cycle_type product field not usable without the "administer licenses" permission.
  • #2237545 by bojanz | mindaugasd: Recurring order not opened after anonymous checkout.
  • Don't crash if commerce_license_billing_usage_history_clear() was called with an empty array of license ids.
  • Fix commerce_license_billing_order_refresh() edge case when no line items are produced.
  • Tweak the billing dashboard.
  • #2238791 by bojanz: Create a billing dashboard.
  • Close the billing cycle even if the order can't be closed yet, to prevent cron from requeueing.
  • Improve queue error reporting.
  • #2236975: Stop removing free charges.
  • Fix currentUsage() crash when no billing cycle could be found.
  • Add a views handler for getting usage details.
  • #2231759 by bojanz: Deleting a recurring order should delete its billing cycle.
  • Refactor the loading of a billing cycle's order.
  • #2223187: The module crashes on broken license references.
  • Type-hint license parameters.
  • #2222945 by bojanz, skek: PHP notice on module uninstall.
  • #2223311: Rewrite the order refresh logic.
Created by: bojanz
Created on: 23 Apr 2014 at 15:06 UTC
Last updated: 25 Jun 2014 at 16:48 UTC
Bug fixes
New features

Other releases