added payedAmount

This commit is contained in:
2024-01-09 10:22:13 +01:00
parent 8a90c58417
commit 4ffe89fde6
3 changed files with 109 additions and 21 deletions

View File

@@ -11,20 +11,31 @@ export interface BillAttachment {
/** bill object in the form returned by MongoDB */
export interface BillingLocation {
_id: string;
/** user's ID */
userId: string;
/** user's email */
userEmail?: string | null;
/** name of the location */
name: string;
/** the value is encoded as yyyymm (i.e. 202301) */
yearMonth: number;
/** array of bills */
bills: Bill[];
/** (optional) notes */
notes: string|null;
};
/** Bill basic data */
export interface Bill {
_id: string;
/** bill name */
name: string;
/** is the bill paid */
paid: boolean;
/** payed amount amount in cents */
payedAmount?: number | null;
/** attached document (optional) */
attachment?: BillAttachment|null;
/** (optional) notes */
notes?: string|null;
};