finish bills , po , jobcards relational fields creation

This commit is contained in:
2026-04-13 18:48:15 +03:00
parent 3eb471a604
commit 020ffccfd6
41 changed files with 11973 additions and 467 deletions
@@ -14,4 +14,9 @@ export class PurchaseOrdersClient extends CrudClient<
constructor(baseUrl?: string, defaultOptions?: ApiClientOptions) {
super(baseUrl, defaultOptions, PURCHASE_ORDER_ROUTES.INDEX, PURCHASE_ORDER_ROUTES.BY_ID)
}
async getById(id: string) {
const res= await this.list({query: { id }})
return { ...res, data: (res as any)?.data[0] ?? res }
}
}