Enable submitting in variant creator
This commit is contained in:
parent
bcc4f96f82
commit
1b3e304c79
6 changed files with 594 additions and 2012 deletions
2594
schema.graphql
2594
schema.graphql
File diff suppressed because it is too large
Load diff
|
@ -300,7 +300,6 @@ export const productCreateMutation = gql`
|
|||
$basePrice: Decimal
|
||||
$productType: ID!
|
||||
$sku: String
|
||||
$stockQuantity: Int
|
||||
$seo: SeoInput
|
||||
$stocks: [StockInput!]!
|
||||
$trackInventory: Boolean!
|
||||
|
@ -318,7 +317,6 @@ export const productCreateMutation = gql`
|
|||
basePrice: $basePrice
|
||||
productType: $productType
|
||||
sku: $sku
|
||||
quantity: $stockQuantity
|
||||
seo: $seo
|
||||
stocks: $stocks
|
||||
trackInventory: $trackInventory
|
||||
|
@ -366,7 +364,6 @@ export const variantUpdateMutation = gql`
|
|||
$costPrice: Decimal
|
||||
$priceOverride: Decimal
|
||||
$sku: String
|
||||
$quantity: Int
|
||||
$trackInventory: Boolean!
|
||||
$stocks: [StockInput!]!
|
||||
) {
|
||||
|
@ -377,7 +374,6 @@ export const variantUpdateMutation = gql`
|
|||
costPrice: $costPrice
|
||||
priceOverride: $priceOverride
|
||||
sku: $sku
|
||||
quantity: $quantity
|
||||
trackInventory: $trackInventory
|
||||
}
|
||||
) {
|
||||
|
|
|
@ -224,7 +224,6 @@ export interface ProductCreateVariables {
|
|||
basePrice?: any | null;
|
||||
productType: string;
|
||||
sku?: string | null;
|
||||
stockQuantity?: number | null;
|
||||
seo?: SeoInput | null;
|
||||
stocks: StockInput[];
|
||||
trackInventory: boolean;
|
||||
|
|
|
@ -264,7 +264,6 @@ export interface VariantUpdateVariables {
|
|||
costPrice?: any | null;
|
||||
priceOverride?: any | null;
|
||||
sku?: string | null;
|
||||
quantity?: number | null;
|
||||
trackInventory: boolean;
|
||||
stocks: StockInput[];
|
||||
}
|
||||
|
|
|
@ -98,7 +98,6 @@ export const ProductVariant: React.FC<ProductVariantCreateProps> = ({
|
|||
costPrice: decimal(formData.costPrice),
|
||||
priceOverride: decimal(formData.priceOverride),
|
||||
product: productId,
|
||||
quantity: parseInt(formData.quantity, 0),
|
||||
sku: formData.sku,
|
||||
stocks: formData.stocks.map(stock => ({
|
||||
quantity: parseInt(stock.value, 0),
|
||||
|
|
|
@ -1223,9 +1223,9 @@ export interface ProductVariantBulkCreateInput {
|
|||
costPrice?: any | null;
|
||||
priceOverride?: any | null;
|
||||
sku: string;
|
||||
stocks: StockInput[];
|
||||
trackInventory?: boolean | null;
|
||||
weight?: any | null;
|
||||
stocks?: StockInput[] | null;
|
||||
}
|
||||
|
||||
export interface ProductVariantCreateInput {
|
||||
|
@ -1233,7 +1233,6 @@ export interface ProductVariantCreateInput {
|
|||
costPrice?: any | null;
|
||||
priceOverride?: any | null;
|
||||
sku?: string | null;
|
||||
quantity?: number | null;
|
||||
trackInventory?: boolean | null;
|
||||
weight?: any | null;
|
||||
product: string;
|
||||
|
@ -1245,7 +1244,6 @@ export interface ProductVariantInput {
|
|||
costPrice?: any | null;
|
||||
priceOverride?: any | null;
|
||||
sku?: string | null;
|
||||
quantity?: number | null;
|
||||
trackInventory?: boolean | null;
|
||||
weight?: any | null;
|
||||
}
|
||||
|
@ -1459,6 +1457,7 @@ export interface WarehouseCreateInput {
|
|||
|
||||
export interface WarehouseFilterInput {
|
||||
search?: string | null;
|
||||
ids?: (string | null)[] | null;
|
||||
}
|
||||
|
||||
export interface WarehouseSortingInput {
|
||||
|
|
Loading…
Reference in a new issue