yearMonth split into year + month

This commit is contained in:
2024-01-09 15:43:01 +01:00
parent 90edcf14e1
commit 46b65711a8
12 changed files with 73 additions and 88 deletions

View File

@@ -1,4 +1,5 @@
import { ObjectId } from "mongodb";
import { inter } from "../ui/fonts";
export interface BillAttachment {
fileName: string;
@@ -17,8 +18,10 @@ export interface BillingLocation {
userEmail?: string | null;
/** name of the location */
name: string;
/** the value is encoded as yyyymm (i.e. 202301) */
yearMonth: number;
/** billing period year */
year: number;
/** billing period month */
month: number;
/** array of bills */
bills: Bill[];
/** (optional) notes */