Merge pull request #1769 from iAmShorty/payout-log

[ENHANCEMENT] add payout sum to log
This commit is contained in:
Sebastian Grewe 2014-02-16 16:42:54 +01:00
commit fab0b0c817

View File

@ -54,7 +54,7 @@ if ($setting->getValue('disable_manual_payouts') != 1 && $aManualPayouts) {
$aSendMany = NULL;
foreach ($aManualPayouts as $aUserData) $dMPTotalAmount += $aUserData['confirmed'];
if ($dMPTotalAmount > $dWalletBalance) {
$log->logError(" Wallet does not cover MP payouts");
$log->logError(" Wallet does not cover MP payouts - Payout: " . $dMPTotalAmount . " - Balance: " . $dWalletBalance);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}
@ -126,7 +126,7 @@ if ($setting->getValue('disable_auto_payouts') != 1 && $aAutoPayouts) {
$dAPTotalAmount = 0;
foreach ($aAutoPayouts as $aUserData) $dAPTotalAmount += $aUserData['confirmed'];
if ($dAPTotalAmount > $dWalletBalance) {
$log->logError(" Wallet does not cover AP payouts");
$log->logError(" Wallet does not cover AP payouts - Payout: " . $dAPTotalAmount . " - Balance: " . $dWalletBalance);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}