feat/device-order: final

This commit is contained in:
Andrian Roshandy
2025-11-19 03:47:06 +07:00
parent 468c6a164f
commit bfbe72be94
13 changed files with 527 additions and 183 deletions

No files matched your search

+7 -4
View File
@@ -1,16 +1,19 @@
import { type Base, genBase } from "./_base"
import { genDevice, type Device } from "./device"
export interface DeviceOrderItem extends Base {
deviceOrder_id: number
device_id: number
count: number
device_code: string
device: Device
quantity: number
}
export function genDeviceOrderItem(): DeviceOrderItem {
return {
...genBase(),
deviceOrder_id: 0,
device_id: 0,
count: 0,
device_code: '',
device: genDevice(),
quantity: 0,
}
}