addons14/account_asset_management/models/account_asset.py
def _get_first_period_amount(
        self, table, entry, depreciation_start_date, line_dates
    ):
        """
        Return prorata amount for Time Method 'Year' in case of
        'Prorata Temporis'
        """
        amount = entry.get("period_amount")
        if self.prorata and self.method_time == "year":
            dates = [x for x in line_dates if x <= entry["date_stop"]]
            full_periods = len(dates) - 1
            amount = entry["fy_amount"] - amount * full_periods
        return amount

        Return prorata amount for Time Method 'Year' in case of
        'Prorata Temporis'
        
Return prorata amount for Time Method 'Year' in case of
'Prorata Temporis'
Return prorata amount for Time Method ' Year ' in case of ' Prorata Temporis '
def _get_first_period_amount(
        self, table, entry, depreciation_start_date, line_dates
    ):
        amount = entry.get("period_amount")
        if self.prorata and self.method_time == "year":
            dates = [x for x in line_dates if x <= entry["date_stop"]]
            full_periods = len(dates) - 1
            amount = entry["fy_amount"] - amount * full_periods
        return amount
def _get_first_period_amount ( self , table , entry , depreciation_start_date , line_dates ) : amount = entry . get ( "period_amount" ) if self . prorata and self . method_time == "year" : dates = [ x for x in line_dates if x <= entry [ "date_stop" ] ] full_periods = len ( dates ) - 1 amount = entry [ "fy_amount" ] - amount * full_periods return amount
Return prorata amount for Time Method 'Year' in case of
'Prorata Temporis'
Return prorata amount for Time Method ' Year ' in case of ' Prorata Temporis '
"""
        Return prorata amount for Time Method 'Year' in case of
        'Prorata Temporis'
        """
self
table
entry
depreciation_start_date
line_dates