format('M Y');
$allDownloads = $modelDownload->getUserDownloadsForMonth($this->member->member_id, $yearmonth);
$countDownloadsOverall = count($allDownloads);
if ($countDownloadsOverall > 0) {
$firstProduct = $allDownloads[0];
if ($firstProduct) {
$printMonth = new DateTime($firstProduct['yearmonth'].'01');
$printCurrentMonth = new DateTime($currentDate.'01');
if($printMonth == $printCurrentMonth) {
$isCurrentMonth = true;
} else {
$isCurrentMonth = false;
}
$sum_total_month_score = 0;
$sum_total_month = 0;
$sum_total_month_new = 0;
$sum_total_text = '';
$sum_total_payout = 0;
$sum_total_payout_new = 0;
+
+ $sum_total_month_potential_payout = 0;
+ $sum_total_potential_payout = 0;
+
?>
= $product['title']; ?>
=$product['cat_title']?>
= $product['num_downloads'] ?>
= $product['dl_pling_factor'] ?>
+
+ toCurrency($product['num_downloads'] * $product['dl_pling_factor'] / 100)); ?>
+
";
$showErrMsg = false;
if($isCurrentMonth) {
if($product['is_license_missing_now'] == 1) {
$errorMsg .= "Please specify a License";
$showErrMsg = true;
}
if($product['is_source_missing_now'] == 1) {
$errorMsg .= "Please specify a link to the online source repository";
$showErrMsg = true;
}
if($product['is_pling_excluded_now'] == 1) {
$errorMsg .= "This Product has been excluded from plings";
$showErrMsg = true;
}
$sum_plings = $product['num_plings_now'];
} else {
if($product['is_license_missing'] == 1) {
$errorMsg .= "License was not specified";
$showErrMsg = true;
}
if($product['is_source_missing'] == 1) {
$errorMsg .= "Link to the online source repository was not specified";
$showErrMsg = true;
}
if($product['is_pling_excluded'] == 1) {
$errorMsg .= "This Product has been excluded from plings";
$showErrMsg = true;
}
$sum_plings = $product['num_plings'];
}
$errorMsg .= "";
if($showErrMsg) {
echo '
';
} else {
print($currency->toCurrency($product['num_downloads'] * $product['dl_pling_factor'] / 100));
}
?>
0) {
$show_payout_new_sum = $show_payout_new_sum ;
} else {
$show_payout_new_sum = $payout_sum_new;
}
?>
toCurrency($sum_total_month_score);
+
+ $sum_total_month_potential_payout += ($product['num_downloads'] * $product['dl_pling_factor'] / 100);
+ $sum_total_potential_payout = $currency->toCurrency($sum_total_month_potential_payout);
+
if(!$showErrMsg) {
$sum_total_month += $payout_sum;
$sum_total_payout = $currency->toCurrency($sum_total_month);
$sum_total_month_new += $show_payout_new_sum;
$sum_total_payout_new = $currency->toCurrency($sum_total_month_new);
}
$sum_total_text = 'Possible payout for this month (
*):';
$payout_success = false;
if ($product['status'] == Default_Model_DbTable_MemberPayout::$PAYOUT_STATUS_COMPLETED) {
$payout_success = true;
$sum_total_payout_success = $currency->toCurrency($product['amount']);
$sum_total_text_success = 'Actually successfully paid amount: ';
}
$has_paypal = $product['paypal_mail'] ? true : false;
}
$sum_total_month_view = number_format($sum_total_month);
?>
=$sum_total_text?>
-
=$sum_total_payout?>
+
=$sum_total_potential_payout?>
+
=$sum_total_payout?>
view_member;
if(!isset($member['paypal_mail']) || $member['paypal_mail'] == '') {
$has_paypal = false;
$paypalWarning = 'You have no PayPal account configured. Please go to your settings page
here.';
} else {
$has_paypal = true;
}
} else {
$paypalWarning = 'We found no valid Paypal account for this month. That\'s why we could not pay you any money. In order to receive money for the current month, please make sure that a paypal account is registered. Go to your settings page
here.';
}
if (false == $has_paypal) {
echo '
'.$paypalWarning.'
';
}
if (($sum_total_month/100) < 1) {
echo '
We only pay out money if the total sum is over $1.
';
}
?>
';
echo '
';
echo '
';
- echo '
Possible payout for this month (*):
$0.00
';
+ echo '
Possible payout for this month (*):
$0.00
';
echo '
';
echo '
';
}
?>
(**) The Payout is planned to become active on May 2019.
*/ ?>
(*) Info:
This service will become active on May, 1st 2017. All previous months are shown for internal testing only.
This service is considered Beta until othwise announced.
TOS:
This payout service is completely voluntarily. It is within Hive01's full rights to decide at any time:
a) when and
b) how much of the shown calculated amount is to be paid or
c) to cancel partly or complete payment without giving any reasons (reasons are most likely cheating or inflating download numbers).
d) Any PLING-FACTOR can be changed at any time and any rate (even to "0") to adjust the payout amount for products, even for a previous still to-be-paid-out pending month as long as it has not been paid out yet.
All products require a valid license. Certain products also require a link to an online source repository, like e.g. cgit.kde.org or github. If we find those requirements are set in a misleading way, we reserve the right to exclude the product or user temporarily or completely from receiving plings at any time.
A valid PayPal address must be maintained in your settings at the time of the payout.
The total payout amount for a completed month must be at least one dollar.
Lesser amounts will not be paid out and can not be transferred to the next month.
If you do not meet these requirements, we can not pay you out anything that month.
Non-paid-out months will not be retroactively paid out in the future.
We will check these requirements every month.
Downloads are counted of all files during that month, be it active or inactive.
If all requirements were met and we have no reasons to decide otherwise you will likely be receiving the payout amount to your PayPal account within the following month.
inlineScript()->appendScript(
' $(document).ready(function(){
$(\'[data-toggle="popover"]\').popover();
});
');
\ No newline at end of file