Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions deploy/runtime/macros/Compare Cases.lk
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ for (i=0; i<num_cases; i++)
exit;
}

if (config[1] == 'LCOE Calculator' || config[1] == "None")

if (config[1] == 'LCOE Calculator' || config[1] == "None" || config[1] == "Third Party")
{

msgbox('The PV report macro does not work with the LCOE Calculator financial model or with No Financial model.');
msgbox('The case comparison macro does not work with the LCOE Calculator financial model, the Third Party Owner - Host financial model, or with No Financial model.');

exit;

Expand Down Expand Up @@ -159,11 +158,8 @@ for (i=0; i<num_cases; i++)

annual_cashflow_bin = get('cf_project_return_aftertax');
}
else if (config[1] == "Residential" || config[1] == "Commercial") {
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
else {
annual_cashflow_bin = get('cf_tax_investor_aftertax');
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
for (j = 0; j < analysis_period+1; j++) {
annual_cashflow[j][i] = annual_cashflow_bin[j];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ for (i=0; i<num_cases; i++)
msgbox('The Battery Compare Cases macro is only meant to be used with battery cases. See the Compare Cases macro for non-battery cases');
exit;
}

if (config[1] == 'LCOE Calculator' || config[1] == "None" || config[1] == "Third Party")
{

msgbox('The case comparison macro does not work with the LCOE Calculator financial model, the Third Party Owner - Host financial model, or with No Financial model.');

exit;

}

if (config[1] == 'LCOE Calculator') {
lcoe[i] = get('lcoe_fcr');
Expand Down Expand Up @@ -162,11 +171,8 @@ for (i=0; i<num_cases; i++)

annual_cashflow_bin = get('cf_project_return_aftertax');
}
else if (config[1] == "Residential" || config[1] == "Commercial") {
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
else {
annual_cashflow_bin = get('cf_tax_investor_aftertax');
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
for (j = 0; j < analysis_period+1; j++) {
annual_cashflow[j][i] = annual_cashflow_bin[j];
Expand Down
14 changes: 10 additions & 4 deletions deploy/runtime/macros/PV Battery/Battery Compare Cases.lk
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ for (i=0; i<num_cases; i++)
msgbox('The Battery Compare Cases macro is only meant to be used with battery cases. See the Compare Cases macro for non-battery cases');
exit;
}

if (config[1] == 'LCOE Calculator' || config[1] == "None" || config[1] == "Third Party")
{

msgbox('The case comparison macro does not work with the LCOE Calculator financial model, the Third Party Owner - Host financial model, or with No Financial model.');

exit;

}

if (config[1] == 'LCOE Calculator') {
lcoe[i] = get('lcoe_fcr');
Expand Down Expand Up @@ -162,11 +171,8 @@ for (i=0; i<num_cases; i++)

annual_cashflow_bin = get('cf_project_return_aftertax');
}
else if (config[1] == "Residential" || config[1] == "Commercial") {
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
else {
annual_cashflow_bin = get('cf_tax_investor_aftertax');
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
for (j = 0; j < analysis_period+1; j++) {
annual_cashflow[j][i] = annual_cashflow_bin[j];
Expand Down
14 changes: 10 additions & 4 deletions deploy/runtime/macros/Standalone Battery/Battery Compare Cases.lk
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ for (i=0; i<num_cases; i++)
msgbox('The Battery Compare Cases macro is only meant to be used with battery cases. See the Compare Cases macro for non-battery cases');
exit;
}

if (config[1] == 'LCOE Calculator' || config[1] == "None" || config[1] == "Third Party")
{

msgbox('The case comparison macro does not work with the LCOE Calculator financial model, the Third Party Owner - Host financial model, or with No Financial model.');

exit;

}

if (config[1] == 'LCOE Calculator') {
lcoe[i] = get('lcoe_fcr');
Expand Down Expand Up @@ -162,11 +171,8 @@ for (i=0; i<num_cases; i++)

annual_cashflow_bin = get('cf_project_return_aftertax');
}
else if (config[1] == "Residential" || config[1] == "Commercial") {
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
else {
annual_cashflow_bin = get('cf_tax_investor_aftertax');
annual_cashflow_bin = get('cf_after_tax_cash_flow');
}
for (j = 0; j < analysis_period+1; j++) {
annual_cashflow[j][i] = annual_cashflow_bin[j];
Expand Down
Loading