hvp-shared 6.16.0 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -569,6 +569,30 @@ export interface QvetCashClosingsByStaffItem {
|
|
|
569
569
|
totalSales: number;
|
|
570
570
|
branches: string[];
|
|
571
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* Cash closing grouped response - one entry per closing with payment methods nested.
|
|
574
|
+
* Used for displaying closings as single cards/rows in the UI.
|
|
575
|
+
* Backend returns: ApiListSuccessResponse<QvetCashClosingGroupedResponse>
|
|
576
|
+
*
|
|
577
|
+
* @example GET /api/qvet/cash-closings/grouped?year=2026&month=1
|
|
578
|
+
*/
|
|
579
|
+
export interface QvetCashClosingGroupedResponse {
|
|
580
|
+
closingNumber: number;
|
|
581
|
+
closingDate: string;
|
|
582
|
+
previousClosingDate: string;
|
|
583
|
+
cashRegister: string;
|
|
584
|
+
branch: string;
|
|
585
|
+
staffName: string;
|
|
586
|
+
closingTotal: number;
|
|
587
|
+
collectedAmount: number;
|
|
588
|
+
dayCollections: number;
|
|
589
|
+
cashOut: number;
|
|
590
|
+
syncedAt: string;
|
|
591
|
+
paymentMethods: {
|
|
592
|
+
method: string;
|
|
593
|
+
amount: number;
|
|
594
|
+
}[];
|
|
595
|
+
}
|
|
572
596
|
/**
|
|
573
597
|
* Query parameters for cash closings endpoint
|
|
574
598
|
*/
|
|
@@ -587,3 +611,86 @@ export interface QvetCashClosingsQueryParams {
|
|
|
587
611
|
skip?: number;
|
|
588
612
|
sort?: string;
|
|
589
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* Single cash flow record from QVET (Entradas/Salidas de Caja)
|
|
616
|
+
* Represents cash in/out transactions outside of regular sales
|
|
617
|
+
* Examples: petty cash, reimbursements, supplier payments
|
|
618
|
+
*
|
|
619
|
+
* Transaction types:
|
|
620
|
+
* - ENTRADA CAJA: Cash in (positive amount)
|
|
621
|
+
* - SALIDA CAJA: Cash out (negative amount)
|
|
622
|
+
*/
|
|
623
|
+
export interface QvetCashFlowResponse {
|
|
624
|
+
id: string;
|
|
625
|
+
branch: string;
|
|
626
|
+
cashRegister: string;
|
|
627
|
+
transactionDate: string;
|
|
628
|
+
transactionType: string;
|
|
629
|
+
paymentMethod: string;
|
|
630
|
+
amount: number;
|
|
631
|
+
comments: string;
|
|
632
|
+
supplier: string;
|
|
633
|
+
staffName: string;
|
|
634
|
+
closingDate: string;
|
|
635
|
+
syncedAt: string;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Cash flows summary statistics data.
|
|
639
|
+
* Backend wraps with: ApiSingleSuccessResponse<QvetCashFlowsSummaryData>
|
|
640
|
+
*/
|
|
641
|
+
export interface QvetCashFlowsSummaryData {
|
|
642
|
+
totalRecords: number;
|
|
643
|
+
totalCashIn: number;
|
|
644
|
+
totalCashOut: number;
|
|
645
|
+
netFlow: number;
|
|
646
|
+
byTransactionType: {
|
|
647
|
+
type: string;
|
|
648
|
+
totalAmount: number;
|
|
649
|
+
count: number;
|
|
650
|
+
}[];
|
|
651
|
+
byPaymentMethod: {
|
|
652
|
+
method: string;
|
|
653
|
+
totalAmount: number;
|
|
654
|
+
count: number;
|
|
655
|
+
}[];
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Cash flows grouped by staff member.
|
|
659
|
+
* Backend returns: ApiSingleSuccessResponse<QvetCashFlowsByStaffItem[]>
|
|
660
|
+
*/
|
|
661
|
+
export interface QvetCashFlowsByStaffItem {
|
|
662
|
+
staffName: string;
|
|
663
|
+
totalCashIn: number;
|
|
664
|
+
totalCashOut: number;
|
|
665
|
+
netFlow: number;
|
|
666
|
+
recordCount: number;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Cash flows grouped by supplier/recipient.
|
|
670
|
+
* Backend returns: ApiSingleSuccessResponse<QvetCashFlowsBySupplierItem[]>
|
|
671
|
+
*/
|
|
672
|
+
export interface QvetCashFlowsBySupplierItem {
|
|
673
|
+
supplier: string;
|
|
674
|
+
totalAmount: number;
|
|
675
|
+
recordCount: number;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Query parameters for cash flows endpoint
|
|
679
|
+
*/
|
|
680
|
+
export interface QvetCashFlowsQueryParams {
|
|
681
|
+
startDate?: string;
|
|
682
|
+
endDate?: string;
|
|
683
|
+
year?: number;
|
|
684
|
+
month?: number;
|
|
685
|
+
halfMonth?: 1 | 2;
|
|
686
|
+
branch?: string;
|
|
687
|
+
cashRegister?: string;
|
|
688
|
+
transactionType?: string;
|
|
689
|
+
paymentMethod?: string;
|
|
690
|
+
staffName?: string;
|
|
691
|
+
supplier?: string;
|
|
692
|
+
limit?: number;
|
|
693
|
+
page?: number;
|
|
694
|
+
skip?: number;
|
|
695
|
+
sort?: string;
|
|
696
|
+
}
|