|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.endow.document.service.impl.UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl
public class UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl
Constructor Summary | |
---|---|
UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl()
|
Method Summary | |
---|---|
protected void |
calculateLotHoldingCostForTransactionAmount(EndowmentTransactionLine transLine,
boolean isSource,
BigDecimal taxLotsTotalUnits)
Helper method to calculate lot holding cost when transaction amount given |
protected void |
calculateLotHoldingCostForUnitAdjustmentAmount(EndowmentTransactionLine transLine,
boolean isSource)
Helper method to calculate lot holding cost when unit adjustment amount given |
protected BigDecimal |
calculateTotalLotsTotalUnits(List<HoldingTaxLot> holdingTaxLots)
Helper method to calculate the TotalLots total units |
protected void |
createEndowmentHoldingLotRecord(HoldingAdjustmentDocument holdingAdjustmentDocument,
EndowmentTransactionLine transLine,
List<HoldingTaxLot> holdingTaxLots)
This method... |
SecurityService |
getSecurityService()
Gets the securityService. |
HoldingTaxLotService |
getTaxLotService()
Gets the taxLotService. |
protected List<HoldingTaxLot> |
retrieveAllTaxLotsWithPositiveCost(EndowmentTransactionLine transLine,
EndowmentTransactionSecurity endowmentTransactionSecurity)
Helper method to retrieve all tax lots with positive cost holding tax lot lines |
protected List<HoldingTaxLot> |
retrieveTaxLotLineForUpdate(EndowmentTransactionLine transLine,
EndowmentTransactionSecurity endowmentTransactionSecurity)
Helper method to retrieve all the tax lot records with units greater than zero from endowment holding tax lot table for a specific lot number |
void |
setSecurityService(SecurityService securityService)
Sets the securityService. |
void |
setTaxLotService(HoldingTaxLotService taxLotService)
Sets the taxLotService. |
protected void |
updateTransactionAmountWithLotHoldingCost(boolean isSource,
EndowmentTransactionLine transLine)
Helper method to update the transaction amount with the total holding cost |
void |
updateTransactionLineTaxLotsByTransactionAmount(boolean isUpdate,
HoldingAdjustmentDocument holdingAdjustmentDocument,
EndowmentTransactionLine transLine,
boolean isSource)
Updates the tax lots related to the given transaction line in the Holding Adjustment document when Transaction Amount is entered. |
void |
updateTransactionLineTaxLotsByUnitAdjustmentAmount(boolean isUpdate,
HoldingAdjustmentDocument holdingAdjustmentDocument,
EndowmentTransactionLine transLine,
boolean isSource)
Updates the tax lots related to the given transaction line in the Holding Adjustment document when Unit Adjustment Amount is entered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl()
Method Detail |
---|
public void updateTransactionLineTaxLotsByUnitAdjustmentAmount(boolean isUpdate, HoldingAdjustmentDocument holdingAdjustmentDocument, EndowmentTransactionLine transLine, boolean isSource)
UpdateHoldingAdjustmentDocumentTaxLotsService
updateTransactionLineTaxLotsByUnitAdjustmentAmount
in interface UpdateHoldingAdjustmentDocumentTaxLotsService
isUpdate
- boolean indicator if updateholdingAdjustmentDocument
- the Holding Adjustment Document for which we compute the transaction line related tax lotstransLine
- the transaction line for which we update the tax lotsisSource
- boolean indicator if the transaction lines are sourceorg.kuali.kfs.module.endow.document.service.UpdateHoldingAdjustmentDocumentTaxLotsService#updateTransactionLineTaxLotsByUnitAdjustmentAmount(boolean,
org.kuali.kfs.module.endow.document.EndowmentUnitShareAdjustmentDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine, boolean)
public void updateTransactionLineTaxLotsByTransactionAmount(boolean isUpdate, HoldingAdjustmentDocument holdingAdjustmentDocument, EndowmentTransactionLine transLine, boolean isSource)
UpdateHoldingAdjustmentDocumentTaxLotsService
updateTransactionLineTaxLotsByTransactionAmount
in interface UpdateHoldingAdjustmentDocumentTaxLotsService
isUpdate
- boolean indicator if updateholdingAdjustmentDocument
- the Holding Adjustment Document for which we compute the transaction line related tax lotstransLine
- the transaction line for which we update the tax lotsisSource
- boolean indicator if the transaction lines are sourceorg.kuali.kfs.module.endow.document.service.UpdateHoldingAdjustmentDocumentTaxLotsService#updateTransactionLineTaxLotsByTransactionAmount(boolean,
org.kuali.kfs.module.endow.document.EndowmentUnitShareAdjustmentDocument,
org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine, boolean)
protected BigDecimal calculateTotalLotsTotalUnits(List<HoldingTaxLot> holdingTaxLots)
holdingTaxLots
-
protected List<HoldingTaxLot> retrieveTaxLotLineForUpdate(EndowmentTransactionLine transLine, EndowmentTransactionSecurity endowmentTransactionSecurity)
transLine
- The endowment transaction lineendowmentTransactionSecurity
- endowment transaction security
protected List<HoldingTaxLot> retrieveAllTaxLotsWithPositiveCost(EndowmentTransactionLine transLine, EndowmentTransactionSecurity endowmentTransactionSecurity)
transLine
- The endowment transaction lineendowmentTransactionSecurity
- endowment transaction security
protected void updateTransactionAmountWithLotHoldingCost(boolean isSource, EndowmentTransactionLine transLine)
transLine
- The endowment transaction lineisSource
- whether this is source or target transaction lineprotected void calculateLotHoldingCostForUnitAdjustmentAmount(EndowmentTransactionLine transLine, boolean isSource)
transLine
- isSource
- protected void calculateLotHoldingCostForTransactionAmount(EndowmentTransactionLine transLine, boolean isSource, BigDecimal taxLotsTotalUnits)
transLine
- isSource
- protected void createEndowmentHoldingLotRecord(HoldingAdjustmentDocument holdingAdjustmentDocument, EndowmentTransactionLine transLine, List<HoldingTaxLot> holdingTaxLots)
holdingAdjustmentDocument
- transLine
- holdingTaxLots
- public HoldingTaxLotService getTaxLotService()
public void setTaxLotService(HoldingTaxLotService taxLotService)
taxLotService
- public SecurityService getSecurityService()
public void setSecurityService(SecurityService securityService)
securityService
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |