Partially revert update queries
This commit is contained in:
parent
0baa065896
commit
114993ed75
7 changed files with 11 additions and 5 deletions
|
@ -8,9 +8,9 @@ import ConfirmButton, {
|
|||
ConfirmButtonTransitionState
|
||||
} from "@saleor/components/ConfirmButton";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import { InvoiceErrorFragment } from "@saleor/fragments/types/InvoiceErrorFragment";
|
||||
import { InvoiceFragment } from "@saleor/fragments/types/InvoiceFragment";
|
||||
import { buttonMessages } from "@saleor/intl";
|
||||
import { InvoiceErrorFragment } from "@saleor/orders/types/InvoiceErrorFragment";
|
||||
import { InvoiceFragment } from "@saleor/orders/types/InvoiceFragment";
|
||||
import { DialogProps } from "@saleor/types";
|
||||
import getInvoiceErrorMessage from "@saleor/utils/errors/invoice";
|
||||
import React from "react";
|
||||
|
|
|
@ -12,8 +12,8 @@ import Date from "@saleor/components/Date";
|
|||
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import TableCellHeader from "@saleor/components/TableCellHeader";
|
||||
import { InvoiceFragment } from "@saleor/fragments/types/InvoiceFragment";
|
||||
import { buttonMessages } from "@saleor/intl";
|
||||
import { InvoiceFragment } from "@saleor/orders/types/InvoiceFragment";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { InvoiceFragment } from "@saleor/fragments/types/InvoiceFragment";
|
||||
import { SearchCustomers_search_edges_node } from "@saleor/searches/types/SearchCustomers";
|
||||
import { warehouseList } from "@saleor/warehouses/fixtures";
|
||||
import { MessageDescriptor } from "react-intl";
|
||||
|
@ -11,7 +12,6 @@ import {
|
|||
OrderStatus,
|
||||
PaymentChargeStatusEnum
|
||||
} from "../types/globalTypes";
|
||||
import { InvoiceFragment } from "./types/InvoiceFragment";
|
||||
import { OrderDetails_order } from "./types/OrderDetails";
|
||||
import { OrderList_orders_edges_node } from "./types/OrderList";
|
||||
import { SearchOrderVariant_search_edges_node } from "./types/SearchOrderVariant";
|
||||
|
|
|
@ -472,6 +472,12 @@ const invoiceRequestMutation = gql`
|
|||
invoice {
|
||||
...InvoiceFragment
|
||||
}
|
||||
order {
|
||||
id
|
||||
invoices {
|
||||
...InvoiceFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { InvoiceErrorFragment } from "@saleor/fragments/types/InvoiceErrorFragment";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { InvoiceErrorFragment } from "@saleor/orders/types/InvoiceErrorFragment";
|
||||
import { InvoiceErrorCode } from "@saleor/types/globalTypes";
|
||||
import { defineMessages, IntlShape } from "react-intl";
|
||||
|
||||
|
|
Loading…
Reference in a new issue