refactor: adjust field
This commit is contained in:
parent
fdc72a7caf
commit
a24bf4fb4b
5 changed files with 14 additions and 3 deletions
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Product" ADD COLUMN "calcVat" BOOLEAN NOT NULL DEFAULT true;
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `actorName` on the `Quotation` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Quotation" DROP COLUMN "actorName";
|
||||||
|
|
@ -976,6 +976,8 @@ model Product {
|
||||||
vatIncluded Boolean?
|
vatIncluded Boolean?
|
||||||
expenseType String?
|
expenseType String?
|
||||||
|
|
||||||
|
calcVat Boolean @default(true)
|
||||||
|
|
||||||
status Status @default(CREATED)
|
status Status @default(CREATED)
|
||||||
statusOrder Int @default(0)
|
statusOrder Int @default(0)
|
||||||
|
|
||||||
|
|
@ -1097,7 +1099,6 @@ model Quotation {
|
||||||
|
|
||||||
code String
|
code String
|
||||||
|
|
||||||
actorName String
|
|
||||||
workName String
|
workName String
|
||||||
contactName String
|
contactName String
|
||||||
contactTel String
|
contactTel String
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ type ProductCreate = {
|
||||||
agentPrice: number;
|
agentPrice: number;
|
||||||
serviceCharge: number;
|
serviceCharge: number;
|
||||||
vatIncluded?: boolean;
|
vatIncluded?: boolean;
|
||||||
|
calcVat?: boolean;
|
||||||
expenseType?: string;
|
expenseType?: string;
|
||||||
selectedImage?: string;
|
selectedImage?: string;
|
||||||
shared?: boolean;
|
shared?: boolean;
|
||||||
|
|
@ -87,6 +88,7 @@ type ProductUpdate = {
|
||||||
serviceCharge?: number;
|
serviceCharge?: number;
|
||||||
remark?: string;
|
remark?: string;
|
||||||
vatIncluded?: boolean;
|
vatIncluded?: boolean;
|
||||||
|
calcVat?: boolean;
|
||||||
expenseType?: string;
|
expenseType?: string;
|
||||||
selectedImage?: string;
|
selectedImage?: string;
|
||||||
shared?: boolean;
|
shared?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ import { precisionRound } from "../utils/arithmetic";
|
||||||
type QuotationCreate = {
|
type QuotationCreate = {
|
||||||
status?: Status;
|
status?: Status;
|
||||||
|
|
||||||
actorName: string;
|
|
||||||
workName: string;
|
workName: string;
|
||||||
contactName: string;
|
contactName: string;
|
||||||
contactTel: string;
|
contactTel: string;
|
||||||
|
|
@ -83,7 +82,6 @@ type QuotationCreate = {
|
||||||
type QuotationUpdate = {
|
type QuotationUpdate = {
|
||||||
status?: "ACTIVE" | "INACTIVE";
|
status?: "ACTIVE" | "INACTIVE";
|
||||||
|
|
||||||
actorName?: string;
|
|
||||||
workName?: string;
|
workName?: string;
|
||||||
contactName?: string;
|
contactName?: string;
|
||||||
contactTel?: string;
|
contactTel?: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue