Package com.xero.models.assets
Class BookDepreciationDetail
- java.lang.Object
-
- com.xero.models.assets.BookDepreciationDetail
-
public class BookDepreciationDetail extends Object
BookDepreciationDetail
-
-
Constructor Summary
Constructors Constructor Description BookDepreciationDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BookDepreciationDetailcostLimit(Double costLimit)The value of the asset you want to depreciate, if this is less than the cost of the asset.BookDepreciationDetailcurrentAccumDepreciationAmount(Double currentAccumDepreciationAmount)All depreciation occurring in the current financial year.BookDepreciationDetailcurrentCapitalGain(Double currentCapitalGain)When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.BookDepreciationDetailcurrentGainLoss(Double currentGainLoss)When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.BookDepreciationDetaildepreciationStartDate(org.threeten.bp.LocalDate depreciationStartDate)YYYY-MM-DDbooleanequals(Object o)DoublegetCostLimit()The value of the asset you want to depreciate, if this is less than the cost of the asset.DoublegetCurrentAccumDepreciationAmount()All depreciation occurring in the current financial year.DoublegetCurrentCapitalGain()When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.DoublegetCurrentGainLoss()When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.org.threeten.bp.LocalDategetDepreciationStartDate()YYYY-MM-DDDoublegetPriorAccumDepreciationAmount()All depreciation prior to the current financial year.DoublegetResidualValue()The value of the asset remaining when you've fully depreciated it.inthashCode()BookDepreciationDetailpriorAccumDepreciationAmount(Double priorAccumDepreciationAmount)All depreciation prior to the current financial year.BookDepreciationDetailresidualValue(Double residualValue)The value of the asset remaining when you've fully depreciated it.voidsetCostLimit(Double costLimit)The value of the asset you want to depreciate, if this is less than the cost of the asset.voidsetCurrentAccumDepreciationAmount(Double currentAccumDepreciationAmount)All depreciation occurring in the current financial year.voidsetCurrentCapitalGain(Double currentCapitalGain)When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.voidsetCurrentGainLoss(Double currentGainLoss)When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.voidsetDepreciationStartDate(org.threeten.bp.LocalDate depreciationStartDate)YYYY-MM-DDvoidsetPriorAccumDepreciationAmount(Double priorAccumDepreciationAmount)All depreciation prior to the current financial year.voidsetResidualValue(Double residualValue)The value of the asset remaining when you've fully depreciated it.StringtoString()
-
-
-
Method Detail
-
currentCapitalGain
public BookDepreciationDetail currentCapitalGain(Double currentCapitalGain)
When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.- Parameters:
currentCapitalGain- Double- Returns:
- BookDepreciationDetail
-
getCurrentCapitalGain
public Double getCurrentCapitalGain()
When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.- Returns:
- currentCapitalGain
-
setCurrentCapitalGain
public void setCurrentCapitalGain(Double currentCapitalGain)
When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.- Parameters:
currentCapitalGain- Double
-
currentGainLoss
public BookDepreciationDetail currentGainLoss(Double currentGainLoss)
When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.- Parameters:
currentGainLoss- Double- Returns:
- BookDepreciationDetail
-
getCurrentGainLoss
public Double getCurrentGainLoss()
When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.- Returns:
- currentGainLoss
-
setCurrentGainLoss
public void setCurrentGainLoss(Double currentGainLoss)
When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.- Parameters:
currentGainLoss- Double
-
depreciationStartDate
public BookDepreciationDetail depreciationStartDate(org.threeten.bp.LocalDate depreciationStartDate)
YYYY-MM-DD- Parameters:
depreciationStartDate- LocalDate- Returns:
- BookDepreciationDetail
-
getDepreciationStartDate
public org.threeten.bp.LocalDate getDepreciationStartDate()
YYYY-MM-DD- Returns:
- depreciationStartDate
-
setDepreciationStartDate
public void setDepreciationStartDate(org.threeten.bp.LocalDate depreciationStartDate)
YYYY-MM-DD- Parameters:
depreciationStartDate- LocalDate
-
costLimit
public BookDepreciationDetail costLimit(Double costLimit)
The value of the asset you want to depreciate, if this is less than the cost of the asset.- Parameters:
costLimit- Double- Returns:
- BookDepreciationDetail
-
getCostLimit
public Double getCostLimit()
The value of the asset you want to depreciate, if this is less than the cost of the asset.- Returns:
- costLimit
-
setCostLimit
public void setCostLimit(Double costLimit)
The value of the asset you want to depreciate, if this is less than the cost of the asset.- Parameters:
costLimit- Double
-
residualValue
public BookDepreciationDetail residualValue(Double residualValue)
The value of the asset remaining when you've fully depreciated it.- Parameters:
residualValue- Double- Returns:
- BookDepreciationDetail
-
getResidualValue
public Double getResidualValue()
The value of the asset remaining when you've fully depreciated it.- Returns:
- residualValue
-
setResidualValue
public void setResidualValue(Double residualValue)
The value of the asset remaining when you've fully depreciated it.- Parameters:
residualValue- Double
-
priorAccumDepreciationAmount
public BookDepreciationDetail priorAccumDepreciationAmount(Double priorAccumDepreciationAmount)
All depreciation prior to the current financial year.- Parameters:
priorAccumDepreciationAmount- Double- Returns:
- BookDepreciationDetail
-
getPriorAccumDepreciationAmount
public Double getPriorAccumDepreciationAmount()
All depreciation prior to the current financial year.- Returns:
- priorAccumDepreciationAmount
-
setPriorAccumDepreciationAmount
public void setPriorAccumDepreciationAmount(Double priorAccumDepreciationAmount)
All depreciation prior to the current financial year.- Parameters:
priorAccumDepreciationAmount- Double
-
currentAccumDepreciationAmount
public BookDepreciationDetail currentAccumDepreciationAmount(Double currentAccumDepreciationAmount)
All depreciation occurring in the current financial year.- Parameters:
currentAccumDepreciationAmount- Double- Returns:
- BookDepreciationDetail
-
getCurrentAccumDepreciationAmount
public Double getCurrentAccumDepreciationAmount()
All depreciation occurring in the current financial year.- Returns:
- currentAccumDepreciationAmount
-
setCurrentAccumDepreciationAmount
public void setCurrentAccumDepreciationAmount(Double currentAccumDepreciationAmount)
All depreciation occurring in the current financial year.- Parameters:
currentAccumDepreciationAmount- Double
-
-