feat: add Copayment and Adjustment columns to payments table

- Added copayment and adjustment fields (Decimal, default 0) to Payment
  model in schema and directly to DB via ALTER TABLE
- Added PATCH /api/payments/:id/copayment and /adjustment routes
- Added inline-editable Copayment and Adjustment columns after MH Paid
  with same click-to-edit format; Copayment in blue, Adjustment in orange

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-06 21:14:00 -04:00
parent c5af6c1fa6
commit 4bd501250d
250 changed files with 4656 additions and 185 deletions

View File

@@ -17,7 +17,8 @@ import { CommunicationOrderByRelationAggregateInputObjectSchema as Communication
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './TwilioSettingsOrderByWithRelationInput.schema';
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './AiSettingsOrderByWithRelationInput.schema';
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './OfficeHoursOrderByWithRelationInput.schema';
import { OfficeContactOrderByWithRelationInputObjectSchema as OfficeContactOrderByWithRelationInputObjectSchema } from './OfficeContactOrderByWithRelationInput.schema'
import { OfficeContactOrderByWithRelationInputObjectSchema as OfficeContactOrderByWithRelationInputObjectSchema } from './OfficeContactOrderByWithRelationInput.schema';
import { ProcedureTimeslotOrderByWithRelationInputObjectSchema as ProcedureTimeslotOrderByWithRelationInputObjectSchema } from './ProcedureTimeslotOrderByWithRelationInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
@@ -41,7 +42,8 @@ const makeSchema = () => z.object({
twilioSettings: z.lazy(() => TwilioSettingsOrderByWithRelationInputObjectSchema).optional(),
aiSettings: z.lazy(() => AiSettingsOrderByWithRelationInputObjectSchema).optional(),
officeHours: z.lazy(() => OfficeHoursOrderByWithRelationInputObjectSchema).optional(),
officeContact: z.lazy(() => OfficeContactOrderByWithRelationInputObjectSchema).optional()
officeContact: z.lazy(() => OfficeContactOrderByWithRelationInputObjectSchema).optional(),
procedureTimeslot: z.lazy(() => ProcedureTimeslotOrderByWithRelationInputObjectSchema).optional()
}).strict();
export const UserOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.UserOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.UserOrderByWithRelationInput>;
export const UserOrderByWithRelationInputObjectZodSchema = makeSchema();