dovršen rendering homepage-a

This commit is contained in:
2024-01-04 14:46:31 +01:00
parent 496814d039
commit f11987dd3a
8 changed files with 102 additions and 72 deletions

View File

@@ -1,12 +1,16 @@
export type Location = {
id: number;
import { ObjectId } from "mongodb";
export interface Location {
id: ObjectId;
name: string;
bills: Bill[];
/** the value is encoded as yyyymm (i.e. 202301) */
yearMonth: number;
};
export type Bill = {
id: number;
export interface Bill {
id: ObjectId;
name: string;
paid: boolean;
amount?: number;
description?: string;
document?: string|null;
};