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:
co-authored by
Claude Sonnet 4.6
parent
c5af6c1fa6
commit
4bd501250d
@@ -17,7 +17,8 @@ import { CommunicationUpdateManyWithoutUserNestedInputObjectSchema as Communicat
|
||||
import { TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema as TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema } from './TwilioSettingsUpdateOneWithoutUserNestedInput.schema';
|
||||
import { AiSettingsUpdateOneWithoutUserNestedInputObjectSchema as AiSettingsUpdateOneWithoutUserNestedInputObjectSchema } from './AiSettingsUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema as OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeHoursUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeContactUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUpdateOneWithoutUserNestedInput.schema'
|
||||
import { OfficeContactUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUpdateOneWithoutUserNestedInput.schema';
|
||||
import { ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema as ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema } from './ProcedureTimeslotUpdateOneWithoutUserNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
username: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
@@ -39,7 +40,8 @@ const makeSchema = () => z.object({
|
||||
twilioSettings: z.lazy(() => TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
aiSettings: z.lazy(() => AiSettingsUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeHours: z.lazy(() => OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeContact: z.lazy(() => OfficeContactUpdateOneWithoutUserNestedInputObjectSchema).optional()
|
||||
officeContact: z.lazy(() => OfficeContactUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUpdateOneWithoutUserNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserUpdateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.UserUpdateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpdateWithoutClaimsInput>;
|
||||
export const UserUpdateWithoutClaimsInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user