accounting software, Equipment Depreciation Software"> Goldenseal Accounting Software-- Depreciation Viewer
Accounting Software
Small Business Software Estimating Software
Construction Estimating SoftwareBookkeeping SoftwareInventory SoftwareInventory Control SoftwareInventory Tracking SoftwareInventory Management SoftwareBusiness Management Software

Depreciation Viewer (Header)

Link to: source code | record viewer directory

Copyright Turtle Creek Software 1996-2006. All Rights Reserved.

This class manages depreciation viewers for the Goldenseal accounting software,
small business management software, construction project management software and
construction estimating software.

class CDepreciationViewer : public DB_RecordViewer
{
public:

CDepreciationViewer(const SPaneInfo &inPaneInfo, const SViewInfo &inViewInfo);
virtual ~CDepreciationViewer() {}

protected:

CMoney mLastDivisor, mYrsRemain; // BD 3/30/00
CMoney mFinal; // BD 4/19/00
virtual void HandlePopupChanged(CTCS_StdPopupMenu *popupMenu);
void HandleEditChanged(CTCS_EditField *editField);

virtual void FinishUpdatingFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject);
void SetTablePanes(const SInt32 calcType);
void FillInTablePanes();
void SetLifetimeEnable(const SInt32 calcType);
CMoney GetDepreciationAmount(const SInt32 year, const UInt8 calcMethod,
const UInt8 firstLast, const CMoney &lifetime,
const CDate putInService);
CMoney StraightLine(const SInt32 year, const UInt8 firstLast,
const CMoney &lifetime, const CDate putInService);
CMoney SumOfDigits(const SInt32 year, const UInt8 firstLast,
const CMoney &lifetime, const CDate putInService);
CMoney Acrs(const SInt32 year, const UInt8 firstLast,
const CMoney &lifetime, const CDate putInService);
CMoney GetAcceleratedPercent(const SInt32 year, const UInt8 calcMethod,
const UInt8 firstLast, const CMoney &lifetime,
const CDate putInService);
TCS_Real GetFirstFactor(const UInt8 firstLast, const CMoney &lifetime,
const CDate putInService);
TCS_Real GetQuarterDivisor(const CDate putInService);
TCS_Real GetDayDivisor(const CDate putInService);
UInt8 GetMonthInService(const CDate putInService);
TCS_Real CompareSLDB(const CMoney &divisor);
};