feat: disabling accounting for deals and groups
This commit is contained in:
@@ -26,6 +26,7 @@ export type DealSchema = {
|
|||||||
isDeleted: boolean;
|
isDeleted: boolean;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
isLocked: boolean;
|
isLocked: boolean;
|
||||||
|
isAccounted: boolean;
|
||||||
client: ClientSchema;
|
client: ClientSchema;
|
||||||
comment: string;
|
comment: string;
|
||||||
shippingWarehouse?: (ShippingWarehouseSchema | string | null);
|
shippingWarehouse?: (ShippingWarehouseSchema | string | null);
|
||||||
|
|||||||
@@ -320,13 +320,16 @@ const Content: FC<Props> = ({ deal }) => {
|
|||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label={"Сделка завершена"}
|
label={"Учет выручки"}
|
||||||
{...form.getInputProps("isCompleted")}
|
{...form.getInputProps("isAccounted", { type: "checkbox" })}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label={"Сделка удалена"}
|
label={"Завершена"}
|
||||||
{...form.getInputProps("isDeleted")}
|
{...form.getInputProps("isCompleted", { type: "checkbox" })}
|
||||||
|
/>
|
||||||
|
<Checkbox
|
||||||
|
label={"Удалена"}
|
||||||
|
{...form.getInputProps("isDeleted", { type: "checkbox" })}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Reference in New Issue
Block a user