Add external location type and location name fields to stock responses

This commit is contained in:
2026-09-08 13:18:42 +05:30
parent 508149dab8
commit bbf9e5b60e
+4 -1
View File
@@ -1,7 +1,7 @@
// ─── Enums ──────────────────────────────────────────────────────────────────── // ─── Enums ────────────────────────────────────────────────────────────────────
export type KycStatus = 'Pending' | 'Verified' | 'Rejected' export type KycStatus = 'Pending' | 'Verified' | 'Rejected'
export type LocationType = 'Warehouse' | 'Vehicle' export type LocationType = 'Warehouse' | 'Vehicle' | 'External'
export type MovementType = export type MovementType =
| 'Sale' | 'CustomerReturn' | 'Transfer' | 'Damage' | 'Sale' | 'CustomerReturn' | 'Transfer' | 'Damage'
| 'Adjustment' | 'Load' | 'PurchaseReceipt' | 'PurchaseReturn' | 'Adjustment' | 'Load' | 'PurchaseReceipt' | 'PurchaseReturn'
@@ -420,6 +420,7 @@ export interface StockBalanceResponse {
locationType: LocationType locationType: LocationType
quantity: number quantity: number
updatedAt: string updatedAt: string
locationName: string
} }
export interface StockMovementResponse { export interface StockMovementResponse {
@@ -436,6 +437,8 @@ export interface StockMovementResponse {
referenceId: string | null referenceId: string | null
createdAt: string createdAt: string
createdBy: string createdBy: string
fromLocationName: string | null
toLocationName: string | null
} }
// ─── Driver / Rides ─────────────────────────────────────────────────────────── // ─── Driver / Rides ───────────────────────────────────────────────────────────