Chore: Reformatted everthing
Fix: Product ledger was not totalling. This is because for some reason, pydantic was sending the data as string when the field was nullable
This commit is contained in:
1 parent
af27bf74ef
commit
ac868257b7
194 files changed
+513
-1580
No files matched your search
@@ -8,8 +8,7 @@ import { map } from 'rxjs/operators';
|
||||
import { CostCentre } from '../../core/cost-centre';
|
||||
|
||||
/** Simple sort comparator for example ID/Name columns (for client-side sorting). */
|
||||
const compare = (a: string | number, b: string | number, isAsc: boolean) =>
|
||||
(a < b ? -1 : 1) * (isAsc ? 1 : -1);
|
||||
const compare = (a: string | number, b: string | number, isAsc: boolean) => (a < b ? -1 : 1) * (isAsc ? 1 : -1);
|
||||
export class CostCentreListDataSource extends DataSource<CostCentre> {
|
||||
constructor(
|
||||
public data: CostCentre[],
|
||||
|
||||
Reference in new issue
Block a user