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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user