Link to: header | tables
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
Comments
CRoundingTable
This class manages price rounding tables for the Goldenseal accounting software,
small business management software, construction
project management software and
construction
accounting software.
This is the table for rounding methods. The table sets up ranges of prices
with a rounding method for each.
SUPERCLASS = CToFromTable
Constructor
/*********************************************************************************
constructor
*********************************************************************************/
CRoundingTable::CRoundingTable(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo)
: CToFromTable(inPaneInfo, inViewInfo)
{
}
Source Code
/*********************************************************************************
FillNewRowCells
fill in default values
*********************************************************************************/
void CRoundingTable::FillNewRowCells(const TableIndexT row)
{
THE_SUPERCLASS::FillNewRowCells(row);
CMoney pennyValue(0, 1);
SetCVCellValue(row, CRoundingMethod::col_method, method_uptonearest);
SetCellText(row, CRoundingMethod::col_roundto, pennyValue.GetCurrencyString());
}
|