NPV Parameters View Model
View model for computation of financial NPV values.
NpvFinancialModel
Bases: QStandardItemModel
View model for costs and revenues used in NPV computation.
Source code in src/cplus_plugin/gui/financials/npv_financial_model.py
add_year_row
Adds a new row for the year.
The year number is automatically set.
Returns:
Type | Description |
---|---|
int
|
The newly added row number, or -1 if the row was not added. |
Source code in src/cplus_plugin/gui/financials/npv_financial_model.py
append_years
Appends new rows based on the number of years specified.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
number_years |
int
|
Number of rows to be added. |
required |
Source code in src/cplus_plugin/gui/financials/npv_financial_model.py
set_number_of_years
Sets the number of years by adding or removing rows to match the number of years.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
number_years |
int
|
Number of years to be used in the computation. |
required |
Source code in src/cplus_plugin/gui/financials/npv_financial_model.py
Last update:
November 25, 2024