Skip to content

Commit

Permalink
Merge branch 'gitlab-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason authored and Mason committed Nov 14, 2019
2 parents e35ca6c + 4129be2 commit 44ef9c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Paymentwall module for WHMCS.

### Requirement
* Tested on WHMCS v5.3.14, v6.0.1 , v7.1.1, 7.4.1, 7.4.2
* Tested on WHMCS v5.3.14, v6.0.1 , v7.1.1, 7.4.1, 7.4.2, 7.7.1
* PHP 5.6 or greater

# Installation
Expand Down
2 changes: 1 addition & 1 deletion src/modules/gateways/brick.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Paymentwall for WHMCS
* Plugin URI: https://docs.paymentwall.com/modules/whmcs
* Description: Official Paymentwall module for Prestashop.
* Version: v1.6.2
* Version: v1.6.3
* Author: The Paymentwall Team
* Author URI: http://www.paymentwall.com/
* License: The MIT License (MIT)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/gateways/paymentwall.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Paymentwall for WHMCS
* Plugin URI: https://docs.paymentwall.com/modules/whmcs
* Description: Official Paymentwall module for Prestashop.
* Version: v1.6.2
* Version: v1.6.3
* Author: The Paymentwall Team
* Author URI: http://www.paymentwall.com/
* License: The MIT License (MIT)
Expand Down
7 changes: 6 additions & 1 deletion src/modules/gateways/paymentwall/helpers/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ function getHostIdFromInvoice($invoiceId) {
function getRecurringBillingValuesFromInvoice($invoiceid) {
global $CONFIG;

if( !function_exists("getBillingCycleMonths") )
{
include_once(ROOTDIR . "/includes/invoicefunctions.php");
}

$firstcycleperiod = $firstcycleunits = "";
$invoiceid = (int)$invoiceid;
$result = select_query("tblinvoiceitems", "count(tblinvoiceitems.relid) as count_recurring", array("invoiceid" => $invoiceid, "type" => "Hosting", "billingcycle" => array("sqltype" => "NEQ", "value" => "One Time")), "tblinvoiceitems`.`id", "ASC", "", "tblhosting ON tblhosting.id=tblinvoiceitems.relid");
Expand Down Expand Up @@ -170,7 +175,7 @@ function getRecurringBillingValuesFromInvoice($invoiceid) {
require ROOTDIR . "/includes/invoicefunctions.php";
}

$proratavals = getProrataValues($billingcycle, 0, $proratadate, $proratachargenextmonth, $orderday, $ordermonth, $orderyear);
$proratavals = getProrataValues($billingcycle, 0, $proratadate, $proratachargenextmonth, $orderday, $ordermonth, $orderyear, $userid);
$firstcycleperiod = $proratavals['days'];
$firstcycleunits = "Days";
}
Expand Down

0 comments on commit 44ef9c5

Please sign in to comment.