Handle commercial lead prices

This commit is contained in:
Almira Krdzic
2018-10-11 07:12:53 +02:00
parent 84cd11f9c9
commit b53fbe5402
21 changed files with 1278 additions and 232 deletions

View File

@@ -6,13 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php
$value = $pricing_rule['minimal_services_price'];
if ($pricing_rule['principal_amount'] > 0 && $pay_type['package_pay_period'] > 0) {
$value += wiaas_PMT(
Wiaas_Pricing::INTEREST_RATE,
$pay_type['package_pay_period'],
$pricing_rule['principal_amount']);
}
$value = $pricing_rule['minimal_recurrent_price'];
?>
<tr>