From 7a5609a40f9feccbd3d13e2ce75aef46d5f82f4f Mon Sep 17 00:00:00 2001 From: yusmar Date: Sat, 13 Nov 2021 10:58:20 +0700 Subject: [PATCH] add discount field --- api/accessories/models/accessories.settings.json | 3 +++ api/apparel/models/apparel.settings.json | 3 +++ api/helmet/models/helmet.settings.json | 3 +++ .../models/product-image-color.settings.json | 4 +-- api/product/models/product.settings.json | 7 ++++-- api/transaction/models/transaction.settings.json | 29 ++++++++++++++-------- api/yamalube/models/yamalube.settings.json | 3 +++ api/yg-part/models/yg-part.settings.json | 3 +++ 8 files changed, 40 insertions(+), 15 deletions(-) diff --git a/api/accessories/models/accessories.settings.json b/api/accessories/models/accessories.settings.json index ec26670..be4ca51 100644 --- a/api/accessories/models/accessories.settings.json +++ b/api/accessories/models/accessories.settings.json @@ -46,6 +46,9 @@ }, "otr_price_bengkulu": { "type": "biginteger" + }, + "discount": { + "type": "decimal" } } } diff --git a/api/apparel/models/apparel.settings.json b/api/apparel/models/apparel.settings.json index eac1d6a..eb84b98 100644 --- a/api/apparel/models/apparel.settings.json +++ b/api/apparel/models/apparel.settings.json @@ -58,6 +58,9 @@ }, "otr_price_bengkulu": { "type": "biginteger" + }, + "discount": { + "type": "decimal" } } } diff --git a/api/helmet/models/helmet.settings.json b/api/helmet/models/helmet.settings.json index 4f965b5..3dc728b 100644 --- a/api/helmet/models/helmet.settings.json +++ b/api/helmet/models/helmet.settings.json @@ -59,6 +59,9 @@ }, "otr_price_bengkulu": { "type": "biginteger" + }, + "discount": { + "type": "decimal" } } } diff --git a/api/product-image-color/models/product-image-color.settings.json b/api/product-image-color/models/product-image-color.settings.json index 05b5e70..975c424 100644 --- a/api/product-image-color/models/product-image-color.settings.json +++ b/api/product-image-color/models/product-image-color.settings.json @@ -26,8 +26,8 @@ "required": false }, "product": { - "model": "product", - "via": "product_image_colors" + "via": "product_image_colors", + "model": "product" } } } diff --git a/api/product/models/product.settings.json b/api/product/models/product.settings.json index d684116..1745f85 100644 --- a/api/product/models/product.settings.json +++ b/api/product/models/product.settings.json @@ -226,8 +226,11 @@ "via": "product" }, "product_image_colors": { - "via": "product", - "collection": "product-image-color" + "collection": "product-image-color", + "via": "product" + }, + "discount": { + "type": "decimal" } } } diff --git a/api/transaction/models/transaction.settings.json b/api/transaction/models/transaction.settings.json index 407f6be..72f5b87 100644 --- a/api/transaction/models/transaction.settings.json +++ b/api/transaction/models/transaction.settings.json @@ -41,20 +41,27 @@ "note": { "type": "text" }, - "product_img": { - "model": "file", - "via": "related", - "allowedTypes": [ - "images", - "files", - "videos" - ], - "plugin": "upload", - "required": false - }, "status": { "model": "status", "via": "transactions" + }, + "cust_email": { + "type": "email" + }, + "cust_postCode": { + "type": "string" + }, + "cust_village": { + "type": "string" + }, + "cust_district": { + "type": "string" + }, + "cust_city": { + "type": "string" + }, + "cust_province": { + "type": "string" } } } diff --git a/api/yamalube/models/yamalube.settings.json b/api/yamalube/models/yamalube.settings.json index 4097159..fdd6adb 100644 --- a/api/yamalube/models/yamalube.settings.json +++ b/api/yamalube/models/yamalube.settings.json @@ -45,6 +45,9 @@ }, "otr_price_bengkulu": { "type": "biginteger" + }, + "discount": { + "type": "decimal" } } } diff --git a/api/yg-part/models/yg-part.settings.json b/api/yg-part/models/yg-part.settings.json index e51474a..47cb1da 100644 --- a/api/yg-part/models/yg-part.settings.json +++ b/api/yg-part/models/yg-part.settings.json @@ -37,6 +37,9 @@ }, "price2": { "type": "biginteger" + }, + "discount": { + "type": "decimal" } } }