Procházet zdrojové kódy

add discount field

master
yusmar před 3 roky
rodič
revize
7a5609a40f
8 změnil soubory, kde provedl 40 přidání a 15 odebrání
  1. +3
    -0
      api/accessories/models/accessories.settings.json
  2. +3
    -0
      api/apparel/models/apparel.settings.json
  3. +3
    -0
      api/helmet/models/helmet.settings.json
  4. +2
    -2
      api/product-image-color/models/product-image-color.settings.json
  5. +5
    -2
      api/product/models/product.settings.json
  6. +18
    -11
      api/transaction/models/transaction.settings.json
  7. +3
    -0
      api/yamalube/models/yamalube.settings.json
  8. +3
    -0
      api/yg-part/models/yg-part.settings.json

+ 3
- 0
api/accessories/models/accessories.settings.json Zobrazit soubor

@@ -46,6 +46,9 @@
}, },
"otr_price_bengkulu": { "otr_price_bengkulu": {
"type": "biginteger" "type": "biginteger"
},
"discount": {
"type": "decimal"
} }
} }
} }

+ 3
- 0
api/apparel/models/apparel.settings.json Zobrazit soubor

@@ -58,6 +58,9 @@
}, },
"otr_price_bengkulu": { "otr_price_bengkulu": {
"type": "biginteger" "type": "biginteger"
},
"discount": {
"type": "decimal"
} }
} }
} }

+ 3
- 0
api/helmet/models/helmet.settings.json Zobrazit soubor

@@ -59,6 +59,9 @@
}, },
"otr_price_bengkulu": { "otr_price_bengkulu": {
"type": "biginteger" "type": "biginteger"
},
"discount": {
"type": "decimal"
} }
} }
} }

+ 2
- 2
api/product-image-color/models/product-image-color.settings.json Zobrazit soubor

@@ -26,8 +26,8 @@
"required": false "required": false
}, },
"product": { "product": {
"model": "product",
"via": "product_image_colors"
"via": "product_image_colors",
"model": "product"
} }
} }
} }

+ 5
- 2
api/product/models/product.settings.json Zobrazit soubor

@@ -226,8 +226,11 @@
"via": "product" "via": "product"
}, },
"product_image_colors": { "product_image_colors": {
"via": "product",
"collection": "product-image-color"
"collection": "product-image-color",
"via": "product"
},
"discount": {
"type": "decimal"
} }
} }
} }

+ 18
- 11
api/transaction/models/transaction.settings.json Zobrazit soubor

@@ -41,20 +41,27 @@
"note": { "note": {
"type": "text" "type": "text"
}, },
"product_img": {
"model": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false
},
"status": { "status": {
"model": "status", "model": "status",
"via": "transactions" "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"
} }
} }
} }

+ 3
- 0
api/yamalube/models/yamalube.settings.json Zobrazit soubor

@@ -45,6 +45,9 @@
}, },
"otr_price_bengkulu": { "otr_price_bengkulu": {
"type": "biginteger" "type": "biginteger"
},
"discount": {
"type": "decimal"
} }
} }
} }

+ 3
- 0
api/yg-part/models/yg-part.settings.json Zobrazit soubor

@@ -37,6 +37,9 @@
}, },
"price2": { "price2": {
"type": "biginteger" "type": "biginteger"
},
"discount": {
"type": "decimal"
} }
} }
} }

Načítá se…
Zrušit
Uložit