Sum adjustment values started

This commit is contained in:
unknown 2019-10-30 20:26:25 -04:00
parent 49d82eaf86
commit 03bc94ff81

View File

@ -1,6 +1,7 @@
export class Sum
{
ColumnIndex: number;
Table: Table;
Original: number;
Adjustment: number;
@ -8,10 +9,13 @@ export class Sum
FromChildren: number;
FromOutside: number;
constructor(inIndex: number)
constructor(inIndex: number, inTable: Table)
{
this.ColumnIndex = inIndex;
this.Table = inTable;
this.Original = 0;
this.Adjustment = 1;
this.FromParents = 1;
}
}
@ -29,7 +33,7 @@ export class Table
this.Rows = inRows;
this.Parent = null;
this.Children = [];
this.Columns = inColumns.map( (inIndex: number) => new Sum(inIndex) );
this.Columns = inColumns.map( (inIndex: number) => new Sum(inIndex, this) );
}
Pivot(inColumnPivot: number)