refactor: enhance employee and service forms with new fields and validation

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-08 15:55:33 +03:00
co-authored by Copilot
parent b0361fcbfb
commit 4b51ffe457
7 changed files with 448 additions and 143 deletions
@@ -39,10 +39,9 @@ export function BillPaymentsSection() {
{(resourceId) => (
<PaymentMadeForm
initialData={{
anount: bill?.balance_due,
amount: bill?.balance_due,
vendor: toRelation(bill?.vendor?.id, getFullName(bill?.vendor as any)),
payment_made: bill?.balance_due != null ? String(bill.balance_due) : undefined,
payment_for: "bill",
}}
billId={bill?.id}
resourceId={resourceId}