hvp-shared 6.99.1 → 7.0.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.
|
@@ -44,8 +44,7 @@ export interface QvetPaginatedResponse<T> {
|
|
|
44
44
|
pagination: QvetPagination;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* Represents one line item in a sale transaction
|
|
47
|
+
* @deprecated Use QvetSaleDetailResponse instead. This type is from Report 14 which is being removed.
|
|
49
48
|
*/
|
|
50
49
|
export interface QvetSaleResponse {
|
|
51
50
|
id: string;
|
|
@@ -103,6 +102,82 @@ export interface QvetSalesSummaryResponse {
|
|
|
103
102
|
ok: boolean;
|
|
104
103
|
data: QvetSalesSummaryData;
|
|
105
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Single sale detail record from QVET Report 89.
|
|
107
|
+
* Complete line item with ticket, invoice, customer, pet, and pricing data.
|
|
108
|
+
* This is the primary sales data source — replaces QvetSaleResponse.
|
|
109
|
+
*
|
|
110
|
+
* @example GET /api/qvet/sales (backed by qvet_sale_details collection)
|
|
111
|
+
*/
|
|
112
|
+
export interface QvetSaleDetailResponse {
|
|
113
|
+
id: string;
|
|
114
|
+
ticketId: number;
|
|
115
|
+
ticketNumber: number;
|
|
116
|
+
lineItemId: number;
|
|
117
|
+
date: string;
|
|
118
|
+
branch: string;
|
|
119
|
+
subtotal: number;
|
|
120
|
+
paidAmount: number;
|
|
121
|
+
total: number;
|
|
122
|
+
quantity: number;
|
|
123
|
+
discount: number;
|
|
124
|
+
unitPrice: number;
|
|
125
|
+
taxAmount: number;
|
|
126
|
+
taxRate: number;
|
|
127
|
+
paymentMethod: string;
|
|
128
|
+
priceList: string;
|
|
129
|
+
discountType: number;
|
|
130
|
+
productName: string;
|
|
131
|
+
qvetCode: number;
|
|
132
|
+
isProductActive: boolean;
|
|
133
|
+
section: string;
|
|
134
|
+
family: string;
|
|
135
|
+
subfamily: string;
|
|
136
|
+
ticketDescription: string;
|
|
137
|
+
warehouse: string;
|
|
138
|
+
customerName: string;
|
|
139
|
+
qvetCustomerId: number;
|
|
140
|
+
customerType: string;
|
|
141
|
+
phone: string;
|
|
142
|
+
phone2: string;
|
|
143
|
+
phoneSms: string;
|
|
144
|
+
taxId: string;
|
|
145
|
+
city: string;
|
|
146
|
+
postalCode: string;
|
|
147
|
+
customerRegistrationDate: string | null;
|
|
148
|
+
petName: string;
|
|
149
|
+
qvetPetId: number | null;
|
|
150
|
+
species: string;
|
|
151
|
+
breed: string;
|
|
152
|
+
coat: string;
|
|
153
|
+
temperament: string;
|
|
154
|
+
diet: string;
|
|
155
|
+
habitat: string;
|
|
156
|
+
petBirthDate: string | null;
|
|
157
|
+
petRegistrationDate: string | null;
|
|
158
|
+
source: string;
|
|
159
|
+
sellerName: string;
|
|
160
|
+
responsibleStaffId: number | null;
|
|
161
|
+
visitType: string;
|
|
162
|
+
isSubscription: boolean;
|
|
163
|
+
observations: string;
|
|
164
|
+
status: string;
|
|
165
|
+
invoiceDate: string | null;
|
|
166
|
+
invoiceNumber: string;
|
|
167
|
+
averageCost: number;
|
|
168
|
+
upc: number;
|
|
169
|
+
upcFc: number;
|
|
170
|
+
conversionFactor: number;
|
|
171
|
+
taxDescription: string;
|
|
172
|
+
syncedAt: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Query parameters for sale details endpoint
|
|
176
|
+
*/
|
|
177
|
+
export interface QvetSaleDetailsQueryParams extends QvetSalesQueryParams {
|
|
178
|
+
ticketNumber?: number;
|
|
179
|
+
invoiceNumber?: string;
|
|
180
|
+
}
|
|
106
181
|
/**
|
|
107
182
|
* Sales by section aggregation item.
|
|
108
183
|
* Backend returns: ApiSingleSuccessResponse<QvetSalesBySectionItem[]>
|