Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: supplier quote summary and properties

Brad Barbin5a1baa23b540
diff --git a/apps/carbon/app/components/Form/Item.tsx b/apps/carbon/app/components/Form/Item.tsx
index ecfc7fb15b..d3125bc78a 100644
--- a/apps/carbon/app/components/Form/Item.tsx
+++ b/apps/carbon/app/components/Form/Item.tsx
@@ -234,9 +234,10 @@ const Item = ({
name: created,
description: "",
itemTrackingType: "Inventory",
- replenishmentSystem: "Make",
+ replenishmentSystem: props?.replenishmentSystem ?? "Make",
unitOfMeasureCode: "EA",
- defaultMethodType: "Make",
+ defaultMethodType:
+ props?.replenishmentSystem === "Buy" ? "Pick" : "Make",
active: props?.includeInactive === undefined,
unitCost: 0,
tags: [],
@@ -304,8 +305,9 @@ const Item = ({
description: "",
itemTrackingType: "Inventory",
unitOfMeasureCode: "EA",
- replenishmentSystem: "Buy",
- defaultMethodType: "Buy",
+ replenishmentSystem: props?.replenishmentSystem ?? "Buy",
+ defaultMethodType:
+ props?.replenishmentSystem === "Buy" ? "Pick" : "Make",
active: props?.includeInactive === undefined,
unitCost: 0,
tags: [],
diff --git a/apps/carbon/app/components/Form/SupplierLocation.tsx b/apps/carbon/app/components/Form/SupplierLocation.tsx
index 3a24c162ca..5947260305 100644
--- a/apps/carbon/app/components/Form/SupplierLocation.tsx
+++ b/apps/carbon/app/components/Form/SupplierLocation.tsx
@@ -16,9 +16,19 @@ type SupplierLocationSelectProps = Omit<
"options" | "onChange" | "inline"
> & {
supplier?: string;
+ inline?: boolean;
onChange?: (supplier: SupplierLocationType | null) => void;
};
+const SupplierLocationPreview = (
+ value: string,
+ options: { value: string; label: string }[]
+) => {
+ const location = options.find((o) => o.value === value);
+ if (!location) return null;
+ return <span>{location.label}</span>;
+};
+
const SupplierLocation = (props: SupplierLocationSelectProps) => {
const newLocationModal = useDisclosure();
// const [created, setCreated] = useState<string>("");
@@ -65,6 +75,7 @@ const SupplierLocation = (props: SupplierLocationSelectProps) => {
ref={triggerRef}
options={options}
{...props}
+ inline={props?.inline ? SupplierLocationPreview : undefined}
label={props?.label ?? "Supplier Location"}
onChange={onChange}
onCreateOption={(option) => {
diff --git a/apps/carbon/app/modules/purchasing/purchasing.models.ts b/apps/carbon/app/modules/purchasing/purchasing.models.ts
index 36994ddb6e..318e8f22dd 100644
--- a/apps/carbon/app/modules/purchasing/purchasing.models.ts
+++ b/apps/carbon/app/modules/purchasing/purchasing.models.ts
@@ -230,12 +230,7 @@ export const supplierStatusValidator = z.object({
name: z.string().min(1, { message: "Name is required" }),
});
-export const supplierQuoteStatusType = [
- "Draft",
- "Submitted",
- "Accepted",
- "Rejected",
-] as const;
+export const supplierQuoteStatusType = ["Active", "Expired"] as const;
export const supplierQuoteValidator = z.object({
id: zfd.text(z.string().optional()),
@@ -246,7 +241,7 @@ export const supplierQuoteValidator = z.object({
supplierReference: zfd.text(z.string().optional()),
status: z.enum(supplierQuoteStatusType).optional(),
notes: z.any().optional(),
- dueDate: zfd.text(z.string().optional()),
+ quotedDate: zfd.text(z.string().optional()),
expirationDate: zfd.text(z.string().optional()),
currencyCode: zfd.text(z.string().optional()),
exchangeRate: zfd.numeric(z.number().optional()),
diff --git a/apps/carbon/app/modules/purchasing/purchasing.service.ts b/apps/carbon/app/modules/purchasing/purchasing.service.ts
index e9200819aa..6d1b705001 100644
--- a/apps/carbon/app/modules/purchasing/purchasing.service.ts
+++ b/apps/carbon/app/modules/purchasing/purchasing.service.ts
@@ -17,6 +17,7 @@ import type {
supplierPaymentValidator,
supplierProcessValidator,
supplierQuoteLineValidator,
+ supplierQuoteStatusType,
supplierQuoteValidator,
supplierShippingValidator,
supplierStatusValidator,
@@ -909,6 +910,22 @@ export async function updateSupplierPayment(
.eq("supplierId", supplierPayment.supplierId);
}
+export async function updateSupplierQuoteExchangeRate(
+ client: SupabaseClient<Database>,
+ data: {
+ id: string;
+ exchangeRate: number;
+ }
+) {
+ const update = {
+ id: data.id,
+ exchangeRate: data.exchangeRate,
+ exchangeRateUpdatedAt: new Date().toISOString(),
+ };
+
+ return client.from("supplierQuote").update(update).eq("id", update.id);
+}
+
export async function updateSupplierQuoteFavorite(
client: SupabaseClient<Database>,
args: {
@@ -931,6 +948,18 @@ export async function updateSupplierQuoteFavorite(
}
}
+export async function updateSupplierQuoteStatus(
+ client: SupabaseClient<Database>,
+ update: {
+ id: string;
+ status: (typeof supplierQuoteStatusType)[number];
+ assignee: null | undefined;
+ updatedBy: string;
+ }
+) {
+ return client.from("supplierQuote").update(update).eq("id", update.id);
+}
+
export async function updateSupplierShipping(
client: SupabaseClient<Database>,
supplierShipping: z.infer<typeof supplierShippingValidator> & {
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx
index 4a3c55e618..3beb010bb3 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx
@@ -53,7 +53,7 @@ export default function SupplierQuoteExplorer() {
const newSupplierQuoteLineDisclosure = useDisclosure();
const deleteLineDisclosure = useDisclosure();
const [deleteLine, setDeleteLine] = useState<SupplierQuoteLine | null>(null);
- const isDisabled = routeData?.quote?.status !== "Draft";
+ const isDisabled = routeData?.quote?.status !== "Active";
const onDeleteLine = (line: SupplierQuoteLine) => {
setDeleteLine(line);
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx
index 6d67d26929..57956a16cf 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx
@@ -48,8 +48,8 @@ const SupplierQuoteForm = ({ initialValues }: SupplierQuoteFormProps) => {
id: initialValues.supplierId,
currencyCode: initialValues.currencyCode,
});
- const isSupplier = permissions.is("supplier");
- const isDisabled = initialValues?.status !== "Draft";
+
+ const isDisabled = initialValues?.status !== "Active";
const isEditing = initialValues.id !== undefined;
const exchangeRateFetcher = useFetcher<{ exchangeRate: number }>();
@@ -143,16 +143,8 @@ const SupplierQuoteForm = ({ initialValues }: SupplierQuoteFormProps) => {
isOptional
supplier={supplier.id}
/>
- <DatePicker
- name="dueDate"
- label="Due Date"
- isDisabled={isSupplier}
- />
- <DatePicker
- name="expirationDate"
- label="Expiration Date"
- isDisabled={isSupplier}
- />
+ <DatePicker name="quotedDate" label="Quoted Date" />
+ <DatePicker name="expirationDate" label="Expiration Date" />
<Currency
name="currencyCode"
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsx
new file mode 100644
index 0000000000..d24af48b88
--- /dev/null
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsx
@@ -0,0 +1,84 @@
+import { HStack, Heading, IconButton } from "@carbon/react";
+
+import { Link, useParams } from "@remix-run/react";
+import { LuPanelLeft, LuPanelRight } from "react-icons/lu";
+import { usePanels } from "~/components/Layout";
+
+import { useRouteData } from "~/hooks";
+import type {
+ SupplierInteraction,
+ SupplierQuote,
+ SupplierQuoteLine,
+ SupplierQuoteLinePrice,
+} from "~/modules/purchasing";
+import { path } from "~/utils/path";
+
+import SupplierQuoteStatus from "./SupplierQuoteStatus";
+
+const SupplierQuoteHeader = () => {
+ const { id } = useParams();
+ if (!id) throw new Error("id not found");
+
+ const { toggleExplorer, toggleProperties } = usePanels();
+
+ const routeData = useRouteData<{
+ quote: SupplierQuote;
+ lines: SupplierQuoteLine[];
+ interaction: SupplierInteraction;
+ prices: SupplierQuoteLinePrice[];
+ }>(path.to.supplierQuote(id));
+
+ // const convertToOrderModal = useDisclosure();
+
+ return (
+ <>
+ <div className="flex flex-shrink-0 items-center justify-between p-2 bg-card border-b border-border h-[50px] overflow-x-auto scrollbar-hide">
+ <HStack className="w-full justify-between">
+ <HStack>
+ <IconButton
+ aria-label="Toggle Explorer"
+ icon={<LuPanelLeft />}
+ onClick={toggleExplorer}
+ variant="ghost"
+ />
+ <Link to={path.to.supplierQuoteDetails(id)}>
+ <Heading size="h4">
+ <span>{routeData?.quote?.supplierQuoteId}</span>
+ </Heading>
+ </Link>
+ <SupplierQuoteStatus status={routeData?.quote?.status} />
+ </HStack>
+ <HStack>
+ {/* <Button
+ isDisabled={
+ routeData?.quote?.status !== "Active" ||
+ !permissions.can("update", "purchasing")
+ }
+ leftIcon={<LuShoppingCart />}
+ onClick={convertToOrderModal.onOpen}
+ >
+ Order
+ </Button> */}
+
+ <IconButton
+ aria-label="Toggle Properties"
+ icon={<LuPanelRight />}
+ onClick={toggleProperties}
+ variant="ghost"
+ />
+ </HStack>
+ </HStack>
+ </div>
+
+ {/* <SupplierQuoteToOrderModal
+ isOpen={convertToOrderModal.isOpen}
+ onClose={convertToOrderModal.onClose}
+ quote={routeData?.quote!}
+ lines={routeData?.lines ?? []}
+ pricing={routeData?.prices ?? []}
+ /> */}
+ </>
+ );
+};
+
+export default SupplierQuoteHeader;
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
index 1fbe231e60..cc94956a1a 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
@@ -72,9 +72,7 @@ const SupplierQuoteLineForm = ({
quote: SupplierQuote;
}>(path.to.supplierQuote(id));
- const isEditable = ["Draft", "Submitted"].includes(
- routeData?.quote?.status ?? ""
- );
+ const isEditable = ["Active"].includes(routeData?.quote?.status ?? "");
const isEditing = initialValues.id !== undefined;
@@ -274,7 +272,7 @@ const SupplierQuoteLineForm = ({
/>
<UnitOfMeasure
name="purchaseUnitOfMeasureCode"
- label="Unit of Measure"
+ label="Purchase Unit of Measure"
value={itemData.purchaseUom}
onChange={(newValue) => {
if (newValue) {
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLinePricing.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLinePricing.tsx
index 4336574543..b0c262fef6 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLinePricing.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLinePricing.tsx
@@ -18,6 +18,8 @@ import {
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
import { useEffect, useState } from "react";
+import { Enumerable } from "~/components/Enumerable";
+import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";
import {
useCurrencyFormatter,
usePermissions,
@@ -42,8 +44,6 @@ const SupplierQuoteLinePricing = ({
const quantities = line.quantity ?? [1];
- console.log({ line, pricesByQuantity });
-
const { id, lineId } = useParams();
if (!id) throw new Error("Could not find id");
if (!lineId) throw new Error("Could not find lineId");
@@ -59,7 +59,7 @@ const SupplierQuoteLinePricing = ({
}>(path.to.supplierQuote(id));
const isEditable =
permissions.can("update", "purchasing") &&
- ["Draft"].includes(routeData?.quote?.status ?? "");
+ ["Active"].includes(routeData?.quote?.status ?? "");
const { carbon } = useCarbon();
const fetcher = useFetcher<{ id?: string; error: string | null }>();
@@ -137,6 +137,8 @@ const SupplierQuoteLinePricing = ({
}
};
+ const unitOfMeasures = useUnitOfMeasure();
+
return (
<Card>
<CardHeader>
@@ -197,6 +199,13 @@ const SupplierQuoteLinePricing = ({
<Td className="border-r border-border">
<HStack className="w-full justify-between ">
<span>Unit Price</span>
+ <Enumerable
+ value={
+ unitOfMeasures.find(
+ (uom) => uom.value === line.purchaseUnitOfMeasureCode
+ )?.label ?? null
+ }
+ />
</HStack>
</Td>
{quantities.map((quantity) => {
@@ -232,13 +241,22 @@ const SupplierQuoteLinePricing = ({
<Td className="border-r border-border group-hover:bg-muted/50">
<HStack className="w-full justify-between ">
<span>Net Unit Price</span>
+ <Enumerable
+ value={
+ unitOfMeasures.find(
+ (uom) => uom.value === line.inventoryUnitOfMeasureCode
+ )?.label ?? null
+ }
+ />
</HStack>
</Td>
{netPricesByQuantity.map((price, index) => {
return (
<Td key={index} className="group-hover:bg-muted/50">
<VStack spacing={0}>
- <span>{formatter.format(price)}</span>
+ <span>
+ {formatter.format(price / (line.conversionFactor ?? 1))}
+ </span>
</VStack>
</Td>
);
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx
new file mode 100644
index 0000000000..12449fedda
--- /dev/null
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx
@@ -0,0 +1,376 @@
+import type { Json } from "@carbon/database";
+import { DatePicker, InputControlled, ValidatedForm } from "@carbon/form";
+import {
+ Button,
+ HStack,
+ IconButton,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+ VStack,
+ toast,
+} from "@carbon/react";
+import { useLocale } from "@react-aria/i18n";
+import { useFetcher, useParams } from "@remix-run/react";
+import { useCallback, useEffect, useMemo } from "react";
+import { LuCopy, LuInfo, LuLink, LuRefreshCcw } from "react-icons/lu";
+import { z } from "zod";
+import { zfd } from "zod-form-data";
+import { Assignee, useOptimisticAssignment } from "~/components";
+import {
+ Currency,
+ Supplier,
+ SupplierContact,
+ SupplierLocation,
+} from "~/components/Form";
+import CustomFormInlineFields from "~/components/Form/CustomFormInlineFields";
+import { usePermissions, useRouteData, useUser } from "~/hooks";
+import type { action } from "~/routes/x+/items+/update";
+import type { action as exchangeRateAction } from "~/routes/x+/supplier-quote+/$id.exchange-rate";
+import { path } from "~/utils/path";
+import { copyToClipboard } from "~/utils/string";
+import type { SupplierQuote } from "../../types";
+
+const SupplierQuoteProperties = () => {
+ const { id } = useParams();
+ if (!id) throw new Error("id not found");
+
+ const routeData = useRouteData<{
+ quote: SupplierQuote;
+ }>(path.to.supplierQuote(id));
+
+ const fetcher = useFetcher<typeof action>();
+ useEffect(() => {
+ if (fetcher.data?.error) {
+ toast.error(fetcher.data.error.message);
+ }
+ }, [fetcher.data]);
+
+ const { company } = useUser();
+ const exchangeRateFetcher = useFetcher<typeof exchangeRateAction>();
+ const { locale } = useLocale();
+ const formatter = useMemo(
+ () =>
+ new Intl.DateTimeFormat(locale, {
+ dateStyle: "medium",
+ timeStyle: "short",
+ }),
+ [locale]
+ );
+
+ const onUpdate = useCallback(
+ (field: keyof SupplierQuote, value: string | null) => {
+ if (value === routeData?.quote[field]) {
+ return;
+ }
+ const formData = new FormData();
+
+ formData.append("ids", id);
+ formData.append("field", field);
+ formData.append("value", value ?? "");
+ fetcher.submit(formData, {
+ method: "post",
+ action: path.to.bulkUpdateSupplierQuote,
+ });
+ },
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [id, routeData?.quote]
+ );
+
+ const onUpdateCustomFields = useCallback(
+ (value: string) => {
+ const formData = new FormData();
+
+ formData.append("ids", id);
+ formData.append("table", "supplierQuote");
+ formData.append("value", value);
+
+ fetcher.submit(formData, {
+ method: "post",
+ action: path.to.customFields,
+ });
+ },
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [id]
+ );
+
+ const optimisticAssignment = useOptimisticAssignment({
+ id,
+ table: "supplierQuote",
+ });
+ const assignee =
+ optimisticAssignment !== undefined
+ ? optimisticAssignment
+ : routeData?.quote?.assignee;
+ const permissions = usePermissions();
+
+ const isDisabled =
+ !permissions.can("update", "sales") ||
+ !["Active"].includes(routeData?.quote?.status ?? "");
+
+ return (
+ <VStack
+ spacing={4}
+ className="w-96 bg-card h-full overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent border-l border-border px-4 py-2 text-sm"
+ >
+ <VStack spacing={4}>
+ <HStack className="w-full justify-between">
+ <h3 className="text-xs text-muted-foreground">Properties</h3>
+ <HStack spacing={1}>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <Button
+ variant="ghost"
+ aria-label="Link"
+ size="sm"
+ className="p-1"
+ onClick={() =>
+ copyToClipboard(
+ window.location.origin + path.to.supplierQuoteDetails(id)
+ )
+ }
+ >
+ <LuLink className="w-3 h-3" />
+ </Button>
+ </TooltipTrigger>
+ <TooltipContent>
+ <span>Copy link to Quote</span>
+ </TooltipContent>
+ </Tooltip>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <Button
+ variant="ghost"
+ aria-label="Copy"
+ size="sm"
+ className="p-1"
+ onClick={() =>
+ copyToClipboard(routeData?.quote?.supplierQuoteId ?? "")
+ }
+ >
+ <LuCopy className="w-3 h-3" />
+ </Button>
+ </TooltipTrigger>
+ <TooltipContent>
+ <span>Copy Quote number</span>
+ </TooltipContent>
+ </Tooltip>
+ </HStack>
+ </HStack>
+ <span className="text-sm">{routeData?.quote?.supplierQuoteId}</span>
+ </VStack>
+ <Assignee
+ id={id}
+ table="supplierQuote"
+ value={assignee ?? ""}
+ variant="inline"
+ isReadOnly={!permissions.can("update", "sales")}
+ />
+ <ValidatedForm
+ defaultValues={{ supplierId: routeData?.quote?.supplierId }}
+ validator={z.object({
+ supplierId: z.string().min(1, { message: "Supplier is required" }),
+ })}
+ className="w-full"
+ >
+ <Supplier
+ name="supplierId"
+ inline
+ isReadOnly={isDisabled}
+ onChange={(value) => {
+ if (value?.value) {
+ onUpdate("supplierId", value.value);
+ }
+ }}
+ />
+ </ValidatedForm>
+
+ <ValidatedForm
+ defaultValues={{
+ supplierReference: routeData?.quote?.supplierReference ?? undefined,
+ }}
+ validator={z.object({
+ supplierReference: zfd.text(z.string().optional()),
+ })}
+ className="w-full"
+ >
+ <InputControlled
+ name="supplierReference"
+ label="Supplier Ref. Number"
+ value={routeData?.quote?.supplierReference ?? ""}
+ size="sm"
+ inline
+ isReadOnly={isDisabled}
+ onBlur={(e) => {
+ onUpdate("supplierReference", e.target.value);
+ }}
+ />
+ </ValidatedForm>
+
+ <ValidatedForm
+ defaultValues={{
+ supplierLocationId: routeData?.quote?.supplierLocationId ?? "",
+ }}
+ validator={z.object({
+ supplierLocationId: zfd.text(z.string().optional()),
+ })}
+ className="w-full"
+ >
+ <SupplierLocation
+ name="supplierLocationId"
+ supplier={routeData?.quote?.supplierId ?? ""}
+ inline
+ isReadOnly={isDisabled}
+ onChange={(supplierLocation) => {
+ if (supplierLocation?.id) {
+ onUpdate("supplierLocationId", supplierLocation.id);
+ }
+ }}
+ />
+ </ValidatedForm>
+
+ <ValidatedForm
+ defaultValues={{
+ supplierContactId: routeData?.quote?.supplierContactId ?? "",
+ }}
+ validator={z.object({
+ supplierContactId: zfd.text(z.string().optional()),
+ })}
+ className="w-full"
+ >
+ <SupplierContact
+ name="supplierContactId"
+ supplier={routeData?.quote?.supplierId ?? ""}
+ inline
+ isReadOnly={isDisabled}
+ onChange={(supplierContact) => {
+ if (supplierContact?.id) {
+ onUpdate("supplierContactId", supplierContact.id);
+ }
+ }}
+ />
+ </ValidatedForm>
+
+ <ValidatedForm
+ defaultValues={{
+ expirationDate: routeData?.quote?.expirationDate ?? "",
+ }}
+ validator={z.object({
+ expirationDate: z
+ .string()
+ .min(1, { message: "Expiration date is required" }),
+ })}
+ className="w-full"
+ >
+ <DatePicker
+ name="expirationDate"
+ label="Expiration Date"
+ inline
+ isDisabled={isDisabled}
+ onChange={(date) => {
+ onUpdate("expirationDate", date);
+ }}
+ />
+ </ValidatedForm>
+
+ <ValidatedForm
+ defaultValues={{
+ quotedDate: routeData?.quote?.quotedDate ?? "",
+ }}
+ validator={z.object({
+ quotedDate: zfd.text(z.string().optional()),
+ })}
+ className="w-full"
+ >
+ <DatePicker
+ name="quotedDate"
+ label="Quoted Date"
+ inline
+ isDisabled={isDisabled}
+ onChange={(date) => {
+ onUpdate("quotedDate", date);
+ }}
+ />
+ </ValidatedForm>
+
+ <ValidatedForm
+ defaultValues={{
+ currencyCode: routeData?.quote?.currencyCode ?? undefined,
+ }}
+ validator={z.object({
+ currencyCode: zfd.text(z.string().optional()),
+ })}
+ className="w-full"
+ >
+ <Currency
+ name="currencyCode"
+ label="Currency"
+ inline
+ value={routeData?.quote?.currencyCode ?? ""}
+ isReadOnly={isDisabled}
+ onChange={(value) => {
+ if (value?.value) {
+ onUpdate("currencyCode", value.value);
+ }
+ }}
+ />
+ </ValidatedForm>
+
+ {routeData?.quote?.currencyCode &&
+ routeData?.quote?.currencyCode !== company.baseCurrencyCode && (
+ <VStack spacing={2}>
+ <HStack spacing={1}>
+ <span className="text-xs text-muted-foreground">
+ Exchange Rate
+ </span>
+ {routeData?.quote?.exchangeRateUpdatedAt && (
+ <Tooltip>
+ <TooltipTrigger tabIndex={-1}>
+ <LuInfo className="w-4 h-4" />
+ </TooltipTrigger>
+ <TooltipContent>
+ Last updated:{" "}
+ {formatter.format(
+ new Date(routeData?.quote?.exchangeRateUpdatedAt ?? "")
+ )}
+ </TooltipContent>
+ </Tooltip>
+ )}
+ </HStack>
+ <HStack className="w-full justify-between">
+ <span>{routeData?.quote?.exchangeRate}</span>
+ <IconButton
+ size="sm"
+ variant="secondary"
+ aria-label="Refresh"
+ icon={<LuRefreshCcw />}
+ isDisabled={isDisabled}
+ onClick={() => {
+ const formData = new FormData();
+ formData.append(
+ "currencyCode",
+ routeData?.quote?.currencyCode ?? ""
+ );
+ exchangeRateFetcher.submit(formData, {
+ method: "post",
+ action: path.to.supplierQuoteExchangeRate(id),
+ });
+ }}
+ />
+ </HStack>
+ </VStack>
+ )}
+ <CustomFormInlineFields
+ customFields={
+ (routeData?.quote?.customFields ?? {}) as Record<string, Json>
+ }
+ table="quote"
+ tags={[]}
+ onUpdate={onUpdateCustomFields}
+ isDisabled={isDisabled}
+ />
+ </VStack>
+ );
+};
+
+export default SupplierQuoteProperties;
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx
index 448ab8b0fc..881f2b61ed 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx
@@ -1,21 +1,16 @@
import { Status } from "@carbon/react";
import type { supplierQuoteStatusType } from "~/modules/purchasing";
-type QuoteStatusProps = {
+type SupplierQuoteStatusProps = {
status?: (typeof supplierQuoteStatusType)[number] | null;
};
-const SupplierQuoteStatus = ({ status }: QuoteStatusProps) => {
+const SupplierQuoteStatus = ({ status }: SupplierQuoteStatusProps) => {
switch (status) {
- case "Draft":
- return <Status color="gray">{status}</Status>;
- case "Submitted":
- return <Status color="yellow">{status}</Status>;
- case "Accepted":
+ case "Active":
return <Status color="green">{status}</Status>;
- case "Rejected":
- return <Status color="red">{status}</Status>;
-
+ case "Expired":
+ return <Status color="yellow">{status}</Status>;
default:
return null;
}
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsx
new file mode 100644
index 0000000000..5bcb3b2df0
--- /dev/null
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary.tsx
@@ -0,0 +1,296 @@
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ HStack,
+ Heading,
+ IconButton,
+ Table,
+ Tbody,
+ Td,
+ Th,
+ Thead,
+ Tr,
+ VStack,
+} from "@carbon/react";
+import { formatDate } from "@carbon/utils";
+import { useLocale } from "@react-aria/i18n";
+import { Link, useParams } from "@remix-run/react";
+import { motion } from "framer-motion";
+import { useMemo, useState } from "react";
+import { LuChevronDown, LuExternalLink, LuImage } from "react-icons/lu";
+import { SupplierAvatar } from "~/components";
+import { useRouteData, useUser } from "~/hooks";
+import { getPrivateUrl, path } from "~/utils/path";
+import type {
+ PurchaseOrderLine,
+ SupplierQuote,
+ SupplierQuoteLine,
+ SupplierQuoteLinePrice,
+} from "../../types";
+
+const LineItems = ({
+ currencyCode,
+ formatter,
+ locale,
+}: {
+ currencyCode: string;
+ formatter: Intl.NumberFormat;
+ locale: string;
+}) => {
+ const { company } = useUser();
+ const { id } = useParams();
+ if (!id) throw new Error("Could not find quote id");
+ const routeData = useRouteData<{
+ quote: SupplierQuote;
+ lines: SupplierQuoteLine[];
+ prices: SupplierQuoteLinePrice[];
+ }>(path.to.supplierQuote(id));
+
+ const [openItems, setOpenItems] = useState<string[]>([]);
+
+ const pricingByLine = useMemo(
+ () =>
+ routeData?.lines?.reduce<Record<string, SupplierQuoteLinePrice[]>>(
+ (acc, line) => {
+ if (!line.id) {
+ return acc;
+ }
+ acc[line.id!] =
+ routeData?.prices?.filter(
+ (p) => p.supplierQuoteLineId === line.id
+ ) ?? [];
+ return acc;
+ },
+ {}
+ ) ?? {},
+ [routeData?.lines, routeData?.prices]
+ );
+
+ const toggleOpen = (id: string) => {
+ setOpenItems((prev) =>
+ prev.includes(id) ? prev.filter((item) => item !== id) : [...prev, id]
+ );
+ };
+
+ const shouldConvertCurrency =
+ routeData?.quote.currencyCode !== company?.baseCurrencyCode;
+
+ return (
+ <VStack spacing={8} className="w-full overflow-hidden">
+ {routeData?.lines?.map((line) => {
+ const prices = pricingByLine[line.id!];
+
+ if (!line || !prices || !line.id) {
+ return null;
+ }
+
+ return (
+ <motion.div
+ key={line.id}
+ initial={{ opacity: 0, y: 50 }}
+ animate={{ opacity: 1, y: 0 }}
+ transition={{ duration: 0.5 }}
+ className="py-6 w-full"
+ >
+ <HStack spacing={4} className="items-start">
+ {line.thumbnailPath ? (
+ <img
+ alt={line.itemReadableId!}
+ className="w-24 h-24 bg-gradient-to-bl from-muted to-muted/40 rounded-lg border-2 border-transparent"
+ src={getPrivateUrl(line.thumbnailPath)}
+ />
+ ) : (
+ <div className="w-20 h-20 bg-gradient-to-bl from-muted to-muted/40 rounded-lg border-2 border-transparent p-2">
+ <LuImage className="w-16 h-16 text-muted-foreground" />
+ </div>
+ )}
+
+ <VStack spacing={0} className="w-full">
+ <div
+ className="flex flex-col cursor-pointer w-full"
+ onClick={() => toggleOpen(line.id!)}
+ >
+ <div className="flex items-center gap-x-4 justify-between flex-grow">
+ <HStack spacing={0} className="min-w-0 flex-shrink">
+ <Heading className="truncate">
+ {line.itemReadableId}
+ </Heading>
+ <Link
+ to={path.to.supplierQuoteLine(id, line.id!)}
+ className="text-muted-foreground"
+ >
+ <IconButton
+ aria-label="View Line Item"
+ icon={<LuExternalLink />}
+ variant="ghost"
+ />
+ </Link>
+ </HStack>
+ <HStack spacing={4}>
+ <motion.div
+ animate={{
+ rotate: openItems.includes(line.id) ? 180 : 0,
+ }}
+ transition={{ duration: 0.3 }}
+ >
+ <LuChevronDown size={24} />
+ </motion.div>
+ </HStack>
+ </div>
+ <span className="text-muted-foreground text-base truncate">
+ {line.description}
+ </span>
+ </div>
+ </VStack>
+ </HStack>
+
+ <motion.div
+ initial="collapsed"
+ animate={openItems.includes(line.id) ? "open" : "collapsed"}
+ variants={{
+ open: { opacity: 1, height: "auto", marginTop: 16 },
+ collapsed: { opacity: 0, height: 0, marginTop: 0 },
+ }}
+ transition={{ duration: 0.3 }}
+ className="w-full overflow-hidden"
+ >
+ <LinePricingOptions
+ formatter={formatter}
+ line={line}
+ options={pricingByLine[line.id!]}
+ quoteCurrency={routeData?.quote.currencyCode ?? "USD"}
+ quoteExchangeRate={routeData?.quote.exchangeRate ?? 1}
+ shouldConvertCurrency={shouldConvertCurrency}
+ locale={locale}
+ />
+ </motion.div>
+ </motion.div>
+ );
+ })}
+ </VStack>
+ );
+};
+
+type LinePricingOptionsProps = {
+ line: SupplierQuoteLine;
+ options: SupplierQuoteLinePrice[];
+ quoteCurrency: string;
+ shouldConvertCurrency: boolean;
+ quoteExchangeRate: number;
+ locale: string;
+ formatter: Intl.NumberFormat;
+};
+
+const LinePricingOptions = ({
+ line,
+ options,
+ quoteCurrency,
+ shouldConvertCurrency,
+ quoteExchangeRate,
+ locale,
+ formatter,
+}: LinePricingOptionsProps) => {
+ const { id } = useParams();
+ if (!id) throw new Error("Could not find quote id");
+
+ return (
+ <VStack spacing={4} className="w-full">
+ <Table>
+ <Thead>
+ <Tr>
+ <Th>Quantity</Th>
+ <Th>Unit Price</Th>
+ <Th>Lead Time</Th>
+ <Th>Subtotal</Th>
+ </Tr>
+ </Thead>
+ <Tbody>
+ {!Array.isArray(options) || options.length === 0 ? (
+ <Tr>
+ <Td colSpan={6} className="text-center py-8">
+ No pricing options found
+ </Td>
+ </Tr>
+ ) : (
+ options.map(
+ (option, index) =>
+ (line?.quantity?.includes(option.quantity) ||
+ option.quantity === 0) && (
+ <Tr key={index}>
+ <Td>{option.quantity}</Td>
+ <Td>
+ {formatter.format(option.convertedNetUnitPrice ?? 0)}
+ </Td>
+
+ <Td>
+ {new Intl.NumberFormat(locale, {
+ style: "unit",
+ unit: "day",
+ }).format(option.leadTime)}
+ </Td>
+ <Td>
+ {formatter.format(
+ (option.convertedNetUnitPrice ?? 0) * option.quantity +
+ (option.convertedShippingCost ?? 0)
+ )}
+ </Td>
+ </Tr>
+ )
+ )
+ )}
+ </Tbody>
+ </Table>
+ </VStack>
+ );
+};
+
+const SupplierQuoteSummary = () => {
+ const { id } = useParams();
+ if (!id) throw new Error("Could not find quote id");
+ const routeData = useRouteData<{
+ quote: SupplierQuote;
+ lines: SupplierQuoteLine[];
+ prices: SupplierQuoteLinePrice[];
+ purchaseOrderLines: PurchaseOrderLine[];
+ }>(path.to.supplierQuote(id));
+
+ const { locale } = useLocale();
+ const formatter = useMemo(
+ () =>
+ new Intl.NumberFormat(locale, {
+ style: "currency",
+ currency: routeData?.quote.currencyCode ?? "USD",
+ }),
+ [locale, routeData?.quote.currencyCode]
+ );
+
+ return (
+ <Card>
+ <CardHeader>
+ <HStack className="justify-between items-center">
+ <div className="flex flex-col gap-1">
+ <CardTitle>Quote {routeData?.quote.supplierQuoteId}</CardTitle>
+ {routeData?.quote?.expirationDate && (
+ <CardDescription>
+ Expires {formatDate(routeData?.quote.expirationDate)}
+ </CardDescription>
+ )}
+ </div>
+ <SupplierAvatar supplierId={routeData?.quote.supplierId ?? null} />
+ </HStack>
+ </CardHeader>
+ <CardContent>
+ <LineItems
+ currencyCode={routeData?.quote.currencyCode ?? "USD"}
+ locale={locale}
+ formatter={formatter}
+ />
+ </CardContent>
+ </Card>
+ );
+};
+
+export default SupplierQuoteSummary;
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
index 0b559cd70e..e74e1b028b 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx
@@ -188,8 +188,8 @@ const SupplierQuotesTable = memo(
},
},
{
- accessorKey: "dueDate",
- header: "Due Date",
+ accessorKey: "quotedDate",
+ header: "Quoted Date",
cell: (item) => formatDate(item.getValue<string>()),
meta: {
icon: <LuCalendar />,
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/index.ts b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/index.ts
index e0fad16032..48173d3c47 100644
--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/index.ts
+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/index.ts
@@ -1,15 +1,19 @@
import DeleteSupplierQuoteLine from "./DeleteSupplierQuoteLine";
import SupplierQuoteForm from "./SupplierQuoteForm";
+import SupplierQuoteHeader from "./SupplierQuoteHeader";
import SupplierQuoteLineForm from "./SupplierQuoteLineForm";
import SupplierQuoteLinePricing from "./SupplierQuoteLinePricing";
+import SupplierQuoteProperties from "./SupplierQuoteProperties";
import SupplierQuoteStatus from "./SupplierQuoteStatus";
import SupplierQuotesTable from "./SupplierQuotesTable";
export {
DeleteSupplierQuoteLine,
SupplierQuoteForm,
+ SupplierQuoteHeader,
SupplierQuoteLineForm,
SupplierQuoteLinePricing,
+ SupplierQuoteProperties,
SupplierQuoteStatus,
SupplierQuotesTable,
};
diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteSummary.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteSummary.tsx
index 0d2b6cc313..8baad60bb3 100644
--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteSummary.tsx
+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteSummary.tsx
@@ -653,7 +653,7 @@ const QuoteSummary = () => {
<CardHeader>
<HStack className="justify-between items-center">
<div className="flex flex-col gap-1">
- <CardTitle>Summary</CardTitle>
+ <CardTitle>Quote {routeData?.quote.quoteId}</CardTitle>
{routeData?.quote?.expirationDate && (
<CardDescription>
Expires {formatDate(routeData?.quote.expirationDate)}
diff --git a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx
index 9910cbb919..3e0c77f26c 100644
--- a/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx
+++ b/apps/carbon/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx
@@ -1,6 +1,7 @@
import {
Card,
CardContent,
+ CardDescription,
CardHeader,
CardTitle,
Heading,
@@ -12,6 +13,7 @@ import {
Tr,
VStack,
} from "@carbon/react";
+import { formatDate } from "@carbon/utils";
import { useLocale } from "@react-aria/i18n";
import { Link, useParams } from "@remix-run/react";
import { motion } from "framer-motion";
@@ -303,7 +305,14 @@ const SalesOrderSummary = () => {
<CardHeader>
<HStack className="justify-between items-center">
<div className="flex flex-col gap-1">
- <CardTitle>Summary</CardTitle>
+ <CardTitle>
+ Sales Order {routeData?.salesOrder.salesOrderId}
+ </CardTitle>
+ {routeData?.salesOrder?.orderDate && (
+ <CardDescription>
+ Ordered {formatDate(routeData.salesOrder.orderDate)}
+ </CardDescription>
+ )}
</div>
<CustomerAvatar
customerId={routeData?.salesOrder?.customerId ?? null}
diff --git a/apps/carbon/app/routes/x+/_index.tsx b/apps/carbon/app/routes/x+/_index.tsx
index 053872333c..4510dacbd3 100644
--- a/apps/carbon/app/routes/x+/_index.tsx
+++ b/apps/carbon/app/routes/x+/_index.tsx
@@ -29,7 +29,7 @@ export default function AppIndexRoute() {
<Subheading>{formatter.format(date)}</Subheading>
<Hr />
<Subheading className="mb-8">Modules</Subheading>
- <div className="grid grid-cols-1 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6">
+ <div className="grid grid-cols-[repeat(auto-fill,minmax(min(100%,300px),1fr))] gap-6 mb-8">
{/* {permissions.can("view", "production") && (
<ModuleCard
module={{
@@ -68,9 +68,11 @@ const ModuleCard = ({ module }: { module: Authenticated<NavItem> }) => (
<Link
to={module.to}
prefetch="intent"
- className="flex flex-col gap-6 items-center justify-center py-8 border border-border shadow-md dark:border-0 dark:shadow-[0px_1px_0px_0px_hsla(0,0%,100%,.03)_inset,0px_0px_0px_1px_hsla(0,0%,100%,.03)_inset,0px_0px_0px_1px_rgba(0,0,0,.1),0px_2px_2px_0px_rgba(0,0,0,.1),0px_4px_4px_0px_rgba(0,0,0,.1),0px_8px_8px_0px_rgba(0,0,0,.1)] bg-gradient-to-bl from-card from-50% to-background rounded-lg text-center group ring-2 ring-transparent hover:ring-white/10 cursor-pointer"
+ className="flex flex-col gap-3 items-center justify-center py-8 border border-border shadow-md dark:border-0 dark:shadow-[0px_1px_0px_0px_hsla(0,0%,100%,.03)_inset,0px_0px_0px_1px_hsla(0,0%,100%,.03)_inset,0px_0px_0px_1px_rgba(0,0,0,.1),0px_2px_2px_0px_rgba(0,0,0,.1),0px_4px_4px_0px_rgba(0,0,0,.1),0px_8px_8px_0px_rgba(0,0,0,.1)] bg-gradient-to-bl from-card from-50% to-background rounded-lg text-center group ring-2 ring-transparent hover:ring-white/10 cursor-pointer"
>
- <module.icon className="text-2xl" />
+ <div className="p-4 rounded-full border">
+ <module.icon className="text-2xl" />
+ </div>
<span className="text-sm py-1 px-4 border border-border rounded-full group-hover:bg-accent">
{module.name}
</span>
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/$id.details.tsx b/apps/carbon/app/routes/x+/supplier-quote+/$id.details.tsx
index c481d53f59..c1e36c3b67 100644
--- a/apps/carbon/app/routes/x+/supplier-quote+/$id.details.tsx
+++ b/apps/carbon/app/routes/x+/supplier-quote+/$id.details.tsx
@@ -16,6 +16,7 @@ import {
supplierQuoteValidator,
upsertSupplierQuote,
} from "~/modules/purchasing";
+import SupplierQuoteSummary from "~/modules/purchasing/ui/SupplierQuote/SupplierQuoteSummary";
import { setCustomFields } from "~/utils/form";
import { path } from "~/utils/path";
@@ -75,10 +76,10 @@ export default function SupplierQuoteDetailsRoute() {
supplierLocationId: routeData?.quote?.supplierLocationId ?? "",
supplierContactId: routeData?.quote?.supplierContactId ?? "",
supplierReference: routeData?.quote?.supplierReference ?? "",
- dueDate: routeData?.quote?.dueDate ?? "",
+ quotedDate: routeData?.quote?.quotedDate ?? "",
expirationDate: routeData?.quote?.expirationDate ?? "",
supplierQuoteId: routeData?.quote?.supplierQuoteId ?? "",
- status: routeData?.quote?.status ?? "Draft",
+ status: routeData?.quote?.status ?? "Active",
currencyCode: routeData?.quote?.currencyCode ?? undefined,
exchangeRate: routeData?.quote?.exchangeRate ?? undefined,
exchangeRateUpdatedAt: routeData?.quote?.exchangeRateUpdatedAt ?? "",
@@ -86,6 +87,7 @@ export default function SupplierQuoteDetailsRoute() {
return (
<>
+ <SupplierQuoteSummary />
<SupplierInteractionNotes
key={`notes-${initialValues.id}`}
id={routeData.quote.id}
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.exchange-rate.tsx b/apps/carbon/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx
similarity index 81%
rename from apps/carbon/app/routes/x+/supplier-quote+/$quoteId.exchange-rate.tsx
rename to apps/carbon/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx
index 3c42464ced..2f346512d4 100644
--- a/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.exchange-rate.tsx
+++ b/apps/carbon/app/routes/x+/supplier-quote+/$id.exchange-rate.tsx
@@ -3,7 +3,7 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { redirect, type ActionFunctionArgs } from "@vercel/remix";
import { getCurrencyByCode } from "~/modules/accounting";
-import { updateQuoteExchangeRate } from "~/modules/sales";
+import { updateSupplierQuoteExchangeRate } from "~/modules/purchasing";
import { path } from "~/utils/path";
export async function action({ request, params }: ActionFunctionArgs) {
@@ -12,8 +12,8 @@ export async function action({ request, params }: ActionFunctionArgs) {
create: "sales",
});
- const { quoteId } = params;
- if (!quoteId) throw new Error("Could not find quoteId");
+ const { id } = params;
+ if (!id) throw new Error("Could not find id");
const formData = await request.formData();
const currencyCode = formData.get("currencyCode") as string;
@@ -23,8 +23,8 @@ export async function action({ request, params }: ActionFunctionArgs) {
if (currency.error || !currency.data.exchangeRate)
throw new Error("Could not find currency");
- const update = await updateQuoteExchangeRate(client, {
- id: quoteId,
+ const update = await updateSupplierQuoteExchangeRate(client, {
+ id: id,
exchangeRate: currency.data.exchangeRate,
});
@@ -33,7 +33,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
}
return redirect(
- path.to.quoteDetails(quoteId),
+ path.to.supplierQuoteDetails(id),
await flash(request, success("Successfully updated exchange rate"))
);
}
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.status.tsx b/apps/carbon/app/routes/x+/supplier-quote+/$id.status.tsx
similarity index 66%
rename from apps/carbon/app/routes/x+/supplier-quote+/$quoteId.status.tsx
rename to apps/carbon/app/routes/x+/supplier-quote+/$id.status.tsx
index 2643257064..4d8a885803 100644
--- a/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.status.tsx
+++ b/apps/carbon/app/routes/x+/supplier-quote+/$id.status.tsx
@@ -3,29 +3,34 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import type { ActionFunctionArgs } from "@vercel/remix";
import { redirect } from "@vercel/remix";
-import { quoteStatusType, updateQuoteStatus } from "~/modules/sales";
+import {
+ supplierQuoteStatusType,
+ updateSupplierQuoteStatus,
+} from "~/modules/purchasing";
import { path, requestReferrer } from "~/utils/path";
export async function action({ request, params }: ActionFunctionArgs) {
assertIsPost(request);
const { client, userId } = await requirePermissions(request, {
- update: "sales",
+ update: "purchasing",
});
- const { quoteId: id } = params;
+ const { id } = params;
if (!id) throw new Error("Could not find id");
const formData = await request.formData();
- const status = formData.get("status") as (typeof quoteStatusType)[number];
+ const status = formData.get(
+ "status"
+ ) as (typeof supplierQuoteStatusType)[number];
- if (!status || !quoteStatusType.includes(status)) {
+ if (!status || !supplierQuoteStatusType.includes(status)) {
throw redirect(
- path.to.quote(id),
+ path.to.supplierQuote(id),
await flash(request, error(null, "Invalid status"))
);
}
- const update = await updateQuoteStatus(client, {
+ const update = await updateSupplierQuoteStatus(client, {
id,
status,
assignee: ["Closed"].includes(status) ? null : undefined,
@@ -33,13 +38,13 @@ export async function action({ request, params }: ActionFunctionArgs) {
});
if (update.error) {
throw redirect(
- requestReferrer(request) ?? path.to.quote(id),
+ requestReferrer(request) ?? path.to.supplierQuote(id),
await flash(request, error(update.error, "Failed to update quote status"))
);
}
throw redirect(
- requestReferrer(request) ?? path.to.quote(id),
+ requestReferrer(request) ?? path.to.supplierQuote(id),
await flash(request, success("Updated quote status"))
);
}
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/$id.tsx b/apps/carbon/app/routes/x+/supplier-quote+/$id.tsx
index 96c9474dc3..a3b7cf999b 100644
--- a/apps/carbon/app/routes/x+/supplier-quote+/$id.tsx
+++ b/apps/carbon/app/routes/x+/supplier-quote+/$id.tsx
@@ -3,19 +3,18 @@ import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { VStack } from "@carbon/react";
import { Outlet, useParams } from "@remix-run/react";
-import type { PostgrestResponse } from "@supabase/supabase-js";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { defer, redirect } from "@vercel/remix";
import { PanelProvider, ResizablePanels } from "~/components/Layout/Panels";
import { getCurrencyByCode } from "~/modules/accounting";
-import type { PurchaseOrderLine } from "~/modules/purchasing";
import {
- getPurchaseOrderLines,
getSupplierInteractionByQuote,
getSupplierInteractionDocuments,
getSupplierQuote,
getSupplierQuoteLinePricesByQuoteId,
getSupplierQuoteLines,
+ SupplierQuoteHeader,
+ SupplierQuoteProperties,
} from "~/modules/purchasing";
import SupplierQuoteExplorer from "~/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer";
import type { Handle } from "~/utils/handle";
@@ -64,14 +63,6 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
}
}
- let purchaseOrderLines: PostgrestResponse<PurchaseOrderLine> | null = null;
- if (interaction.data?.purchaseOrderId) {
- purchaseOrderLines = await getPurchaseOrderLines(
- serviceRole,
- interaction.data.purchaseOrderId
- );
- }
-
return defer({
quote: quote.data,
lines: lines.data ?? [],
@@ -83,7 +74,6 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
prices: prices.data ?? [],
interaction: interaction.data,
exchangeRate,
- purchaseOrderLines: purchaseOrderLines?.data ?? null,
});
}
@@ -95,8 +85,7 @@ export default function SupplierQuoteRoute() {
return (
<PanelProvider>
<div className="flex flex-col h-[calc(100dvh-49px)] overflow-hidden w-full">
- {/* <SupplierQuoteHeader />
- */}
+ <SupplierQuoteHeader />
<div className="flex h-[calc(100dvh-99px)] overflow-hidden w-full">
<div className="flex flex-grow overflow-hidden">
<ResizablePanels
@@ -108,7 +97,7 @@ export default function SupplierQuoteRoute() {
</VStack>
</div>
}
- properties={null}
+ properties={<SupplierQuoteProperties />}
/>
</div>
</div>
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.finalize.tsx b/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.finalize.tsx
deleted file mode 100644
index 5e73a8827a..0000000000
--- a/apps/carbon/app/routes/x+/supplier-quote+/$quoteId.finalize.tsx
+++ /dev/null
@@ -1,239 +0,0 @@
-import { assertIsPost, error, success } from "@carbon/auth";
-import { requirePermissions } from "@carbon/auth/auth.server";
-import { flash } from "@carbon/auth/session.server";
-import { QuoteEmail } from "@carbon/documents";
-import { validationError, validator } from "@carbon/form";
-import { getLocalTimeZone, now } from "@internationalized/date";
-import { renderAsync } from "@react-email/components";
-import { tasks } from "@trigger.dev/sdk/v3";
-import { redirect, type ActionFunctionArgs } from "@vercel/remix";
-import { upsertDocument } from "~/modules/documents";
-import {
- finalizeQuote,
- getCustomer,
- getCustomerContact,
- getOpportunityByQuote,
- getQuote,
- quoteFinalizeValidator,
-} from "~/modules/sales";
-import { getCompany, getCompanySettings } from "~/modules/settings";
-import { upsertExternalLink } from "~/modules/shared";
-import { getUser } from "~/modules/users/users.server";
-import { loader as pdfLoader } from "~/routes/file+/quote+/$id[.]pdf";
-import type { sendEmailResendTask } from "~/trigger/send-email-resend"; // Assuming you have this task defined
-import { path } from "~/utils/path";
-import { stripSpecialCharacters } from "~/utils/string";
-
-export const config = { runtime: "nodejs" };
-
-export async function action(args: ActionFunctionArgs) {
- const { request, params } = args;
- assertIsPost(request);
-
- const { client, companyId, userId } = await requirePermissions(request, {
- create: "sales",
- role: "employee",
- });
-
- const { quoteId } = params;
- if (!quoteId) throw new Error("Could not find quoteId");
-
- let file: ArrayBuffer;
- let fileName: string;
-
- const [quote, opportunity] = await Promise.all([
- getQuote(client, quoteId),
- getOpportunityByQuote(client, quoteId),
- ]);
- if (quote.error) {
- throw redirect(
- path.to.quote(quoteId),
- await flash(request, error(quote.error, "Failed to get quote"))
- );
- }
- if (opportunity.error) {
- throw redirect(
- path.to.quote(quoteId),
- await flash(
- request,
- error(opportunity.error, "Failed to get opportunity")
- )
- );
- }
-
- const [externalLink] = await Promise.all([
- upsertExternalLink(client, {
- id: quote.data.externalLinkId ?? undefined, // TODO
- documentType: "Quote",
- documentId: quoteId,
- customerId: quote.data.customerId,
- expiresAt: quote.data.expirationDate,
- companyId,
- }),
- client
- .from("opportunity")
- .update({
- quoteCompletedDate: now(getLocalTimeZone()).toAbsoluteString(),
- })
- .eq("quoteId", quoteId),
- ]);
-
- if (externalLink.data && quote.data.externalLinkId !== externalLink.data.id) {
- await client
- .from("quote")
- .update({ externalLinkId: externalLink.data.id })
- .eq("id", quoteId);
- }
-
- try {
- const pdf = await pdfLoader({ ...args, params: { id: quoteId } });
- if (pdf.headers.get("content-type") !== "application/pdf")
- throw new Error("Failed to generate PDF");
-
- file = await pdf.arrayBuffer();
- fileName = stripSpecialCharacters(
- `${quote.data.quoteId} - ${new Date().toISOString().slice(0, -5)}.pdf`
- );
-
- const documentFilePath = `${companyId}/opportunity/${opportunity.data.id}/${fileName}`;
-
- const documentFileUpload = await client.storage
- .from("private")
- .upload(documentFilePath, file, {
- cacheControl: `${12 * 60 * 60}`,
- contentType: "application/pdf",
- upsert: true,
- });
-
- if (documentFileUpload.error) {
- throw redirect(
- path.to.quote(quoteId),
- await flash(
- request,
- error(documentFileUpload.error, "Failed to upload file")
- )
- );
- }
-
- const createDocument = await upsertDocument(client, {
- path: documentFilePath,
- name: fileName,
- size: Math.round(file.byteLength / 1024),
- sourceDocument: "Quote",
- sourceDocumentId: quoteId,
- readGroups: [userId],
- writeGroups: [userId],
- createdBy: userId,
- companyId,
- });
-
- if (createDocument.error) {
- return redirect(
- path.to.quote(quoteId),
- await flash(
- request,
- error(createDocument.error, "Failed to create document")
- )
- );
- }
-
- const finalize = await finalizeQuote(client, quoteId, userId);
- if (finalize.error) {
- throw redirect(
- path.to.quote(quoteId),
- await flash(request, error(finalize.error, "Failed to finalize quote"))
- );
- }
- } catch (err) {
- throw redirect(
- path.to.quote(quoteId),
- await flash(request, error(err, "Failed to finalize quote"))
- );
- }
-
- const validation = await validator(quoteFinalizeValidator).validate(
- await request.formData()
- );
-
- if (validation.error) {
- return validationError(validation.error);
- }
-
- const { notification, customerContact: customerContactId } = validation.data;
-
- switch (notification) {
- case "Email":
- try {
- if (!customerContactId) throw new Error("Customer contact is required");
-
- const [company, companySettings, customer, customerContact, user] =
- await Promise.all([
- getCompany(client, companyId),
- getCompanySettings(client, companyId),
- getCustomer(client, quote.data.customerId!),
- getCustomerContact(client, customerContactId),
- getUser(client, userId),
- ]);
-
- if (!company.data) throw new Error("Failed to get company");
- if (!companySettings.data)
- throw new Error("Failed to get company settings");
- if (!customer.data) throw new Error("Failed to get customer");
- if (!customerContact.data)
- throw new Error("Failed to get customer contact");
- if (!user.data) throw new Error("Failed to get user");
-
- const emailTemplate = QuoteEmail({
- company: company.data,
- companySettings: companySettings.data,
- // @ts-ignore
- quote: quote.data,
- recipient: {
- email: customerContact.data?.contact!.email!,
- firstName: customerContact.data.contact!.firstName!,
- lastName: customerContact.data.contact!.lastName!,
- },
- sender: {
- email: user.data.email,
- firstName: user.data.firstName,
- lastName: user.data.lastName,
- },
- });
-
- const html = await renderAsync(emailTemplate);
- const text = await renderAsync(emailTemplate, { plainText: true });
-
- await tasks.trigger<typeof sendEmailResendTask>("send-email-resend", {
- to: customerContact.data.contact!.email!,
- from: user.data.email,
- subject: `Quote ${quote.data.quoteId}`,
- html,
- text,
- attachments: [
- {
- content: Buffer.from(file).toString("base64"),
- filename: fileName,
- },
- ],
- companyId,
- });
- } catch (err) {
- throw redirect(
- path.to.quote(quoteId),
- await flash(request, error(err, "Failed to send email"))
- );
- }
-
- break;
- case undefined:
- case "None":
- break;
- default:
- throw new Error("Invalid notification type");
- }
-
- throw redirect(
- path.to.quote(quoteId),
- await flash(request, success("Quote finalized successfully"))
- );
-}
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/new.tsx b/apps/carbon/app/routes/x+/supplier-quote+/new.tsx
index 3ca9b4a727..43065a2759 100644
--- a/apps/carbon/app/routes/x+/supplier-quote+/new.tsx
+++ b/apps/carbon/app/routes/x+/supplier-quote+/new.tsx
@@ -2,6 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
+import { getLocalTimeZone, today } from "@internationalized/date";
import type { ActionFunctionArgs } from "@vercel/remix";
import { redirect } from "@vercel/remix";
import { useUrlParams } from "~/hooks";
@@ -49,6 +50,8 @@ export async function action({ request }: ActionFunctionArgs) {
);
}
+ console.log(validation.data);
+
const createSupplierQuote = await upsertSupplierQuote(client, {
...validation.data,
supplierQuoteId: nextSequence.data,
@@ -80,9 +83,9 @@ export default function SupplierQuoteNewRoute() {
supplierId: supplierId ?? "",
supplierReference: "",
expirationDate: "",
- dueDate: "",
+ quotedDate: today(getLocalTimeZone()).toString(),
supplierQuoteId: undefined,
- status: "Draft" as const,
+ status: "Active" as const,
currencyCode: undefined,
exchangeRate: undefined,
exchangeRateUpdatedAt: "",
diff --git a/apps/carbon/app/routes/x+/supplier-quote+/update.tsx b/apps/carbon/app/routes/x+/supplier-quote+/update.tsx
index 34d0d23a32..942b8d8153 100644
--- a/apps/carbon/app/routes/x+/supplier-quote+/update.tsx
+++ b/apps/carbon/app/routes/x+/supplier-quote+/update.tsx
@@ -79,7 +79,7 @@ export async function action({ request }: ActionFunctionArgs) {
case "supplierContactId":
case "supplierLocationId":
case "supplierReference":
- case "dueDate":
+ case "quotedDate":
case "expirationDate":
return json(
await client
diff --git a/apps/carbon/app/trigger/expire-quotes.ts b/apps/carbon/app/trigger/expire-quotes.ts
index 35d3f112d7..057c548e7e 100644
--- a/apps/carbon/app/trigger/expire-quotes.ts
+++ b/apps/carbon/app/trigger/expire-quotes.ts
@@ -23,42 +23,87 @@ export const expireQuotes = schedules.task({
try {
// Fetch expired quotes that are in sent status and have a sales person assigned
- const { data: expiredQuotes, error } = await serviceRole
- .from("quote")
- .select("*")
- .eq("status", "Sent")
- .not("expirationDate", "is", null)
- .lt("expirationDate", new Date().toISOString());
+ const [expiredQuotes, expiredSupplierQuotes] = await Promise.all([
+ serviceRole
+ .from("quote")
+ .select("*")
+ .eq("status", "Sent")
+ .not("expirationDate", "is", null)
+ .lt("expirationDate", new Date().toISOString()),
+ serviceRole
+ .from("supplierQuote")
+ .select("*")
+ .eq("status", "Active")
+ .not("expirationDate", "is", null)
+ .lt("expirationDate", new Date().toISOString()),
+ ]);
+
+ if (expiredQuotes.error) {
+ console.error(
+ `Error fetching expired quotes: ${JSON.stringify(
+ expiredQuotes.error
+ )}`
+ );
+ return;
+ }
- if (error) {
+ if (expiredSupplierQuotes.error) {
console.error(
- `Error fetching expired quotes: ${JSON.stringify(error)}`
+ `Error fetching expired supplier quotes: ${JSON.stringify(
+ expiredSupplierQuotes.error
+ )}`
);
return;
}
- if (!expiredQuotes?.length) {
+ if (expiredSupplierQuotes.data.length > 0) {
+ console.log(
+ `Found ${expiredSupplierQuotes.data.length} expired supplier quotes`
+ );
+ const expireSupplierQuotes = await serviceRole
+ .from("supplierQuote")
+ .update({ status: "Expired" })
+ .in(
+ "id",
+ expiredSupplierQuotes.data.map((quote) => quote.id)
+ );
+
+ if (expireSupplierQuotes.error) {
+ console.error(
+ `Error updating expired supplier quotes: ${JSON.stringify(
+ expireSupplierQuotes.error
+ )}`
+ );
+ return;
+ }
+ } else {
+ console.log("No expired supplier quotes found");
+ }
+
+ if (!expiredQuotes?.data?.length) {
console.log("No expired quotes found requiring notification");
return;
} else {
- console.log(`Found ${expiredQuotes.length} expired quotes`);
- const { error } = await serviceRole
+ console.log(`Found ${expiredQuotes.data.length} expired quotes`);
+ const expireQuotes = await serviceRole
.from("quote")
.update({ status: "Expired" })
.in(
"id",
- expiredQuotes.map((quote) => quote.id)
+ expiredQuotes.data.map((quote) => quote.id)
);
- if (error) {
+ if (expireQuotes.error) {
console.error(
- `Error updating expired quotes: ${JSON.stringify(error)}`
+ `Error updating expired quotes: ${JSON.stringify(
+ expireQuotes.error
+ )}`
);
return;
}
}
- const notificationPayloads: TriggerPayload[] = expiredQuotes
+ const notificationPayloads: TriggerPayload[] = expiredQuotes.data
.filter((quote) => Boolean(quote.salesPersonId))
.map((quote) => {
return {
diff --git a/apps/carbon/app/utils/path.ts b/apps/carbon/app/utils/path.ts
index c419cd6d93..242d15b8f2 100644
--- a/apps/carbon/app/utils/path.ts
+++ b/apps/carbon/app/utils/path.ts
@@ -129,6 +129,7 @@ export const path = {
bulkUpdateQuote: `${x}/quote/update`,
bulkUpdateSalesOrder: `${x}/sales-order/update`,
bulkUpdateSalesRfq: `${x}/sales-rfq/update`,
+ bulkUpdateSupplierQuote: `${x}/supplier-quote/update`,
chartOfAccount: (id: string) =>
generatePath(`${x}/accounting/charts/${id}`),
chartOfAccounts: `${x}/accounting/charts`,
@@ -802,6 +803,8 @@ export const path = {
supplierQuoteFavorite: `${x}/purchasing/quotes/favorite`,
supplierQuoteDetails: (id: string) =>
generatePath(`${x}/supplier-quote/${id}/details`),
+ supplierQuoteExchangeRate: (id: string) =>
+ generatePath(`${x}/supplier-quote/${id}/exchange-rate`),
supplierQuoteLine: (id: string, lineId: string) =>
generatePath(`${x}/supplier-quote/${id}/${lineId}/details`),
supplierRoot: `${x}/supplier`,
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index b7d14b8824..03eb1480a7 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -2652,6 +2652,12 @@ export default {
{
$ref: "#/parameters/rowFilter.quotes.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.quotes.thumbnailPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quotes.itemType",
+ },
{
$ref: "#/parameters/rowFilter.quotes.locationName",
},
@@ -5865,6 +5871,9 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrderLines.conversionFactor",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrderLines.tags",
+ },
{
$ref: "#/parameters/rowFilter.purchaseOrderLines.supplierId",
},
@@ -8118,6 +8127,168 @@ export default {
tags: ["employeesAcrossCompanies"],
},
},
+ "/supplierInteraction": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.purchaseOrderId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.purchaseOrderCompletedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.supplierQuoteCompletedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.quoteDocumentPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.salesOrderDocumentPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.companyId",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/supplierInteraction",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["supplierInteraction"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.supplierInteraction",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["supplierInteraction"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.purchaseOrderId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.purchaseOrderCompletedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.supplierQuoteCompletedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.quoteDocumentPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.salesOrderDocumentPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.companyId",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierInteraction"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.purchaseOrderId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.purchaseOrderCompletedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.supplierQuoteCompletedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.quoteDocumentPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.salesOrderDocumentPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierInteraction.companyId",
+ },
+ {
+ $ref: "#/parameters/body.supplierInteraction",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierInteraction"],
+ },
+ },
"/purchaseInvoicePriceChange": {
get: {
parameters: [
@@ -8628,131 +8799,86 @@ export default {
tags: ["shift"],
},
},
- "/integration": {
+ "/supplierQuotes": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.integration.id",
+ $ref: "#/parameters/rowFilter.supplierQuotes.id",
},
{
- $ref: "#/parameters/rowFilter.integration.jsonschema",
+ $ref: "#/parameters/rowFilter.supplierQuotes.supplierQuoteId",
},
{
- $ref: "#/parameters/select",
+ $ref: "#/parameters/rowFilter.supplierQuotes.revisionId",
},
{
- $ref: "#/parameters/order",
+ $ref: "#/parameters/rowFilter.supplierQuotes.quotedDate",
},
{
- $ref: "#/parameters/range",
+ $ref: "#/parameters/rowFilter.supplierQuotes.expirationDate",
},
{
- $ref: "#/parameters/rangeUnit",
+ $ref: "#/parameters/rowFilter.supplierQuotes.status",
},
{
- $ref: "#/parameters/offset",
+ $ref: "#/parameters/rowFilter.supplierQuotes.internalNotes",
},
{
- $ref: "#/parameters/limit",
+ $ref: "#/parameters/rowFilter.supplierQuotes.externalNotes",
},
{
- $ref: "#/parameters/preferCount",
+ $ref: "#/parameters/rowFilter.supplierQuotes.supplierId",
},
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/integration",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["integration"],
- },
- post: {
- parameters: [
{
- $ref: "#/parameters/body.integration",
+ $ref: "#/parameters/rowFilter.supplierQuotes.supplierLocationId",
},
{
- $ref: "#/parameters/select",
+ $ref: "#/parameters/rowFilter.supplierQuotes.supplierContactId",
},
{
- $ref: "#/parameters/preferPost",
+ $ref: "#/parameters/rowFilter.supplierQuotes.supplierReference",
},
- ],
- responses: {
- "201": {
- description: "Created",
- },
- },
- tags: ["integration"],
- },
- delete: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.integration.id",
+ $ref: "#/parameters/rowFilter.supplierQuotes.assignee",
},
{
- $ref: "#/parameters/rowFilter.integration.jsonschema",
+ $ref: "#/parameters/rowFilter.supplierQuotes.currencyCode",
},
{
- $ref: "#/parameters/preferReturn",
+ $ref: "#/parameters/rowFilter.supplierQuotes.exchangeRate",
},
- ],
- responses: {
- "204": {
- description: "No Content",
+ {
+ $ref: "#/parameters/rowFilter.supplierQuotes.exchangeRateUpdatedAt",
},
- },
- tags: ["integration"],
- },
- patch: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.integration.id",
+ $ref: "#/parameters/rowFilter.supplierQuotes.companyId",
},
{
- $ref: "#/parameters/rowFilter.integration.jsonschema",
+ $ref: "#/parameters/rowFilter.supplierQuotes.customFields",
},
{
- $ref: "#/parameters/body.integration",
+ $ref: "#/parameters/rowFilter.supplierQuotes.tags",
},
{
- $ref: "#/parameters/preferReturn",
+ $ref: "#/parameters/rowFilter.supplierQuotes.createdAt",
},
- ],
- responses: {
- "204": {
- description: "No Content",
+ {
+ $ref: "#/parameters/rowFilter.supplierQuotes.createdBy",
},
- },
- tags: ["integration"],
- },
- },
- "/customFieldTables": {
- get: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.customFieldTables.table",
+ $ref: "#/parameters/rowFilter.supplierQuotes.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.customFieldTables.module",
+ $ref: "#/parameters/rowFilter.supplierQuotes.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.customFieldTables.name",
+ $ref: "#/parameters/rowFilter.supplierQuotes.thumbnailPath",
},
{
- $ref: "#/parameters/rowFilter.customFieldTables.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuotes.itemType",
},
{
- $ref: "#/parameters/rowFilter.customFieldTables.fields",
+ $ref: "#/parameters/rowFilter.supplierQuotes.favorite",
},
{
$ref: "#/parameters/select",
@@ -8781,7 +8907,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/customFieldTables",
+ $ref: "#/definitions/supplierQuotes",
},
type: "array",
},
@@ -8790,71 +8916,236 @@ export default {
description: "Partial Content",
},
},
- tags: ["customFieldTables"],
+ tags: ["supplierQuotes"],
},
},
- "/documents": {
+ "/integration": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.documents.id",
- },
- {
- $ref: "#/parameters/rowFilter.documents.path",
- },
- {
- $ref: "#/parameters/rowFilter.documents.name",
- },
- {
- $ref: "#/parameters/rowFilter.documents.description",
- },
- {
- $ref: "#/parameters/rowFilter.documents.size",
- },
- {
- $ref: "#/parameters/rowFilter.documents.extension",
- },
- {
- $ref: "#/parameters/rowFilter.documents.type",
- },
- {
- $ref: "#/parameters/rowFilter.documents.readGroups",
- },
- {
- $ref: "#/parameters/rowFilter.documents.writeGroups",
- },
- {
- $ref: "#/parameters/rowFilter.documents.active",
- },
- {
- $ref: "#/parameters/rowFilter.documents.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.documents.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.documents.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.documents.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.documents.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.documents.sourceDocument",
- },
- {
- $ref: "#/parameters/rowFilter.documents.sourceDocumentId",
- },
- {
- $ref: "#/parameters/rowFilter.documents.labels",
- },
- {
- $ref: "#/parameters/rowFilter.documents.favorite",
+ $ref: "#/parameters/rowFilter.integration.id",
},
{
- $ref: "#/parameters/rowFilter.documents.lastActivityAt",
+ $ref: "#/parameters/rowFilter.integration.jsonschema",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/integration",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["integration"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.integration",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["integration"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.integration.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.integration.jsonschema",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["integration"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.integration.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.integration.jsonschema",
+ },
+ {
+ $ref: "#/parameters/body.integration",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["integration"],
+ },
+ },
+ "/customFieldTables": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.customFieldTables.table",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customFieldTables.module",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customFieldTables.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customFieldTables.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customFieldTables.fields",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/customFieldTables",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["customFieldTables"],
+ },
+ },
+ "/documents": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.documents.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.path",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.description",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.size",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.extension",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.readGroups",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.writeGroups",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.active",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.sourceDocument",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.sourceDocumentId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.labels",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.favorite",
+ },
+ {
+ $ref: "#/parameters/rowFilter.documents.lastActivityAt",
},
{
$ref: "#/parameters/select",
@@ -9081,6 +9372,12 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrder.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrder.internalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrder.externalNotes",
+ },
{
$ref: "#/parameters/select",
},
@@ -9212,6 +9509,12 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrder.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrder.internalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrder.externalNotes",
+ },
{
$ref: "#/parameters/preferReturn",
},
@@ -9297,6 +9600,12 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrder.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrder.internalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrder.externalNotes",
+ },
{
$ref: "#/parameters/body.purchaseOrder",
},
@@ -9312,135 +9621,6 @@ export default {
tags: ["purchaseOrder"],
},
},
- "/fixtures": {
- get: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.fixtures.active",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.assignee",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.defaultMethodType",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.description",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.itemTrackingType",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.name",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.replenishmentSystem",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.thumbnailPath",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.id",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.customerId",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.approved",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.approvedBy",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.customFields",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.externalId",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.tags",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.modelId",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.autodeskUrn",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.modelPath",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.modelName",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.modelSize",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.supplierIds",
- },
- {
- $ref: "#/parameters/rowFilter.fixtures.customer",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/fixtures",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["fixtures"],
- },
- },
"/company": {
get: {
parameters: [
@@ -11982,6 +12162,9 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrderLine.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrderLine.notes",
+ },
{
$ref: "#/parameters/select",
},
@@ -12131,6 +12314,9 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrderLine.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrderLine.notes",
+ },
{
$ref: "#/parameters/preferReturn",
},
@@ -12234,6 +12420,9 @@ export default {
{
$ref: "#/parameters/rowFilter.purchaseOrderLine.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.purchaseOrderLine.notes",
+ },
{
$ref: "#/parameters/body.purchaseOrderLine",
},
@@ -12966,98 +13155,68 @@ export default {
tags: ["supplierLedger"],
},
},
- "/holidayYears": {
+ "/supplierQuoteLine": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.holidayYears.year",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.id",
},
{
- $ref: "#/parameters/rowFilter.holidayYears.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierQuoteId",
},
{
- $ref: "#/parameters/select",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierQuoteRevisionId",
},
{
- $ref: "#/parameters/order",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.quantity",
},
{
- $ref: "#/parameters/range",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.itemId",
},
{
- $ref: "#/parameters/rangeUnit",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.itemReadableId",
},
{
- $ref: "#/parameters/offset",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.description",
},
{
- $ref: "#/parameters/limit",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierPartId",
},
{
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/holidayYears",
- },
- type: "array",
- },
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierPartRevision",
},
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["holidayYears"],
- },
- },
- "/itemUnitSalePrice": {
- get: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.unitSalePrice",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.inventoryUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.currencyCode",
- },
- {
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesUnitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.purchaseUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesBlocked",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.conversionFactor",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.priceIncludesTax",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.notes",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.allowInvoiceDiscount",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.taxPercent",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.companyId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.createdBy",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.customFields",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.customFields",
- },
- {
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.tags",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.tags",
},
{
$ref: "#/parameters/select",
@@ -13086,7 +13245,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/itemUnitSalePrice",
+ $ref: "#/definitions/supplierQuoteLine",
},
type: "array",
},
@@ -13095,12 +13254,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["itemUnitSalePrice"],
+ tags: ["supplierQuoteLine"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.itemUnitSalePrice",
+ $ref: "#/parameters/body.supplierQuoteLine",
},
{
$ref: "#/parameters/select",
@@ -13114,51 +13273,69 @@ export default {
description: "Created",
},
},
- tags: ["itemUnitSalePrice"],
+ tags: ["supplierQuoteLine"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.itemId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.id",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.unitSalePrice",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierQuoteId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.currencyCode",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierQuoteRevisionId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesUnitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.quantity",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesBlocked",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.itemId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.priceIncludesTax",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.itemReadableId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.allowInvoiceDiscount",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.description",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierPartId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierPartRevision",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.inventoryUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.purchaseUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.conversionFactor",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.customFields",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.notes",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.tags",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.taxPercent",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.tags",
},
{
$ref: "#/parameters/preferReturn",
@@ -13169,54 +13346,72 @@ export default {
description: "No Content",
},
},
- tags: ["itemUnitSalePrice"],
+ tags: ["supplierQuoteLine"],
},
patch: {
parameters: [
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.itemId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.id",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.unitSalePrice",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierQuoteId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.currencyCode",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierQuoteRevisionId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesUnitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.quantity",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesBlocked",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.itemId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.priceIncludesTax",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.itemReadableId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.allowInvoiceDiscount",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.description",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierPartId",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.supplierPartRevision",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.inventoryUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.purchaseUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.conversionFactor",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.customFields",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.notes",
},
{
- $ref: "#/parameters/rowFilter.itemUnitSalePrice.tags",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.taxPercent",
},
{
- $ref: "#/parameters/body.itemUnitSalePrice",
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLine.tags",
+ },
+ {
+ $ref: "#/parameters/body.supplierQuoteLine",
},
{
$ref: "#/parameters/preferReturn",
@@ -13227,98 +13422,101 @@ export default {
description: "No Content",
},
},
- tags: ["itemUnitSalePrice"],
+ tags: ["supplierQuoteLine"],
},
},
- "/job": {
+ "/holidayYears": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.job.id",
- },
- {
- $ref: "#/parameters/rowFilter.job.jobId",
- },
- {
- $ref: "#/parameters/rowFilter.job.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.job.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.job.customerId",
+ $ref: "#/parameters/rowFilter.holidayYears.year",
},
{
- $ref: "#/parameters/rowFilter.job.locationId",
+ $ref: "#/parameters/rowFilter.holidayYears.companyId",
},
{
- $ref: "#/parameters/rowFilter.job.status",
+ $ref: "#/parameters/select",
},
{
- $ref: "#/parameters/rowFilter.job.dueDate",
+ $ref: "#/parameters/order",
},
{
- $ref: "#/parameters/rowFilter.job.deadlineType",
+ $ref: "#/parameters/range",
},
{
- $ref: "#/parameters/rowFilter.job.quantity",
+ $ref: "#/parameters/rangeUnit",
},
{
- $ref: "#/parameters/rowFilter.job.scrapQuantity",
+ $ref: "#/parameters/offset",
},
{
- $ref: "#/parameters/rowFilter.job.productionQuantity",
+ $ref: "#/parameters/limit",
},
{
- $ref: "#/parameters/rowFilter.job.quantityComplete",
+ $ref: "#/parameters/preferCount",
},
- {
- $ref: "#/parameters/rowFilter.job.quantityShipped",
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/holidayYears",
+ },
+ type: "array",
+ },
},
- {
- $ref: "#/parameters/rowFilter.job.quantityReceivedToInventory",
+ "206": {
+ description: "Partial Content",
},
+ },
+ tags: ["holidayYears"],
+ },
+ },
+ "/itemUnitSalePrice": {
+ get: {
+ parameters: [
{
- $ref: "#/parameters/rowFilter.job.salesOrderId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.itemId",
},
{
- $ref: "#/parameters/rowFilter.job.salesOrderLineId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.unitSalePrice",
},
{
- $ref: "#/parameters/rowFilter.job.quoteId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.currencyCode",
},
{
- $ref: "#/parameters/rowFilter.job.quoteLineId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.job.modelUploadId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesBlocked",
},
{
- $ref: "#/parameters/rowFilter.job.notes",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.priceIncludesTax",
},
{
- $ref: "#/parameters/rowFilter.job.assignee",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.allowInvoiceDiscount",
},
{
- $ref: "#/parameters/rowFilter.job.customFields",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.companyId",
},
{
- $ref: "#/parameters/rowFilter.job.companyId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdBy",
},
{
- $ref: "#/parameters/rowFilter.job.createdAt",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdAt",
},
{
- $ref: "#/parameters/rowFilter.job.createdBy",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.job.updatedAt",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.job.updatedBy",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.customFields",
},
{
- $ref: "#/parameters/rowFilter.job.tags",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.tags",
},
{
$ref: "#/parameters/select",
@@ -13347,7 +13545,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/job",
+ $ref: "#/definitions/itemUnitSalePrice",
},
type: "array",
},
@@ -13356,12 +13554,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["job"],
+ tags: ["itemUnitSalePrice"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.job",
+ $ref: "#/parameters/body.itemUnitSalePrice",
},
{
$ref: "#/parameters/select",
@@ -13375,96 +13573,109 @@ export default {
description: "Created",
},
},
- tags: ["job"],
+ tags: ["itemUnitSalePrice"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.job.id",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.itemId",
},
{
- $ref: "#/parameters/rowFilter.job.jobId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.unitSalePrice",
},
{
- $ref: "#/parameters/rowFilter.job.itemId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.currencyCode",
},
{
- $ref: "#/parameters/rowFilter.job.unitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.job.customerId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesBlocked",
},
{
- $ref: "#/parameters/rowFilter.job.locationId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.priceIncludesTax",
},
{
- $ref: "#/parameters/rowFilter.job.status",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.allowInvoiceDiscount",
},
{
- $ref: "#/parameters/rowFilter.job.dueDate",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.companyId",
},
{
- $ref: "#/parameters/rowFilter.job.deadlineType",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdBy",
},
{
- $ref: "#/parameters/rowFilter.job.quantity",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdAt",
},
{
- $ref: "#/parameters/rowFilter.job.scrapQuantity",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.job.productionQuantity",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.job.quantityComplete",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.customFields",
},
{
- $ref: "#/parameters/rowFilter.job.quantityShipped",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.tags",
},
{
- $ref: "#/parameters/rowFilter.job.quantityReceivedToInventory",
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
},
+ },
+ tags: ["itemUnitSalePrice"],
+ },
+ patch: {
+ parameters: [
{
- $ref: "#/parameters/rowFilter.job.salesOrderId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.itemId",
},
{
- $ref: "#/parameters/rowFilter.job.salesOrderLineId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.unitSalePrice",
},
{
- $ref: "#/parameters/rowFilter.job.quoteId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.currencyCode",
},
{
- $ref: "#/parameters/rowFilter.job.quoteLineId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.job.modelUploadId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.salesBlocked",
},
{
- $ref: "#/parameters/rowFilter.job.notes",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.priceIncludesTax",
},
{
- $ref: "#/parameters/rowFilter.job.assignee",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.allowInvoiceDiscount",
},
{
- $ref: "#/parameters/rowFilter.job.customFields",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.companyId",
},
{
- $ref: "#/parameters/rowFilter.job.companyId",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdBy",
},
{
- $ref: "#/parameters/rowFilter.job.createdAt",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.createdAt",
},
{
- $ref: "#/parameters/rowFilter.job.createdBy",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.job.updatedAt",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.job.updatedBy",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.customFields",
},
{
- $ref: "#/parameters/rowFilter.job.tags",
+ $ref: "#/parameters/rowFilter.itemUnitSalePrice.tags",
+ },
+ {
+ $ref: "#/parameters/body.itemUnitSalePrice",
},
{
$ref: "#/parameters/preferReturn",
@@ -13475,9 +13686,257 @@ export default {
description: "No Content",
},
},
- tags: ["job"],
+ tags: ["itemUnitSalePrice"],
},
- patch: {
+ },
+ "/job": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.job.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.jobId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.itemId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.customerId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.locationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.status",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.dueDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.deadlineType",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.scrapQuantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.productionQuantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantityComplete",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantityShipped",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantityReceivedToInventory",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.salesOrderId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.salesOrderLineId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quoteLineId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.modelUploadId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.notes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.assignee",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.tags",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/job",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["job"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.job",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["job"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.job.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.jobId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.itemId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.customerId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.locationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.status",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.dueDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.deadlineType",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.scrapQuantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.productionQuantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantityComplete",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantityShipped",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quantityReceivedToInventory",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.salesOrderId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.salesOrderLineId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.quoteLineId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.modelUploadId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.notes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.assignee",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.job.tags",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["job"],
+ },
+ patch: {
parameters: [
{
$ref: "#/parameters/rowFilter.job.id",
@@ -14433,71 +14892,368 @@ export default {
tags: ["quoteLines"],
},
},
- "/customer": {
+ "/supplierQuote": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.customer.id",
+ $ref: "#/parameters/rowFilter.supplierQuote.id",
},
{
- $ref: "#/parameters/rowFilter.customer.name",
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierQuoteId",
},
{
- $ref: "#/parameters/rowFilter.customer.customerTypeId",
+ $ref: "#/parameters/rowFilter.supplierQuote.revisionId",
},
{
- $ref: "#/parameters/rowFilter.customer.customerStatusId",
+ $ref: "#/parameters/rowFilter.supplierQuote.quotedDate",
},
{
- $ref: "#/parameters/rowFilter.customer.taxId",
+ $ref: "#/parameters/rowFilter.supplierQuote.expirationDate",
},
{
- $ref: "#/parameters/rowFilter.customer.accountManagerId",
+ $ref: "#/parameters/rowFilter.supplierQuote.status",
},
{
- $ref: "#/parameters/rowFilter.customer.logo",
+ $ref: "#/parameters/rowFilter.supplierQuote.internalNotes",
},
{
- $ref: "#/parameters/rowFilter.customer.assignee",
+ $ref: "#/parameters/rowFilter.supplierQuote.externalNotes",
},
{
- $ref: "#/parameters/rowFilter.customer.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierId",
},
{
- $ref: "#/parameters/rowFilter.customer.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierLocationId",
},
{
- $ref: "#/parameters/rowFilter.customer.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierContactId",
},
{
- $ref: "#/parameters/rowFilter.customer.updatedAt",
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierReference",
},
{
- $ref: "#/parameters/rowFilter.customer.updatedBy",
+ $ref: "#/parameters/rowFilter.supplierQuote.assignee",
},
{
- $ref: "#/parameters/rowFilter.customer.customFields",
+ $ref: "#/parameters/rowFilter.supplierQuote.currencyCode",
},
{
- $ref: "#/parameters/rowFilter.customer.currencyCode",
+ $ref: "#/parameters/rowFilter.supplierQuote.exchangeRate",
},
{
- $ref: "#/parameters/rowFilter.customer.phone",
+ $ref: "#/parameters/rowFilter.supplierQuote.exchangeRateUpdatedAt",
},
{
- $ref: "#/parameters/rowFilter.customer.fax",
+ $ref: "#/parameters/rowFilter.supplierQuote.companyId",
},
{
- $ref: "#/parameters/rowFilter.customer.website",
+ $ref: "#/parameters/rowFilter.supplierQuote.customFields",
},
{
- $ref: "#/parameters/rowFilter.customer.externalId",
+ $ref: "#/parameters/rowFilter.supplierQuote.tags",
},
{
- $ref: "#/parameters/rowFilter.customer.taxPercent",
+ $ref: "#/parameters/rowFilter.supplierQuote.createdAt",
},
{
- $ref: "#/parameters/rowFilter.customer.tags",
+ $ref: "#/parameters/rowFilter.supplierQuote.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.updatedBy",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/supplierQuote",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["supplierQuote"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.supplierQuote",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["supplierQuote"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.revisionId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.quotedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.expirationDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.status",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.internalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.externalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierLocationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierContactId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierReference",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.assignee",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.currencyCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.exchangeRate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.exchangeRateUpdatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.tags",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.updatedBy",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierQuote"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.revisionId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.quotedDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.expirationDate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.status",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.internalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.externalNotes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierLocationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierContactId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.supplierReference",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.assignee",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.currencyCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.exchangeRate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.exchangeRateUpdatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.tags",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuote.updatedBy",
+ },
+ {
+ $ref: "#/parameters/body.supplierQuote",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierQuote"],
+ },
+ },
+ "/customer": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.customer.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.customerTypeId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.customerStatusId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.taxId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.accountManagerId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.logo",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.assignee",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.currencyCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.phone",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.fax",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.website",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.externalId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.taxPercent",
+ },
+ {
+ $ref: "#/parameters/rowFilter.customer.tags",
},
{
$ref: "#/parameters/select",
@@ -15951,6 +16707,12 @@ export default {
{
$ref: "#/parameters/rowFilter.salesOrders.salesPersonId",
},
+ {
+ $ref: "#/parameters/rowFilter.salesOrders.thumbnailPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.salesOrders.itemType",
+ },
{
$ref: "#/parameters/rowFilter.salesOrders.shippingMethodName",
},
@@ -15975,27 +16737,6 @@ export default {
{
$ref: "#/parameters/rowFilter.salesOrders.locationName",
},
- {
- $ref: "#/parameters/rowFilter.salesOrders.customerName",
- },
- {
- $ref: "#/parameters/rowFilter.salesOrders.createdByAvatar",
- },
- {
- $ref: "#/parameters/rowFilter.salesOrders.createdByFullName",
- },
- {
- $ref: "#/parameters/rowFilter.salesOrders.updatedByAvatar",
- },
- {
- $ref: "#/parameters/rowFilter.salesOrders.updatedByFullName",
- },
- {
- $ref: "#/parameters/rowFilter.salesOrders.closedByAvatar",
- },
- {
- $ref: "#/parameters/rowFilter.salesOrders.closedByFullName",
- },
{
$ref: "#/parameters/rowFilter.salesOrders.favorite",
},
@@ -17460,38 +18201,272 @@ export default {
tags: ["oauthClient"],
},
},
- "/ability": {
+ "/supplierPart": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.ability.id",
+ $ref: "#/parameters/rowFilter.supplierPart.id",
},
{
- $ref: "#/parameters/rowFilter.ability.name",
+ $ref: "#/parameters/rowFilter.supplierPart.itemId",
},
{
- $ref: "#/parameters/rowFilter.ability.curve",
+ $ref: "#/parameters/rowFilter.supplierPart.supplierId",
},
{
- $ref: "#/parameters/rowFilter.ability.shadowWeeks",
+ $ref: "#/parameters/rowFilter.supplierPart.supplierPartId",
},
{
- $ref: "#/parameters/rowFilter.ability.active",
+ $ref: "#/parameters/rowFilter.supplierPart.supplierUnitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.ability.companyId",
+ $ref: "#/parameters/rowFilter.supplierPart.minimumOrderQuantity",
},
{
- $ref: "#/parameters/rowFilter.ability.createdAt",
+ $ref: "#/parameters/rowFilter.supplierPart.conversionFactor",
},
{
- $ref: "#/parameters/rowFilter.ability.createdBy",
+ $ref: "#/parameters/rowFilter.supplierPart.active",
},
{
- $ref: "#/parameters/rowFilter.ability.updatedAt",
+ $ref: "#/parameters/rowFilter.supplierPart.companyId",
},
{
- $ref: "#/parameters/rowFilter.ability.updatedBy",
+ $ref: "#/parameters/rowFilter.supplierPart.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.unitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.tags",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/supplierPart",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["supplierPart"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.supplierPart",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["supplierPart"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.itemId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.supplierId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.supplierPartId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.supplierUnitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.minimumOrderQuantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.conversionFactor",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.active",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.unitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.tags",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierPart"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.itemId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.supplierId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.supplierPartId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.supplierUnitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.minimumOrderQuantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.conversionFactor",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.active",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.unitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierPart.tags",
+ },
+ {
+ $ref: "#/parameters/body.supplierPart",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierPart"],
+ },
+ },
+ "/ability": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.ability.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.curve",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.shadowWeeks",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.active",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.ability.updatedBy",
},
{
$ref: "#/parameters/select",
@@ -22824,68 +23799,56 @@ export default {
tags: ["warehouse"],
},
},
- "/services": {
+ "/itemLedger": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.services.id",
- },
- {
- $ref: "#/parameters/rowFilter.services.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.services.serviceType",
- },
- {
- $ref: "#/parameters/rowFilter.services.approved",
- },
- {
- $ref: "#/parameters/rowFilter.services.approvedBy",
+ $ref: "#/parameters/rowFilter.itemLedger.id",
},
{
- $ref: "#/parameters/rowFilter.services.fromDate",
+ $ref: "#/parameters/rowFilter.itemLedger.entryNumber",
},
{
- $ref: "#/parameters/rowFilter.services.toDate",
+ $ref: "#/parameters/rowFilter.itemLedger.postingDate",
},
{
- $ref: "#/parameters/rowFilter.services.customFields",
+ $ref: "#/parameters/rowFilter.itemLedger.entryType",
},
{
- $ref: "#/parameters/rowFilter.services.companyId",
+ $ref: "#/parameters/rowFilter.itemLedger.documentType",
},
{
- $ref: "#/parameters/rowFilter.services.createdBy",
+ $ref: "#/parameters/rowFilter.itemLedger.documentId",
},
{
- $ref: "#/parameters/rowFilter.services.createdAt",
+ $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",
},
{
- $ref: "#/parameters/rowFilter.services.updatedBy",
+ $ref: "#/parameters/rowFilter.itemLedger.itemId",
},
{
- $ref: "#/parameters/rowFilter.services.updatedAt",
+ $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",
},
{
- $ref: "#/parameters/rowFilter.services.name",
+ $ref: "#/parameters/rowFilter.itemLedger.locationId",
},
{
- $ref: "#/parameters/rowFilter.services.description",
+ $ref: "#/parameters/rowFilter.itemLedger.shelfId",
},
{
- $ref: "#/parameters/rowFilter.services.active",
+ $ref: "#/parameters/rowFilter.itemLedger.quantity",
},
{
- $ref: "#/parameters/rowFilter.services.replenishmentSystem",
+ $ref: "#/parameters/rowFilter.itemLedger.companyId",
},
{
- $ref: "#/parameters/rowFilter.services.defaultMethodType",
+ $ref: "#/parameters/rowFilter.itemLedger.createdAt",
},
{
- $ref: "#/parameters/rowFilter.services.assignee",
+ $ref: "#/parameters/rowFilter.itemLedger.createdBy",
},
{
- $ref: "#/parameters/rowFilter.services.supplierIds",
+ $ref: "#/parameters/rowFilter.itemLedger.documentLineId",
},
{
$ref: "#/parameters/select",
@@ -22914,7 +23877,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/services",
+ $ref: "#/definitions/itemLedger",
},
type: "array",
},
@@ -22923,118 +23886,28 @@ export default {
description: "Partial Content",
},
},
- tags: ["services"],
+ tags: ["itemLedger"],
},
- },
- "/itemLedger": {
- get: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.itemLedger.id",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.entryNumber",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.postingDate",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.entryType",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.documentType",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.documentId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.locationId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.shelfId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.quantity",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.itemLedger.documentLineId",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/itemLedger",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["itemLedger"],
- },
- post: {
- parameters: [
- {
- $ref: "#/parameters/body.itemLedger",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/preferPost",
- },
- ],
- responses: {
- "201": {
- description: "Created",
- },
- },
- tags: ["itemLedger"],
- },
- delete: {
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.itemLedger",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["itemLedger"],
+ },
+ delete: {
parameters: [
{
$ref: "#/parameters/rowFilter.itemLedger.id",
@@ -23292,6 +24165,9 @@ export default {
{
$ref: "#/parameters/rowFilter.externalLink.companyId",
},
+ {
+ $ref: "#/parameters/rowFilter.externalLink.supplierId",
+ },
{
$ref: "#/parameters/select",
},
@@ -23372,6 +24248,9 @@ export default {
{
$ref: "#/parameters/rowFilter.externalLink.companyId",
},
+ {
+ $ref: "#/parameters/rowFilter.externalLink.supplierId",
+ },
{
$ref: "#/parameters/preferReturn",
},
@@ -23406,6 +24285,9 @@ export default {
{
$ref: "#/parameters/rowFilter.externalLink.companyId",
},
+ {
+ $ref: "#/parameters/rowFilter.externalLink.supplierId",
+ },
{
$ref: "#/parameters/body.externalLink",
},
@@ -25464,20 +26346,62 @@ export default {
tags: ["salesRfqLines"],
},
},
- "/companySettings": {
+ "/supplierQuoteLinePrice": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.companySettings.id",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.supplierQuoteId",
},
{
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteEnabled",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.supplierQuoteLineId",
},
{
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteNotificationGroup",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.quantity",
},
{
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteIncludesPurchaseOrders",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.leadTime",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.discountPercent",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.unitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.exchangeRate",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedUnitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.netUnitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedNetUnitPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.netExtendedPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedNetExtendedPrice",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.shippingCost",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedShippingCost",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.updatedBy",
},
{
$ref: "#/parameters/select",
@@ -25506,7 +26430,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/companySettings",
+ $ref: "#/definitions/supplierQuoteLinePrice",
},
type: "array",
},
@@ -25515,12 +26439,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["companySettings"],
+ tags: ["supplierQuoteLinePrice"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.companySettings",
+ $ref: "#/parameters/body.supplierQuoteLinePrice",
},
{
$ref: "#/parameters/select",
@@ -25534,193 +26458,133 @@ export default {
description: "Created",
},
},
- tags: ["companySettings"],
+ tags: ["supplierQuoteLinePrice"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.companySettings.id",
- },
- {
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteEnabled",
- },
- {
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteNotificationGroup",
- },
- {
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteIncludesPurchaseOrders",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["companySettings"],
- },
- patch: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.companySettings.id",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.supplierQuoteId",
},
{
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteEnabled",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.supplierQuoteLineId",
},
{
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteNotificationGroup",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.quantity",
},
{
- $ref: "#/parameters/rowFilter.companySettings.digitalQuoteIncludesPurchaseOrders",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.leadTime",
},
{
- $ref: "#/parameters/body.companySettings",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.discountPercent",
},
{
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.unitPrice",
},
- },
- tags: ["companySettings"],
- },
- },
- "/externalLinkMessage": {
- get: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.id",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.exchangeRate",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.externalLinkId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedUnitPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.message",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.netUnitPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedNetUnitPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.netExtendedPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedNetExtendedPrice",
},
{
- $ref: "#/parameters/select",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.shippingCost",
},
{
- $ref: "#/parameters/order",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedShippingCost",
},
{
- $ref: "#/parameters/range",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.createdAt",
},
{
- $ref: "#/parameters/rangeUnit",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.createdBy",
},
{
- $ref: "#/parameters/offset",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.updatedAt",
},
{
- $ref: "#/parameters/limit",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.updatedBy",
},
{
- $ref: "#/parameters/preferCount",
+ $ref: "#/parameters/preferReturn",
},
],
responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/externalLinkMessage",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
+ "204": {
+ description: "No Content",
},
},
- tags: ["externalLinkMessage"],
+ tags: ["supplierQuoteLinePrice"],
},
- post: {
+ patch: {
parameters: [
{
- $ref: "#/parameters/body.externalLinkMessage",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.supplierQuoteId",
},
{
- $ref: "#/parameters/select",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.supplierQuoteLineId",
},
{
- $ref: "#/parameters/preferPost",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.quantity",
},
- ],
- responses: {
- "201": {
- description: "Created",
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.leadTime",
},
- },
- tags: ["externalLinkMessage"],
- },
- delete: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.id",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.discountPercent",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.externalLinkId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.unitPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.message",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.exchangeRate",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedUnitPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.netUnitPrice",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedNetUnitPrice",
},
{
- $ref: "#/parameters/preferReturn",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.netExtendedPrice",
},
- ],
- responses: {
- "204": {
- description: "No Content",
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedNetExtendedPrice",
},
- },
- tags: ["externalLinkMessage"],
- },
- patch: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.id",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.shippingCost",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.externalLinkId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.convertedShippingCost",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.message",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.createdAt",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.createdBy",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.createdBy",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.createdAt",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.externalLinkMessage.companyId",
+ $ref: "#/parameters/rowFilter.supplierQuoteLinePrice.updatedBy",
},
{
- $ref: "#/parameters/body.externalLinkMessage",
+ $ref: "#/parameters/body.supplierQuoteLinePrice",
},
{
$ref: "#/parameters/preferReturn",
@@ -25731,17 +26595,287 @@ export default {
description: "No Content",
},
},
- tags: ["externalLinkMessage"],
+ tags: ["supplierQuoteLinePrice"],
},
},
- "/jobFavorite": {
+ "/companySettings": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.jobFavorite.jobId",
+ $ref: "#/parameters/rowFilter.companySettings.id",
},
{
- $ref: "#/parameters/rowFilter.jobFavorite.userId",
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteEnabled",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteNotificationGroup",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteIncludesPurchaseOrders",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/companySettings",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["companySettings"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.companySettings",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["companySettings"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.companySettings.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteEnabled",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteNotificationGroup",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteIncludesPurchaseOrders",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["companySettings"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.companySettings.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteEnabled",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteNotificationGroup",
+ },
+ {
+ $ref: "#/parameters/rowFilter.companySettings.digitalQuoteIncludesPurchaseOrders",
+ },
+ {
+ $ref: "#/parameters/body.companySettings",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["companySettings"],
+ },
+ },
+ "/externalLinkMessage": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.externalLinkId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.message",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.companyId",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/externalLinkMessage",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["externalLinkMessage"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.externalLinkMessage",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["externalLinkMessage"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.externalLinkId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.message",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.companyId",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["externalLinkMessage"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.externalLinkId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.message",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.externalLinkMessage.companyId",
+ },
+ {
+ $ref: "#/parameters/body.externalLinkMessage",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["externalLinkMessage"],
+ },
+ },
+ "/jobFavorite": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.jobFavorite.jobId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobFavorite.userId",
},
{
$ref: "#/parameters/select",
@@ -32142,6 +33276,12 @@ export default {
{
$ref: "#/parameters/rowFilter.suppliers.website",
},
+ {
+ $ref: "#/parameters/rowFilter.suppliers.externalId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.suppliers.tags",
+ },
{
$ref: "#/parameters/rowFilter.suppliers.type",
},
@@ -35544,56 +36684,41 @@ export default {
tags: ["employee"],
},
},
- "/supplierPart": {
+ "/itemPostingGroup": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.supplierPart.id",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierPartId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierUnitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.minimumOrderQuantity",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.id",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.conversionFactor",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.name",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.active",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.description",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.companyId",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.active",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.createdBy",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.companyId",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.createdAt",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.createdBy",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.updatedBy",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.createdAt",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.updatedAt",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.customFields",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.unitPrice",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.customFields",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.tags",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.tags",
},
{
$ref: "#/parameters/select",
@@ -35622,7 +36747,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/supplierPart",
+ $ref: "#/definitions/itemPostingGroup",
},
type: "array",
},
@@ -35631,12 +36756,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["supplierPart"],
+ tags: ["itemPostingGroup"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.supplierPart",
+ $ref: "#/parameters/body.itemPostingGroup",
},
{
$ref: "#/parameters/select",
@@ -35650,57 +36775,42 @@ export default {
description: "Created",
},
},
- tags: ["supplierPart"],
+ tags: ["itemPostingGroup"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.supplierPart.id",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierPartId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierUnitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.minimumOrderQuantity",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.id",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.conversionFactor",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.name",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.active",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.description",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.companyId",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.active",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.createdBy",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.companyId",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.createdAt",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.createdBy",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.updatedBy",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.createdAt",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.updatedAt",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.customFields",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.unitPrice",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.customFields",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.tags",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.tags",
},
{
$ref: "#/parameters/preferReturn",
@@ -35711,60 +36821,45 @@ export default {
description: "No Content",
},
},
- tags: ["supplierPart"],
+ tags: ["itemPostingGroup"],
},
patch: {
parameters: [
{
- $ref: "#/parameters/rowFilter.supplierPart.id",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.itemId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierPartId",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.supplierUnitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.supplierPart.minimumOrderQuantity",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.id",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.conversionFactor",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.name",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.active",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.description",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.companyId",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.active",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.createdBy",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.companyId",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.createdAt",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.createdBy",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.updatedBy",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.createdAt",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.updatedAt",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.customFields",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.unitPrice",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.customFields",
},
{
- $ref: "#/parameters/rowFilter.supplierPart.tags",
+ $ref: "#/parameters/rowFilter.itemPostingGroup.tags",
},
{
- $ref: "#/parameters/body.supplierPart",
+ $ref: "#/parameters/body.itemPostingGroup",
},
{
$ref: "#/parameters/preferReturn",
@@ -35775,44 +36870,41 @@ export default {
description: "No Content",
},
},
- tags: ["supplierPart"],
+ tags: ["itemPostingGroup"],
},
},
- "/itemPostingGroup": {
+ "/department": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.id",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.name",
+ $ref: "#/parameters/rowFilter.department.id",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.description",
+ $ref: "#/parameters/rowFilter.department.name",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.active",
+ $ref: "#/parameters/rowFilter.department.parentDepartmentId",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.companyId",
+ $ref: "#/parameters/rowFilter.department.companyId",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.createdBy",
+ $ref: "#/parameters/rowFilter.department.createdBy",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.createdAt",
+ $ref: "#/parameters/rowFilter.department.createdAt",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.updatedBy",
+ $ref: "#/parameters/rowFilter.department.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.updatedAt",
+ $ref: "#/parameters/rowFilter.department.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.customFields",
+ $ref: "#/parameters/rowFilter.department.customFields",
},
{
- $ref: "#/parameters/rowFilter.itemPostingGroup.tags",
+ $ref: "#/parameters/rowFilter.department.tags",
},
{
$ref: "#/parameters/select",
@@ -35841,7 +36933,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/itemPostingGroup",
+ $ref: "#/definitions/department",
},
type: "array",
},
@@ -35850,12 +36942,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["itemPostingGroup"],
+ tags: ["department"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.itemPostingGroup",
+ $ref: "#/parameters/body.department",
},
{
$ref: "#/parameters/select",
@@ -35869,193 +36961,7 @@ export default {
description: "Created",
},
},
- tags: ["itemPostingGroup"],
- },
- delete: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.id",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.name",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.description",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.active",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.customFields",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.tags",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["itemPostingGroup"],
- },
- patch: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.id",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.name",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.description",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.active",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.customFields",
- },
- {
- $ref: "#/parameters/rowFilter.itemPostingGroup.tags",
- },
- {
- $ref: "#/parameters/body.itemPostingGroup",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["itemPostingGroup"],
- },
- },
- "/department": {
- get: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.department.id",
- },
- {
- $ref: "#/parameters/rowFilter.department.name",
- },
- {
- $ref: "#/parameters/rowFilter.department.parentDepartmentId",
- },
- {
- $ref: "#/parameters/rowFilter.department.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.department.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.department.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.department.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.department.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.department.customFields",
- },
- {
- $ref: "#/parameters/rowFilter.department.tags",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/department",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["department"],
- },
- post: {
- parameters: [
- {
- $ref: "#/parameters/body.department",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/preferPost",
- },
- ],
- responses: {
- "201": {
- description: "Created",
- },
- },
- tags: ["department"],
+ tags: ["department"],
},
delete: {
parameters: [
@@ -36489,6 +37395,225 @@ export default {
tags: ["purchaseInvoiceLine"],
},
},
+ "/supplierQuoteFavorite": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteFavorite.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteFavorite.userId",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/supplierQuoteFavorite",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["supplierQuoteFavorite"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.supplierQuoteFavorite",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["supplierQuoteFavorite"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteFavorite.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteFavorite.userId",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierQuoteFavorite"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteFavorite.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteFavorite.userId",
+ },
+ {
+ $ref: "#/parameters/body.supplierQuoteFavorite",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["supplierQuoteFavorite"],
+ },
+ },
+ "/supplierQuoteLines": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.supplierQuoteId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.supplierQuoteRevisionId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.quantity",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.itemId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.itemReadableId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.description",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.supplierPartId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.supplierPartRevision",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.inventoryUnitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.purchaseUnitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.conversionFactor",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.notes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.taxPercent",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.tags",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.itemType",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.thumbnailPath",
+ },
+ {
+ $ref: "#/parameters/rowFilter.supplierQuoteLines.unitCost",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/supplierQuoteLines",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["supplierQuoteLines"],
+ },
+ },
"/salesRfqs": {
get: {
parameters: [
@@ -40075,6 +41200,22 @@ export default {
},
type: "array",
},
+ thumbnailPath: {
+ format: "text",
+ type: "string",
+ },
+ itemType: {
+ enum: [
+ "Part",
+ "Material",
+ "Tool",
+ "Service",
+ "Consumable",
+ "Fixture",
+ ],
+ format: 'public."itemType"',
+ type: "string",
+ },
locationName: {
format: "text",
type: "string",
@@ -41696,6 +42837,13 @@ export default {
format: "numeric",
type: "number",
},
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
supplierId: {
description:
"Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",
@@ -42677,6 +43825,52 @@ export default {
},
type: "object",
},
+ supplierInteraction: {
+ required: ["id", "companyId"],
+ properties: {
+ id: {
+ default: "public.xid()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ purchaseOrderId: {
+ description:
+ "Note:\nThis is a Foreign Key to `purchaseOrder.id`.<fk table='purchaseOrder' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ purchaseOrderCompletedDate: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ supplierQuoteId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierQuote.id`.<fk table='supplierQuote' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteCompletedDate: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ quoteDocumentPath: {
+ format: "text",
+ type: "string",
+ },
+ salesOrderDocumentPath: {
+ format: "text",
+ type: "string",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ },
+ type: "object",
+ },
purchaseInvoicePriceChange: {
required: [
"id",
@@ -42919,6 +44113,141 @@ export default {
},
type: "object",
},
+ supplierQuotes: {
+ properties: {
+ id: {
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteId: {
+ format: "text",
+ type: "string",
+ },
+ revisionId: {
+ format: "integer",
+ type: "integer",
+ },
+ quotedDate: {
+ format: "date",
+ type: "string",
+ },
+ expirationDate: {
+ format: "date",
+ type: "string",
+ },
+ status: {
+ enum: ["Active", "Expired"],
+ format: 'public."supplierQuoteStatus"',
+ type: "string",
+ },
+ internalNotes: {
+ format: "json",
+ },
+ externalNotes: {
+ format: "json",
+ },
+ supplierId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierLocationId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierContactId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierContact.id`.<fk table='supplierContact' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierReference: {
+ format: "text",
+ type: "string",
+ },
+ assignee: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ currencyCode: {
+ description:
+ "Note:\nThis is a Foreign Key to `currencyCode.code`.<fk table='currencyCode' column='code'/>",
+ format: "text",
+ type: "string",
+ },
+ exchangeRate: {
+ format: "numeric",
+ type: "number",
+ },
+ exchangeRateUpdatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ customFields: {
+ format: "jsonb",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ createdAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ thumbnailPath: {
+ format: "text",
+ type: "string",
+ },
+ itemType: {
+ enum: [
+ "Part",
+ "Material",
+ "Tool",
+ "Service",
+ "Consumable",
+ "Fixture",
+ ],
+ format: 'public."itemType"',
+ type: "string",
+ },
+ favorite: {
+ format: "boolean",
+ type: "boolean",
+ },
+ },
+ type: "object",
+ },
integration: {
required: ["id", "jsonschema"],
properties: {
@@ -43360,146 +44689,11 @@ export default {
},
type: "array",
},
- },
- type: "object",
- },
- fixtures: {
- properties: {
- active: {
- format: "boolean",
- type: "boolean",
- },
- assignee: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- defaultMethodType: {
- enum: ["Buy", "Make", "Pick"],
- format: 'public."methodType"',
- type: "string",
- },
- description: {
- format: "text",
- type: "string",
- },
- itemTrackingType: {
- enum: ["Inventory", "Non-Inventory"],
- format: 'public."itemTrackingType"',
- type: "string",
- },
- name: {
- format: "text",
- type: "string",
- },
- replenishmentSystem: {
- enum: ["Buy", "Make", "Buy and Make"],
- format: 'public."itemReplenishmentSystem"',
- type: "string",
- },
- unitOfMeasureCode: {
- format: "text",
- type: "string",
- },
- thumbnailPath: {
- format: "text",
- type: "string",
- },
- id: {
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- itemId: {
- description:
- "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
- format: "text",
- type: "string",
- },
- customerId: {
- description:
- "Note:\nThis is a Foreign Key to `customer.id`.<fk table='customer' column='id'/>",
- format: "text",
- type: "string",
- },
- approved: {
- format: "boolean",
- type: "boolean",
- },
- approvedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- customFields: {
- format: "jsonb",
- },
- companyId: {
- description:
- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
- format: "text",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- createdAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- externalId: {
- format: "jsonb",
- },
- tags: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- modelId: {
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- autodeskUrn: {
- format: "text",
- type: "string",
- },
- modelPath: {
- format: "text",
- type: "string",
- },
- modelName: {
- format: "text",
- type: "string",
- },
- modelSize: {
- format: "bigint",
- type: "integer",
- },
- supplierIds: {
- format: "text",
- type: "string",
+ internalNotes: {
+ format: "json",
},
- customer: {
- format: "text",
- type: "string",
+ externalNotes: {
+ format: "json",
},
},
type: "object",
@@ -44713,6 +45907,9 @@ export default {
},
type: "array",
},
+ notes: {
+ format: "json",
+ },
},
type: "object",
},
@@ -45011,6 +46208,121 @@ export default {
},
type: "object",
},
+ supplierQuoteLine: {
+ required: [
+ "id",
+ "supplierQuoteId",
+ "supplierQuoteRevisionId",
+ "itemId",
+ "description",
+ "conversionFactor",
+ "taxPercent",
+ "companyId",
+ "createdBy",
+ ],
+ properties: {
+ id: {
+ default: "public.xid()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierQuote.id`.<fk table='supplierQuote' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteRevisionId: {
+ default: 0,
+ format: "integer",
+ type: "integer",
+ },
+ quantity: {
+ format: "numeric[]",
+ items: {
+ type: "number",
+ },
+ type: "array",
+ },
+ itemId: {
+ description:
+ "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ itemReadableId: {
+ format: "text",
+ type: "string",
+ },
+ description: {
+ format: "text",
+ type: "string",
+ },
+ supplierPartId: {
+ format: "text",
+ type: "string",
+ },
+ supplierPartRevision: {
+ format: "text",
+ type: "string",
+ },
+ inventoryUnitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ purchaseUnitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ conversionFactor: {
+ default: 1,
+ format: "numeric",
+ type: "number",
+ },
+ notes: {
+ format: "json",
+ },
+ taxPercent: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ customFields: {
+ format: "jsonb",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ },
+ type: "object",
+ },
holidayYears: {
properties: {
year: {
@@ -45847,42 +47159,74 @@ export default {
},
type: "object",
},
- customer: {
- required: ["id", "name", "companyId", "createdAt", "taxPercent"],
+ supplierQuote: {
+ required: [
+ "id",
+ "supplierQuoteId",
+ "revisionId",
+ "quotedDate",
+ "status",
+ "supplierId",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ ],
properties: {
id: {
- default: "extensions.uuid_generate_v4()",
+ default: "public.xid()",
description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
},
- name: {
+ supplierQuoteId: {
format: "text",
type: "string",
},
- customerTypeId: {
- description:
- "Note:\nThis is a Foreign Key to `customerType.id`.<fk table='customerType' column='id'/>",
- format: "text",
+ revisionId: {
+ default: 0,
+ format: "integer",
+ type: "integer",
+ },
+ quotedDate: {
+ default: "CURRENT_DATE",
+ format: "date",
type: "string",
},
- customerStatusId: {
+ expirationDate: {
+ format: "date",
+ type: "string",
+ },
+ status: {
+ default: "Active",
+ enum: ["Active", "Expired"],
+ format: 'public."supplierQuoteStatus"',
+ type: "string",
+ },
+ internalNotes: {
+ format: "json",
+ },
+ externalNotes: {
+ format: "json",
+ },
+ supplierId: {
description:
- "Note:\nThis is a Foreign Key to `customerStatus.id`.<fk table='customerStatus' column='id'/>",
+ "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",
format: "text",
type: "string",
},
- taxId: {
+ supplierLocationId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
format: "text",
type: "string",
},
- accountManagerId: {
+ supplierContactId: {
description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ "Note:\nThis is a Foreign Key to `supplierContact.id`.<fk table='supplierContact' column='id'/>",
format: "text",
type: "string",
},
- logo: {
+ supplierReference: {
format: "text",
type: "string",
},
@@ -45892,12 +47236,36 @@ export default {
format: "text",
type: "string",
},
+ currencyCode: {
+ description:
+ "Note:\nThis is a Foreign Key to `currencyCode.code`.<fk table='currencyCode' column='code'/>",
+ format: "text",
+ type: "string",
+ },
+ exchangeRate: {
+ format: "numeric",
+ type: "number",
+ },
+ exchangeRateUpdatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
companyId: {
description:
"Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
format: "text",
type: "string",
},
+ customFields: {
+ format: "jsonb",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
createdAt: {
default: "now()",
format: "timestamp with time zone",
@@ -45919,78 +47287,153 @@ export default {
format: "text",
type: "string",
},
- customFields: {
- format: "jsonb",
- },
- currencyCode: {
- description:
- "Note:\nThis is a Foreign Key to `currencyCode.code`.<fk table='currencyCode' column='code'/>",
+ },
+ type: "object",
+ },
+ customer: {
+ required: ["id", "name", "companyId", "createdAt", "taxPercent"],
+ properties: {
+ id: {
+ default: "extensions.uuid_generate_v4()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
},
- phone: {
+ name: {
format: "text",
type: "string",
},
- fax: {
+ customerTypeId: {
+ description:
+ "Note:\nThis is a Foreign Key to `customerType.id`.<fk table='customerType' column='id'/>",
format: "text",
type: "string",
},
- website: {
+ customerStatusId: {
+ description:
+ "Note:\nThis is a Foreign Key to `customerStatus.id`.<fk table='customerStatus' column='id'/>",
format: "text",
type: "string",
},
- externalId: {
- format: "jsonb",
- },
- taxPercent: {
- default: 0,
- format: "numeric",
- type: "number",
- },
- tags: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- },
- type: "object",
- },
- note: {
- required: [
- "id",
- "documentId",
- "note",
- "noteRichText",
- "active",
- "companyId",
- "createdAt",
- "createdBy",
- ],
- properties: {
- id: {
- default: "public.xid()",
- description: "Note:\nThis is a Primary Key.<pk/>",
+ taxId: {
format: "text",
type: "string",
},
- documentId: {
+ accountManagerId: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
format: "text",
type: "string",
},
- note: {
+ logo: {
format: "text",
type: "string",
},
- noteRichText: {
- format: "jsonb",
- },
- active: {
- default: true,
- format: "boolean",
- type: "boolean",
+ assignee: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ customFields: {
+ format: "jsonb",
+ },
+ currencyCode: {
+ description:
+ "Note:\nThis is a Foreign Key to `currencyCode.code`.<fk table='currencyCode' column='code'/>",
+ format: "text",
+ type: "string",
+ },
+ phone: {
+ format: "text",
+ type: "string",
+ },
+ fax: {
+ format: "text",
+ type: "string",
+ },
+ website: {
+ format: "text",
+ type: "string",
+ },
+ externalId: {
+ format: "jsonb",
+ },
+ taxPercent: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ },
+ type: "object",
+ },
+ note: {
+ required: [
+ "id",
+ "documentId",
+ "note",
+ "noteRichText",
+ "active",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ ],
+ properties: {
+ id: {
+ default: "public.xid()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ documentId: {
+ format: "text",
+ type: "string",
+ },
+ note: {
+ format: "text",
+ type: "string",
+ },
+ noteRichText: {
+ format: "jsonb",
+ },
+ active: {
+ default: true,
+ format: "boolean",
+ type: "boolean",
},
companyId: {
description:
@@ -46510,6 +47953,22 @@ export default {
format: "text",
type: "string",
},
+ thumbnailPath: {
+ format: "text",
+ type: "string",
+ },
+ itemType: {
+ enum: [
+ "Part",
+ "Material",
+ "Tool",
+ "Service",
+ "Consumable",
+ "Fixture",
+ ],
+ format: 'public."itemType"',
+ type: "string",
+ },
shippingMethodName: {
format: "text",
type: "string",
@@ -46542,34 +48001,6 @@ export default {
format: "text",
type: "string",
},
- customerName: {
- format: "text",
- type: "string",
- },
- createdByAvatar: {
- format: "text",
- type: "string",
- },
- createdByFullName: {
- format: "text",
- type: "string",
- },
- updatedByAvatar: {
- format: "text",
- type: "string",
- },
- updatedByFullName: {
- format: "text",
- type: "string",
- },
- closedByAvatar: {
- format: "text",
- type: "string",
- },
- closedByFullName: {
- format: "text",
- type: "string",
- },
favorite: {
format: "boolean",
type: "boolean",
@@ -47149,16 +48580,16 @@ export default {
},
type: "object",
},
- ability: {
+ supplierPart: {
required: [
"id",
- "name",
- "curve",
- "shadowWeeks",
+ "itemId",
+ "supplierId",
+ "conversionFactor",
"active",
"companyId",
- "createdAt",
"createdBy",
+ "createdAt",
],
properties: {
id: {
@@ -47167,15 +48598,33 @@ export default {
format: "text",
type: "string",
},
- name: {
+ itemId: {
+ description:
+ "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
format: "text",
type: "string",
},
- curve: {
- format: "jsonb",
+ supplierId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",
+ format: "text",
+ type: "string",
},
- shadowWeeks: {
- default: 0,
+ supplierPartId: {
+ format: "text",
+ type: "string",
+ },
+ supplierUnitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ minimumOrderQuantity: {
+ default: 1,
+ format: "integer",
+ type: "integer",
+ },
+ conversionFactor: {
+ default: 1,
format: "numeric",
type: "number",
},
@@ -47186,22 +48635,18 @@ export default {
},
companyId: {
description:
- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
format: "text",
type: "string",
},
- createdAt: {
- default: "now()",
- format: "timestamp with time zone",
- type: "string",
- },
createdBy: {
description:
"Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
format: "text",
type: "string",
},
- updatedAt: {
+ createdAt: {
+ default: "now()",
format: "timestamp with time zone",
type: "string",
},
@@ -47211,18 +48656,38 @@ export default {
format: "text",
type: "string",
},
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ customFields: {
+ format: "jsonb",
+ },
+ unitPrice: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
},
type: "object",
},
- salesRfqLine: {
+ ability: {
required: [
"id",
- "salesRfqId",
- "unitOfMeasureCode",
- "order",
+ "name",
+ "curve",
+ "shadowWeeks",
+ "active",
"companyId",
+ "createdAt",
"createdBy",
- "customerPartId",
],
properties: {
id: {
@@ -47231,43 +48696,22 @@ export default {
format: "text",
type: "string",
},
- salesRfqId: {
- description:
- "Note:\nThis is a Foreign Key to `salesRfq.id`.<fk table='salesRfq' column='id'/>",
- format: "text",
- type: "string",
- },
- itemId: {
- description:
- "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
- format: "text",
- type: "string",
- },
- description: {
+ name: {
format: "text",
type: "string",
},
- quantity: {
- format: "numeric[]",
- items: {
- type: "number",
- },
- type: "array",
- },
- unitOfMeasureCode: {
- format: "text",
- type: "string",
+ curve: {
+ format: "jsonb",
},
- order: {
+ shadowWeeks: {
default: 0,
- format: "double precision",
+ format: "numeric",
type: "number",
},
- internalNotes: {
- format: "json",
- },
- externalNotes: {
- format: "json",
+ active: {
+ default: true,
+ format: "boolean",
+ type: "boolean",
},
companyId: {
description:
@@ -47275,9 +48719,94 @@ export default {
format: "text",
type: "string",
},
- customFields: {
- format: "jsonb",
- },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ },
+ type: "object",
+ },
+ salesRfqLine: {
+ required: [
+ "id",
+ "salesRfqId",
+ "unitOfMeasureCode",
+ "order",
+ "companyId",
+ "createdBy",
+ "customerPartId",
+ ],
+ properties: {
+ id: {
+ default: "public.xid()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ salesRfqId: {
+ description:
+ "Note:\nThis is a Foreign Key to `salesRfq.id`.<fk table='salesRfq' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ itemId: {
+ description:
+ "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ description: {
+ format: "text",
+ type: "string",
+ },
+ quantity: {
+ format: "numeric[]",
+ items: {
+ type: "number",
+ },
+ type: "array",
+ },
+ unitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ order: {
+ default: 0,
+ format: "double precision",
+ type: "number",
+ },
+ internalNotes: {
+ format: "json",
+ },
+ externalNotes: {
+ format: "json",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ customFields: {
+ format: "jsonb",
+ },
createdAt: {
default: "now()",
format: "timestamp with time zone",
@@ -49641,109 +51170,6 @@ export default {
},
type: "object",
},
- services: {
- properties: {
- id: {
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- itemId: {
- description:
- "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
- format: "text",
- type: "string",
- },
- serviceType: {
- enum: ["Internal", "External"],
- format: 'public."serviceType"',
- type: "string",
- },
- approved: {
- format: "boolean",
- type: "boolean",
- },
- approvedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- fromDate: {
- format: "date",
- type: "string",
- },
- toDate: {
- format: "date",
- type: "string",
- },
- customFields: {
- format: "jsonb",
- },
- companyId: {
- description:
- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
- format: "text",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- createdAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- name: {
- format: "text",
- type: "string",
- },
- description: {
- format: "text",
- type: "string",
- },
- active: {
- format: "boolean",
- type: "boolean",
- },
- replenishmentSystem: {
- enum: ["Buy", "Make", "Buy and Make"],
- format: 'public."itemReplenishmentSystem"',
- type: "string",
- },
- defaultMethodType: {
- enum: ["Buy", "Make", "Pick"],
- format: 'public."methodType"',
- type: "string",
- },
- assignee: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- supplierIds: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- },
- type: "object",
- },
itemLedger: {
required: [
"id",
@@ -49899,7 +51325,7 @@ export default {
type: "string",
},
documentType: {
- enum: ["Quote"],
+ enum: ["Quote", "SupplierQuote"],
format: 'public."externalLinkDocumentType"',
type: "string",
},
@@ -49928,6 +51354,12 @@ export default {
format: "text",
type: "string",
},
+ supplierId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",
+ format: "text",
+ type: "string",
+ },
},
type: "object",
},
@@ -50887,6 +52319,110 @@ export default {
},
type: "object",
},
+ supplierQuoteLinePrice: {
+ required: [
+ "supplierQuoteId",
+ "supplierQuoteLineId",
+ "quantity",
+ "leadTime",
+ "discountPercent",
+ "unitPrice",
+ "shippingCost",
+ "createdAt",
+ "createdBy",
+ ],
+ properties: {
+ supplierQuoteId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierQuote.id`.<fk table='supplierQuote' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteLineId: {
+ description:
+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierQuoteLine.id`.<fk table='supplierQuoteLine' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ quantity: {
+ default: 1,
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "numeric",
+ type: "number",
+ },
+ leadTime: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ discountPercent: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ unitPrice: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ exchangeRate: {
+ default: 1,
+ format: "numeric",
+ type: "number",
+ },
+ convertedUnitPrice: {
+ format: "numeric",
+ type: "number",
+ },
+ netUnitPrice: {
+ format: "numeric",
+ type: "number",
+ },
+ convertedNetUnitPrice: {
+ format: "numeric",
+ type: "number",
+ },
+ netExtendedPrice: {
+ format: "numeric",
+ type: "number",
+ },
+ convertedNetExtendedPrice: {
+ format: "numeric",
+ type: "number",
+ },
+ shippingCost: {
+ default: 0,
+ format: "numeric",
+ type: "number",
+ },
+ convertedShippingCost: {
+ format: "numeric",
+ type: "number",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ },
+ type: "object",
+ },
companySettings: {
required: [
"id",
@@ -51126,7 +52662,7 @@ export default {
properties: {
id: {
description:
- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
+ "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
format: "text",
type: "string",
},
@@ -51175,7 +52711,7 @@ export default {
},
supplierLocationId: {
description:
- "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
format: "text",
type: "string",
},
@@ -53740,6 +55276,16 @@ export default {
format: "text",
type: "string",
},
+ externalId: {
+ format: "jsonb",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
type: {
format: "text",
type: "string",
@@ -55385,104 +56931,6 @@ export default {
},
type: "object",
},
- supplierPart: {
- required: [
- "id",
- "itemId",
- "supplierId",
- "conversionFactor",
- "active",
- "companyId",
- "createdBy",
- "createdAt",
- ],
- properties: {
- id: {
- default: "public.xid()",
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- itemId: {
- description:
- "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
- format: "text",
- type: "string",
- },
- supplierId: {
- description:
- "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",
- format: "text",
- type: "string",
- },
- supplierPartId: {
- format: "text",
- type: "string",
- },
- supplierUnitOfMeasureCode: {
- format: "text",
- type: "string",
- },
- minimumOrderQuantity: {
- default: 1,
- format: "integer",
- type: "integer",
- },
- conversionFactor: {
- default: 1,
- format: "numeric",
- type: "number",
- },
- active: {
- default: true,
- format: "boolean",
- type: "boolean",
- },
- companyId: {
- description:
- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
- format: "text",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- createdAt: {
- default: "now()",
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- customFields: {
- format: "jsonb",
- },
- unitPrice: {
- default: 0,
- format: "numeric",
- type: "number",
- },
- tags: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- },
- type: "object",
- },
itemPostingGroup: {
required: ["id", "name", "active", "companyId", "createdBy", "createdAt"],
properties: {
@@ -55767,6 +57215,144 @@ export default {
},
type: "object",
},
+ supplierQuoteFavorite: {
+ required: ["supplierQuoteId", "userId"],
+ properties: {
+ supplierQuoteId: {
+ description:
+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierQuote.id`.<fk table='supplierQuote' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ userId: {
+ description:
+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ },
+ type: "object",
+ },
+ supplierQuoteLines: {
+ properties: {
+ id: {
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteId: {
+ description:
+ "Note:\nThis is a Foreign Key to `supplierQuote.id`.<fk table='supplierQuote' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ supplierQuoteRevisionId: {
+ format: "integer",
+ type: "integer",
+ },
+ quantity: {
+ format: "numeric[]",
+ items: {
+ type: "number",
+ },
+ type: "array",
+ },
+ itemId: {
+ description:
+ "Note:\nThis is a Foreign Key to `item.id`.<fk table='item' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ itemReadableId: {
+ format: "text",
+ type: "string",
+ },
+ description: {
+ format: "text",
+ type: "string",
+ },
+ supplierPartId: {
+ format: "text",
+ type: "string",
+ },
+ supplierPartRevision: {
+ format: "text",
+ type: "string",
+ },
+ inventoryUnitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ purchaseUnitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ conversionFactor: {
+ format: "numeric",
+ type: "number",
+ },
+ notes: {
+ format: "json",
+ },
+ taxPercent: {
+ format: "numeric",
+ type: "number",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ customFields: {
+ format: "jsonb",
+ },
+ tags: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ itemType: {
+ enum: [
+ "Part",
+ "Material",
+ "Tool",
+ "Service",
+ "Consumable",
+ "Fixture",
+ ],
+ format: 'public."itemType"',
+ type: "string",
+ },
+ thumbnailPath: {
+ format: "text",
+ type: "string",
+ },
+ unitCost: {
+ format: "numeric",
+ type: "number",
+ },
+ },
+ type: "object",
+ },
salesRfqs: {
properties: {
id: {
@@ -57312,6 +58898,20 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.quotes.thumbnailPath": {
+ name: "thumbnailPath",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quotes.itemType": {
+ name: "itemType",
+ required: false,
+ format: 'public."itemType"',
+ in: "query",
+ type: "string",
+ },
"rowFilter.quotes.locationName": {
name: "locationName",
required: false,
@@ -59376,6 +60976,13 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.purchaseOrderLines.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
"rowFilter.purchaseOrderLines.supplierId": {
name: "supplierId",
required: false,
@@ -60580,6 +62187,71 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierInteraction": {
+ name: "supplierInteraction",
+ description: "supplierInteraction",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierInteraction",
+ },
+ },
+ "rowFilter.supplierInteraction.id": {
+ name: "id",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.purchaseOrderId": {
+ name: "purchaseOrderId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.purchaseOrderCompletedDate": {
+ name: "purchaseOrderCompletedDate",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.supplierQuoteCompletedDate": {
+ name: "supplierQuoteCompletedDate",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.quoteDocumentPath": {
+ name: "quoteDocumentPath",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.salesOrderDocumentPath": {
+ name: "salesOrderDocumentPath",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierInteraction.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.purchaseInvoicePriceChange": {
name: "purchaseInvoicePriceChange",
description: "purchaseInvoicePriceChange",
@@ -60887,6 +62559,197 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierQuotes": {
+ name: "supplierQuotes",
+ description: "supplierQuotes",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierQuotes",
+ },
+ },
+ "rowFilter.supplierQuotes.id": {
+ name: "id",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.revisionId": {
+ name: "revisionId",
+ required: false,
+ format: "integer",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.quotedDate": {
+ name: "quotedDate",
+ required: false,
+ format: "date",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.expirationDate": {
+ name: "expirationDate",
+ required: false,
+ format: "date",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.status": {
+ name: "status",
+ required: false,
+ format: 'public."supplierQuoteStatus"',
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.internalNotes": {
+ name: "internalNotes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.externalNotes": {
+ name: "externalNotes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.supplierId": {
+ name: "supplierId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.supplierLocationId": {
+ name: "supplierLocationId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.supplierContactId": {
+ name: "supplierContactId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.supplierReference": {
+ name: "supplierReference",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.assignee": {
+ name: "assignee",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.currencyCode": {
+ name: "currencyCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.exchangeRate": {
+ name: "exchangeRate",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.exchangeRateUpdatedAt": {
+ name: "exchangeRateUpdatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.customFields": {
+ name: "customFields",
+ required: false,
+ format: "jsonb",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.createdAt": {
+ name: "createdAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.thumbnailPath": {
+ name: "thumbnailPath",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.itemType": {
+ name: "itemType",
+ required: false,
+ format: 'public."itemType"',
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuotes.favorite": {
+ name: "favorite",
+ required: false,
+ format: "boolean",
+ in: "query",
+ type: "string",
+ },
"body.integration": {
name: "integration",
description: "integration",
@@ -61450,215 +63313,17 @@ export default {
in: "query",
type: "string",
},
- "body.fixtures": {
- name: "fixtures",
- description: "fixtures",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/fixtures",
- },
- },
- "rowFilter.fixtures.active": {
- name: "active",
- required: false,
- format: "boolean",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.assignee": {
- name: "assignee",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.defaultMethodType": {
- name: "defaultMethodType",
- required: false,
- format: 'public."methodType"',
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.description": {
- name: "description",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.itemTrackingType": {
- name: "itemTrackingType",
- required: false,
- format: 'public."itemTrackingType"',
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.name": {
- name: "name",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.replenishmentSystem": {
- name: "replenishmentSystem",
- required: false,
- format: 'public."itemReplenishmentSystem"',
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.unitOfMeasureCode": {
- name: "unitOfMeasureCode",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.thumbnailPath": {
- name: "thumbnailPath",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.id": {
- name: "id",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.itemId": {
- name: "itemId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.customerId": {
- name: "customerId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.approved": {
- name: "approved",
- required: false,
- format: "boolean",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.approvedBy": {
- name: "approvedBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.customFields": {
- name: "customFields",
- required: false,
- format: "jsonb",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.companyId": {
- name: "companyId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.createdBy": {
- name: "createdBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.createdAt": {
- name: "createdAt",
- required: false,
- format: "timestamp with time zone",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.updatedBy": {
- name: "updatedBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.updatedAt": {
- name: "updatedAt",
- required: false,
- format: "timestamp with time zone",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.externalId": {
- name: "externalId",
- required: false,
- format: "jsonb",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.tags": {
- name: "tags",
- required: false,
- format: "text[]",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.modelId": {
- name: "modelId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.autodeskUrn": {
- name: "autodeskUrn",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.modelPath": {
- name: "modelPath",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.modelName": {
- name: "modelName",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.modelSize": {
- name: "modelSize",
- required: false,
- format: "bigint",
- in: "query",
- type: "string",
- },
- "rowFilter.fixtures.supplierIds": {
- name: "supplierIds",
+ "rowFilter.purchaseOrder.internalNotes": {
+ name: "internalNotes",
required: false,
- format: "text",
+ format: "json",
in: "query",
type: "string",
},
- "rowFilter.fixtures.customer": {
- name: "customer",
+ "rowFilter.purchaseOrder.externalNotes": {
+ name: "externalNotes",
required: false,
- format: "text",
+ format: "json",
in: "query",
type: "string",
},
@@ -63216,6 +64881,13 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.purchaseOrderLine.notes": {
+ name: "notes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
"body.salesOrderShipment": {
name: "salesOrderShipment",
description: "salesOrderShipment",
@@ -63609,6 +65281,155 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierQuoteLine": {
+ name: "supplierQuoteLine",
+ description: "supplierQuoteLine",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierQuoteLine",
+ },
+ },
+ "rowFilter.supplierQuoteLine.id": {
+ name: "id",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.supplierQuoteRevisionId": {
+ name: "supplierQuoteRevisionId",
+ required: false,
+ format: "integer",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.quantity": {
+ name: "quantity",
+ required: false,
+ format: "numeric[]",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.itemId": {
+ name: "itemId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.itemReadableId": {
+ name: "itemReadableId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.description": {
+ name: "description",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.supplierPartId": {
+ name: "supplierPartId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.supplierPartRevision": {
+ name: "supplierPartRevision",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.inventoryUnitOfMeasureCode": {
+ name: "inventoryUnitOfMeasureCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.purchaseUnitOfMeasureCode": {
+ name: "purchaseUnitOfMeasureCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.conversionFactor": {
+ name: "conversionFactor",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.notes": {
+ name: "notes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.taxPercent": {
+ name: "taxPercent",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.customFields": {
+ name: "customFields",
+ required: false,
+ format: "jsonb",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLine.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
"body.holidayYears": {
name: "holidayYears",
description: "holidayYears",
@@ -64812,6 +66633,176 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierQuote": {
+ name: "supplierQuote",
+ description: "supplierQuote",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierQuote",
+ },
+ },
+ "rowFilter.supplierQuote.id": {
+ name: "id",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.revisionId": {
+ name: "revisionId",
+ required: false,
+ format: "integer",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.quotedDate": {
+ name: "quotedDate",
+ required: false,
+ format: "date",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.expirationDate": {
+ name: "expirationDate",
+ required: false,
+ format: "date",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.status": {
+ name: "status",
+ required: false,
+ format: 'public."supplierQuoteStatus"',
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.internalNotes": {
+ name: "internalNotes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.externalNotes": {
+ name: "externalNotes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.supplierId": {
+ name: "supplierId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.supplierLocationId": {
+ name: "supplierLocationId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.supplierContactId": {
+ name: "supplierContactId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.supplierReference": {
+ name: "supplierReference",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.assignee": {
+ name: "assignee",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.currencyCode": {
+ name: "currencyCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.exchangeRate": {
+ name: "exchangeRate",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.exchangeRateUpdatedAt": {
+ name: "exchangeRateUpdatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.customFields": {
+ name: "customFields",
+ required: false,
+ format: "jsonb",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.createdAt": {
+ name: "createdAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuote.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.customer": {
name: "customer",
description: "customer",
@@ -65689,6 +67680,20 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.salesOrders.thumbnailPath": {
+ name: "thumbnailPath",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.salesOrders.itemType": {
+ name: "itemType",
+ required: false,
+ format: 'public."itemType"',
+ in: "query",
+ type: "string",
+ },
"rowFilter.salesOrders.shippingMethodName": {
name: "shippingMethodName",
required: false,
@@ -65745,55 +67750,6 @@ export default {
in: "query",
type: "string",
},
- "rowFilter.salesOrders.customerName": {
- name: "customerName",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.salesOrders.createdByAvatar": {
- name: "createdByAvatar",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.salesOrders.createdByFullName": {
- name: "createdByFullName",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.salesOrders.updatedByAvatar": {
- name: "updatedByAvatar",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.salesOrders.updatedByFullName": {
- name: "updatedByFullName",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.salesOrders.closedByAvatar": {
- name: "closedByAvatar",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.salesOrders.closedByFullName": {
- name: "closedByFullName",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
"rowFilter.salesOrders.favorite": {
name: "favorite",
required: false,
@@ -66480,6 +68436,127 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierPart": {
+ name: "supplierPart",
+ description: "supplierPart",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierPart",
+ },
+ },
+ "rowFilter.supplierPart.id": {
+ name: "id",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.itemId": {
+ name: "itemId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.supplierId": {
+ name: "supplierId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.supplierPartId": {
+ name: "supplierPartId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.supplierUnitOfMeasureCode": {
+ name: "supplierUnitOfMeasureCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.minimumOrderQuantity": {
+ name: "minimumOrderQuantity",
+ required: false,
+ format: "integer",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.conversionFactor": {
+ name: "conversionFactor",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.active": {
+ name: "active",
+ required: false,
+ format: "boolean",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.createdAt": {
+ name: "createdAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.customFields": {
+ name: "customFields",
+ required: false,
+ format: "jsonb",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.unitPrice": {
+ name: "unitPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierPart.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
"body.ability": {
name: "ability",
description: "ability",
@@ -69774,155 +71851,6 @@ export default {
in: "query",
type: "string",
},
- "body.services": {
- name: "services",
- description: "services",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/services",
- },
- },
- "rowFilter.services.id": {
- name: "id",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.itemId": {
- name: "itemId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.serviceType": {
- name: "serviceType",
- required: false,
- format: 'public."serviceType"',
- in: "query",
- type: "string",
- },
- "rowFilter.services.approved": {
- name: "approved",
- required: false,
- format: "boolean",
- in: "query",
- type: "string",
- },
- "rowFilter.services.approvedBy": {
- name: "approvedBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.fromDate": {
- name: "fromDate",
- required: false,
- format: "date",
- in: "query",
- type: "string",
- },
- "rowFilter.services.toDate": {
- name: "toDate",
- required: false,
- format: "date",
- in: "query",
- type: "string",
- },
- "rowFilter.services.customFields": {
- name: "customFields",
- required: false,
- format: "jsonb",
- in: "query",
- type: "string",
- },
- "rowFilter.services.companyId": {
- name: "companyId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.createdBy": {
- name: "createdBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.createdAt": {
- name: "createdAt",
- required: false,
- format: "timestamp with time zone",
- in: "query",
- type: "string",
- },
- "rowFilter.services.updatedBy": {
- name: "updatedBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.updatedAt": {
- name: "updatedAt",
- required: false,
- format: "timestamp with time zone",
- in: "query",
- type: "string",
- },
- "rowFilter.services.name": {
- name: "name",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.description": {
- name: "description",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.active": {
- name: "active",
- required: false,
- format: "boolean",
- in: "query",
- type: "string",
- },
- "rowFilter.services.replenishmentSystem": {
- name: "replenishmentSystem",
- required: false,
- format: 'public."itemReplenishmentSystem"',
- in: "query",
- type: "string",
- },
- "rowFilter.services.defaultMethodType": {
- name: "defaultMethodType",
- required: false,
- format: 'public."methodType"',
- in: "query",
- type: "string",
- },
- "rowFilter.services.assignee": {
- name: "assignee",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.services.supplierIds": {
- name: "supplierIds",
- required: false,
- format: "text[]",
- in: "query",
- type: "string",
- },
"body.itemLedger": {
name: "itemLedger",
description: "itemLedger",
@@ -70125,6 +72053,13 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.externalLink.supplierId": {
+ name: "supplierId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.quoteOperationTool": {
name: "quoteOperationTool",
description: "quoteOperationTool",
@@ -71397,6 +73332,141 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierQuoteLinePrice": {
+ name: "supplierQuoteLinePrice",
+ description: "supplierQuoteLinePrice",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierQuoteLinePrice",
+ },
+ },
+ "rowFilter.supplierQuoteLinePrice.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.supplierQuoteLineId": {
+ name: "supplierQuoteLineId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.quantity": {
+ name: "quantity",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.leadTime": {
+ name: "leadTime",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.discountPercent": {
+ name: "discountPercent",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.unitPrice": {
+ name: "unitPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.exchangeRate": {
+ name: "exchangeRate",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.convertedUnitPrice": {
+ name: "convertedUnitPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.netUnitPrice": {
+ name: "netUnitPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.convertedNetUnitPrice": {
+ name: "convertedNetUnitPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.netExtendedPrice": {
+ name: "netExtendedPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.convertedNetExtendedPrice": {
+ name: "convertedNetExtendedPrice",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.shippingCost": {
+ name: "shippingCost",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.convertedShippingCost": {
+ name: "convertedShippingCost",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.createdAt": {
+ name: "createdAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLinePrice.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.companySettings": {
name: "companySettings",
description: "companySettings",
@@ -75133,6 +77203,20 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.suppliers.externalId": {
+ name: "externalId",
+ required: false,
+ format: "jsonb",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.suppliers.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
"rowFilter.suppliers.type": {
name: "type",
required: false,
@@ -77299,127 +79383,6 @@ export default {
in: "query",
type: "string",
},
- "body.supplierPart": {
- name: "supplierPart",
- description: "supplierPart",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/supplierPart",
- },
- },
- "rowFilter.supplierPart.id": {
- name: "id",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.itemId": {
- name: "itemId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.supplierId": {
- name: "supplierId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.supplierPartId": {
- name: "supplierPartId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.supplierUnitOfMeasureCode": {
- name: "supplierUnitOfMeasureCode",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.minimumOrderQuantity": {
- name: "minimumOrderQuantity",
- required: false,
- format: "integer",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.conversionFactor": {
- name: "conversionFactor",
- required: false,
- format: "numeric",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.active": {
- name: "active",
- required: false,
- format: "boolean",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.companyId": {
- name: "companyId",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.createdBy": {
- name: "createdBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.createdAt": {
- name: "createdAt",
- required: false,
- format: "timestamp with time zone",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.updatedBy": {
- name: "updatedBy",
- required: false,
- format: "text",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.updatedAt": {
- name: "updatedAt",
- required: false,
- format: "timestamp with time zone",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.customFields": {
- name: "customFields",
- required: false,
- format: "jsonb",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.unitPrice": {
- name: "unitPrice",
- required: false,
- format: "numeric",
- in: "query",
- type: "string",
- },
- "rowFilter.supplierPart.tags": {
- name: "tags",
- required: false,
- format: "text[]",
- in: "query",
- type: "string",
- },
"body.itemPostingGroup": {
name: "itemPostingGroup",
description: "itemPostingGroup",
@@ -77790,6 +79753,199 @@ export default {
in: "query",
type: "string",
},
+ "body.supplierQuoteFavorite": {
+ name: "supplierQuoteFavorite",
+ description: "supplierQuoteFavorite",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierQuoteFavorite",
+ },
+ },
+ "rowFilter.supplierQuoteFavorite.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteFavorite.userId": {
+ name: "userId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "body.supplierQuoteLines": {
+ name: "supplierQuoteLines",
+ description: "supplierQuoteLines",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/supplierQuoteLines",
+ },
+ },
+ "rowFilter.supplierQuoteLines.id": {
+ name: "id",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.supplierQuoteId": {
+ name: "supplierQuoteId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.supplierQuoteRevisionId": {
+ name: "supplierQuoteRevisionId",
+ required: false,
+ format: "integer",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.quantity": {
+ name: "quantity",
+ required: false,
+ format: "numeric[]",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.itemId": {
+ name: "itemId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.itemReadableId": {
+ name: "itemReadableId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.description": {
+ name: "description",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.supplierPartId": {
+ name: "supplierPartId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.supplierPartRevision": {
+ name: "supplierPartRevision",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.inventoryUnitOfMeasureCode": {
+ name: "inventoryUnitOfMeasureCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.purchaseUnitOfMeasureCode": {
+ name: "purchaseUnitOfMeasureCode",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.conversionFactor": {
+ name: "conversionFactor",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.notes": {
+ name: "notes",
+ required: false,
+ format: "json",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.taxPercent": {
+ name: "taxPercent",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.customFields": {
+ name: "customFields",
+ required: false,
+ format: "jsonb",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.tags": {
+ name: "tags",
+ required: false,
+ format: "text[]",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.itemType": {
+ name: "itemType",
+ required: false,
+ format: 'public."itemType"',
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.thumbnailPath": {
+ name: "thumbnailPath",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.supplierQuoteLines.unitCost": {
+ name: "unitCost",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
"body.salesRfqs": {
name: "salesRfqs",
description: "salesRfqs",
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 24d6219a4a..aaad2c425a 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -21260,14 +21260,13 @@ export type Database = {
createdBy: string;
currencyCode: string | null;
customFields: Json | null;
- dueDate: string | null;
exchangeRate: number | null;
exchangeRateUpdatedAt: string | null;
expirationDate: string | null;
- externalLinkId: string | null;
externalNotes: Json | null;
id: string;
internalNotes: Json | null;
+ quotedDate: string;
revisionId: number;
status: Database["public"]["Enums"]["supplierQuoteStatus"];
supplierContactId: string | null;
@@ -21286,14 +21285,13 @@ export type Database = {
createdBy: string;
currencyCode?: string | null;
customFields?: Json | null;
- dueDate?: string | null;
exchangeRate?: number | null;
exchangeRateUpdatedAt?: string | null;
expirationDate?: string | null;
- externalLinkId?: string | null;
externalNotes?: Json | null;
id?: string;
internalNotes?: Json | null;
+ quotedDate?: string;
revisionId?: number;
status?: Database["public"]["Enums"]["supplierQuoteStatus"];
supplierContactId?: string | null;
@@ -21312,14 +21310,13 @@ export type Database = {
createdBy?: string;
currencyCode?: string | null;
customFields?: Json | null;
- dueDate?: string | null;
exchangeRate?: number | null;
exchangeRateUpdatedAt?: string | null;
expirationDate?: string | null;
- externalLinkId?: string | null;
externalNotes?: Json | null;
id?: string;
internalNotes?: Json | null;
+ quotedDate?: string;
revisionId?: number;
status?: Database["public"]["Enums"]["supplierQuoteStatus"];
supplierContactId?: string | null;
@@ -27431,14 +27428,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey";
- columns: ["supplierCountryCode"];
+ columns: ["customerCountryCode"];
isOneToOne: false;
referencedRelation: "country";
referencedColumns: ["alpha2"];
},
{
foreignKeyName: "address_countryCode_fkey";
- columns: ["customerCountryCode"];
+ columns: ["supplierCountryCode"];
isOneToOne: false;
referencedRelation: "country";
referencedColumns: ["alpha2"];
@@ -30418,16 +30415,15 @@ export type Database = {
createdBy: string | null;
currencyCode: string | null;
customFields: Json | null;
- dueDate: string | null;
exchangeRate: number | null;
exchangeRateUpdatedAt: string | null;
expirationDate: string | null;
- externalLinkId: string | null;
externalNotes: Json | null;
favorite: boolean | null;
id: string | null;
internalNotes: Json | null;
itemType: Database["public"]["Enums"]["itemType"] | null;
+ quotedDate: string | null;
revisionId: number | null;
status: Database["public"]["Enums"]["supplierQuoteStatus"] | null;
supplierContactId: string | null;
@@ -32074,7 +32070,7 @@ export type Database = {
| "Finance Charge Memo"
| "Reminder"
| "Refund";
- supplierQuoteStatus: "Draft" | "Submitted" | "Accepted" | "Rejected";
+ supplierQuoteStatus: "Active" | "Expired";
};
CompositeTypes: {
[_ in never]: never;
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index 24d6219a4a..aaad2c425a 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -21260,14 +21260,13 @@ export type Database = {
createdBy: string;
currencyCode: string | null;
customFields: Json | null;
- dueDate: string | null;
exchangeRate: number | null;
exchangeRateUpdatedAt: string | null;
expirationDate: string | null;
- externalLinkId: string | null;
externalNotes: Json | null;
id: string;
internalNotes: Json | null;
+ quotedDate: string;
revisionId: number;
status: Database["public"]["Enums"]["supplierQuoteStatus"];
supplierContactId: string | null;
@@ -21286,14 +21285,13 @@ export type Database = {
createdBy: string;
currencyCode?: string | null;
customFields?: Json | null;
- dueDate?: string | null;
exchangeRate?: number | null;
exchangeRateUpdatedAt?: string | null;
expirationDate?: string | null;
- externalLinkId?: string | null;
externalNotes?: Json | null;
id?: string;
internalNotes?: Json | null;
+ quotedDate?: string;
revisionId?: number;
status?: Database["public"]["Enums"]["supplierQuoteStatus"];
supplierContactId?: string | null;
@@ -21312,14 +21310,13 @@ export type Database = {
createdBy?: string;
currencyCode?: string | null;
customFields?: Json | null;
- dueDate?: string | null;
exchangeRate?: number | null;
exchangeRateUpdatedAt?: string | null;
expirationDate?: string | null;
- externalLinkId?: string | null;
externalNotes?: Json | null;
id?: string;
internalNotes?: Json | null;
+ quotedDate?: string;
revisionId?: number;
status?: Database["public"]["Enums"]["supplierQuoteStatus"];
supplierContactId?: string | null;
@@ -27431,14 +27428,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey";
- columns: ["supplierCountryCode"];
+ columns: ["customerCountryCode"];
isOneToOne: false;
referencedRelation: "country";
referencedColumns: ["alpha2"];
},
{
foreignKeyName: "address_countryCode_fkey";
- columns: ["customerCountryCode"];
+ columns: ["supplierCountryCode"];
isOneToOne: false;
referencedRelation: "country";
referencedColumns: ["alpha2"];
@@ -30418,16 +30415,15 @@ export type Database = {
createdBy: string | null;
currencyCode: string | null;
customFields: Json | null;
- dueDate: string | null;
exchangeRate: number | null;
exchangeRateUpdatedAt: string | null;
expirationDate: string | null;
- externalLinkId: string | null;
externalNotes: Json | null;
favorite: boolean | null;
id: string | null;
internalNotes: Json | null;
itemType: Database["public"]["Enums"]["itemType"] | null;
+ quotedDate: string | null;
revisionId: number | null;
status: Database["public"]["Enums"]["supplierQuoteStatus"] | null;
supplierContactId: string | null;
@@ -32074,7 +32070,7 @@ export type Database = {
| "Finance Charge Memo"
| "Reminder"
| "Refund";
- supplierQuoteStatus: "Draft" | "Submitted" | "Accepted" | "Rejected";
+ supplierQuoteStatus: "Active" | "Expired";
};
CompositeTypes: {
[_ in never]: never;
diff --git a/packages/database/supabase/migrations/20241202192419_supplier-quotes.sql b/packages/database/supabase/migrations/20241202192419_supplier-quotes.sql
index 95f92a211a..d2e8bce4a2 100644
--- a/packages/database/supabase/migrations/20241202192419_supplier-quotes.sql
+++ b/packages/database/supabase/migrations/20241202192419_supplier-quotes.sql
@@ -1,8 +1,6 @@
CREATE TYPE "supplierQuoteStatus" AS ENUM (
- 'Draft',
- 'Submitted',
- 'Accepted',
- 'Rejected'
+ 'Active',
+ 'Expired'
);
INSERT INTO "customFieldTable" ("table", "name", "module")
@@ -32,9 +30,9 @@ CREATE TABLE "supplierQuote" (
"id" TEXT NOT NULL DEFAULT xid(),
"supplierQuoteId" TEXT NOT NULL,
"revisionId" INTEGER NOT NULL DEFAULT 0,
- "dueDate" DATE,
+ "quotedDate" DATE NOT NULL DEFAULT CURRENT_DATE,
"expirationDate" DATE,
- "status" "supplierQuoteStatus" NOT NULL DEFAULT 'Draft',
+ "status" "supplierQuoteStatus" NOT NULL DEFAULT 'Active',
"internalNotes" JSON DEFAULT '{}'::json,
"externalNotes" JSON DEFAULT '{}'::json,
"supplierId" TEXT NOT NULL,
diff --git a/packages/react/src/Table.tsx b/packages/react/src/Table.tsx
index 918e55052f..b81859c11b 100644
--- a/packages/react/src/Table.tsx
+++ b/packages/react/src/Table.tsx
@@ -19,7 +19,7 @@ const Table = forwardRef<
/>
</div>
) : (
- <div className="rounded-md border overflow-hidden">
+ <div className="rounded-md border w-full overflow-hidden">
<div className="relative w-full overflow-auto">
<table
ref={ref}