marketplace/services/temporary_processing.py
def accrural_of_income():
        """Foreign currency accruals of income."""
        for profile in Profile.objects.all():
            if profile.dividend_income != 0:
                notification = Notification(
                    user=profile.user,
                    cost=profile.dividend_income,
                    message='Deductions from dividends')

                profile.balance += profile.dividend_income
                profile.dividend_income = sum([
                    mystock.stock.dividend_income * mystock.count
                    for mystock in MyStock.objects.filter(user=profile.user)])
                profile.save()
                notification.save()
Foreign currency accruals of income.
Foreign currency accruals of income.
Foreign currency accruals of income .
def accrural_of_income():
        for profile in Profile.objects.all():
            if profile.dividend_income != 0:
                notification = Notification(
                    user=profile.user,
                    cost=profile.dividend_income,
                    message='Deductions from dividends')
                profile.balance += profile.dividend_income
                profile.dividend_income = sum([
                    mystock.stock.dividend_income * mystock.count
                    for mystock in MyStock.objects.filter(user=profile.user)])
                profile.save()
                notification.save()
def accrural_of_income ( ) : for profile in Profile . objects . all ( ) : if profile . dividend_income != 0 : notification = Notification ( user = profile . user , cost = profile . dividend_income , message = 'Deductions from dividends' ) profile . balance += profile . dividend_income profile . dividend_income = sum ( [ mystock . stock . dividend_income * mystock . count for mystock in MyStock . objects . filter ( user = profile . user ) ] ) profile . save ( ) notification . save ( )
Foreign currency accruals of income.
Foreign currency accruals of income .
"""Foreign currency accruals of income."""