mongo projekcija proširena property-em "hasAttachment"

This commit is contained in:
2025-01-13 16:05:15 +01:00
parent 6ceff261fb
commit 103e371d5f
3 changed files with 40 additions and 13 deletions

View File

@@ -42,6 +42,11 @@ export interface Bill {
payedAmount?: number | null;
/** attached document (optional) */
attachment?: BillAttachment|null;
/**
* true if there an attachment
* @description this field enables us to send this info to the client without sending large attachment - it's an optimization
*/
hasAttachment: boolean;
/** (optional) notes */
notes?: string|null;
/** (optional) image data containing PDF471 bar code */