mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 09:43:12 +00:00
19 lines
467 B
TypeScript
19 lines
467 B
TypeScript
|
|
import type { WorkOrderTablePatch } from "@/domain/work-orders/types/work-order-table-row";
|
||
|
|
|
||
|
|
export type VendorAssignmentFields = {
|
||
|
|
vendorId: string;
|
||
|
|
company: string;
|
||
|
|
tech: string;
|
||
|
|
techPhone: string;
|
||
|
|
};
|
||
|
|
|
||
|
|
export function toVendorTablePatch(fields: VendorAssignmentFields): WorkOrderTablePatch {
|
||
|
|
return {
|
||
|
|
vendorId: fields.vendorId,
|
||
|
|
company: fields.company,
|
||
|
|
tech: fields.tech,
|
||
|
|
techPhone: fields.techPhone,
|
||
|
|
primaryDispatchStatus: "",
|
||
|
|
};
|
||
|
|
}
|