Service/Calc/PvWriteOff/A/SaveDownline.php
private function getPv($custId, $mapAccs, $updates, $signupDebitCustomers)
    {
        $result = 0;
        if (isset($mapAccs[$custId])) {
            $account = $mapAccs[$custId];
            $accId = $account->getId();
            $result = (isset($updates[$accId])) ? $updates[$accId] : 0;
        }
        /* correct PV for 'Sign Up Debit' customers */
        $isSignUpDebit = in_array($custId, $signupDebitCustomers);
        if ($isSignUpDebit) {
            $result += \Praxigento\BonusHybrid\Config::SIGNUP_DEBIT_PV;
        }
        return $result;
    }
private function getPv($custId, $mapAccs, $updates, $signupDebitCustomers)
    {
        $result = 0;
        if (isset($mapAccs[$custId])) {
            $account = $mapAccs[$custId];
            $accId = $account->getId();
            $result = (isset($updates[$accId])) ? $updates[$accId] : 0;
        }
        /* correct PV for 'Sign Up Debit' customers */
        $isSignUpDebit = in_array($custId, $signupDebitCustomers);
        if ($isSignUpDebit) {
            $result += \Praxigento\BonusHybrid\Config::SIGNUP_DEBIT_PV;
        }
        return $result;
    }
private function getPv ( $ custId , $ mapAccs , $ updates , $ signupDebitCustomers ) { $ result = 0 ; if ( isset ( $ mapAccs [ $ custId ] ) ) { $ account = $ mapAccs [ $ custId ] ; $ accId = $ account -> getId ( ) ; $ result = ( isset ( $ updates [ $ accId ] ) ) ? $ updates [ $ accId ] : 0 ; } /* correct PV for 'Sign Up Debit' customers */ $ isSignUpDebit = in_array ( $ custId , $ signupDebitCustomers ) ; if ( $ isSignUpDebit ) { $ result += \ Praxigento \ BonusHybrid \ Config :: SIGNUP_DEBIT_PV ; } return $ result ; }
Get PV for customer (real PV from 'PV Write Off' calculation adjusted for 'Sign Up Debit' customers).
Get PV for customer ( real PV from PV Write Off calculation adjusted for Sign Up Debit customers ) .