Another fix for balance sheet (sign reversal)
This commit is contained in:
@@ -97,14 +97,14 @@ public partial class Pages_v5_Ledgers_Json_BalanceSheetData : System.Web.UI.Page
|
||||
}
|
||||
else
|
||||
{
|
||||
element += string.Format(_renderCulture, ",\"lastYear\":\"{0:N0}\"", (double)line.AccountValues.PreviousYear / -100.0);
|
||||
element += string.Format(_renderCulture, ",\"lastYear\":\"{0:N0}\"", (double)line.AccountValues.PreviousYear / 100.0);
|
||||
|
||||
for (int quarter = 1; quarter <= 4; quarter++)
|
||||
{
|
||||
element += string.Format(_renderCulture, ",\"q{0}\":\"{1:N0}\"", quarter, line.AccountValues.Quarters[quarter - 1] / -100.0);
|
||||
element += string.Format(_renderCulture, ",\"q{0}\":\"{1:N0}\"", quarter, line.AccountValues.Quarters[quarter - 1] / 100.0);
|
||||
}
|
||||
|
||||
element += string.Format(_renderCulture, ",\"ytd\":\"{0:N0}\"", (double)line.AccountValues.ThisYear / -100.0);
|
||||
element += string.Format(_renderCulture, ",\"ytd\":\"{0:N0}\"", (double)line.AccountValues.ThisYear / 100.0);
|
||||
}
|
||||
|
||||
elements.Add("{" + element + "}");
|
||||
@@ -118,9 +118,9 @@ public partial class Pages_v5_Ledgers_Json_BalanceSheetData : System.Web.UI.Page
|
||||
{
|
||||
if (treeValue != 0 && singleValue == 0)
|
||||
{
|
||||
return string.Format(_renderCulture, "\"<span class=\\\"profitlossdata-collapsed-{0}\\\"><strong>Σ</strong> {1:N0}</span><span class=\\\"profitlossdata-expanded-{0}\\\" style=\\\"display:none\\\"> </span>\"", accountId, treeValue / -100.00);
|
||||
return string.Format(_renderCulture, "\"<span class=\\\"profitlossdata-collapsed-{0}\\\"><strong>Σ</strong> {1:N0}</span><span class=\\\"profitlossdata-expanded-{0}\\\" style=\\\"display:none\\\"> </span>\"", accountId, treeValue / 100.00);
|
||||
}
|
||||
return string.Format(_renderCulture, "\"<span class=\\\"profitlossdata-collapsed-{0}\\\"><strong>Σ</strong> {1:N0}</span><span class=\\\"profitlossdata-expanded-{0}\\\" style=\\\"display:none\\\">{2:N0}</span>\"", accountId, treeValue / -100.0, singleValue / -100.0);
|
||||
return string.Format(_renderCulture, "\"<span class=\\\"profitlossdata-collapsed-{0}\\\"><strong>Σ</strong> {1:N0}</span><span class=\\\"profitlossdata-expanded-{0}\\\" style=\\\"display:none\\\">{2:N0}</span>\"", accountId, treeValue / 100.0, singleValue / 100.0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user