This commit is contained in:
2026-04-23 14:38:41 +03:00
parent f17dd1486c
commit c0f78c6e18
90 changed files with 10819 additions and 1583 deletions
@@ -19,12 +19,12 @@ export default function PurchaseOrdersPage() {
onRowClick={(row) => router.push(`/purchase/purchase-order/${(row as any).id}`)}
headerProps={({ selectedItem, invalidateQuery }) => ({
actions: (
<FormDialog classNames={{dialogContent:"min-w-6xl"}} title="Purchase Order">
{(resourceId) => (
<FormDialog classNames={{ dialogContent: "min-w-6xl" }} title="Purchase Order">
{(resourceId, { close }) => (
<PurchaseOrderForm
resourceId={resourceId}
initialData={selectedItem}
onSuccess={invalidateQuery}
onSuccess={() => { invalidateQuery(); close()}}
/>
)}
</FormDialog>