Added orderrow fields

This commit is contained in:
Niklas Fondberg
2021-04-11 09:03:04 +02:00
parent d76bd3678c
commit b8ff97ce6a
5 changed files with 200 additions and 26 deletions
+113 -12
View File
@@ -106,21 +106,51 @@ const typeDefs = gql`
type OrderRow {
id: ID!
order: Order
inserted: DateTime
orderId: Int
productId: Int
productGroup: String
artNo: String
path: String
name: String
price: Float
designerId: String
commissionAmount: String
status: String
pwintyImageId: Int
code: String
commission: Int
commissionAmount: Float
commissionResale: Int
designer: String
designerId: Int
designerPath: String
discountType: String
discountValue: Float
displayHeight: Int
displayWidth: Int
edge: Int
frameColor: String
framed: Int
group: ProductGroup
height: Int
imagedonotprint: Int
imageprocessed: Int
imageprocessingrejected: Int
inserted: DateTime
material: String
measureUnit: String
mirrored: Int
modifier: String
name: String
noShipping: Boolean
order: Order
orderId: Int
path: String
price: Float
printId: Int
process: Boolean
productGroup: String
productId: Int
pwintyImageId: Int
pwintySku: String
resolution: Int
status: String
type: String
vat: Float
weight: Int
width: Int
x: Float
y: Float
}
type Category {
@@ -146,10 +176,12 @@ const typeDefs = gql`
PHOTO_WALLPAPER
CANVAS
WALLPAPER
OLD_REMOVED
DO_IT_YOURSELF_FRAME
DESIGNER_WALLPAPER
POSTER
FRAMED_PRINT
UNKNOWN
}
type ProductBlacklist {
@@ -179,3 +211,72 @@ const typeDefs = gql`
`;
export { typeDefs };
/*
orderrows example
{
printId: '73963',
productId: '54192',
group: 'photo-wallpaper',
type: 'scaling',
artNo: 'e50075',
path: 'flora-hysterica-4',
name: 'Flora Hysterica 4',
price: '587.092480',
width: '640',
height: '260',
x: '0.000000',
y: '0.135133',
weight: '1',
designer: 'martin-bergstrom',
designerId: '201',
commission: '0',
commissionResale: '0',
status: 'print',
process: 'true',
vat: '1.210000',
commissionAmount: '0.000000',
framed: '0',
mirrored: '0',
edge: '0',
imageprocessed: 'true',
imageprocessingrejected: 'false',
resolution: '150',
imagedonotprint: 'false',
material: 'premium-wallpaper',
discountType: '%',
discountValue: '25',
measureUnit: 'cm',
displayWidth: '640',
displayHeight: '260',
designerPath: 'martin-bergstrom',
productGroup: 'photo-wallpaper',
id: 1559849,
orderId: 588274,
inserted: 2021-02-04T09:58:11.243Z
},
{
type: '%',
name: 'Influencer 2021 IT',
price: '-150.826446',
vat: '1.210000',
modifier: 'discount',
code: 'mynameiseleonora25',
noShipping: 'False',
id: 1559850,
orderId: 588274,
inserted: 2021-02-04T09:58:11.243Z
}
"doityourselfframe"
"fixed"
"tiling"
"gift-voucher"
"custom"
"scaling"
"%"
"stock"
*/