ali 1 рік тому
батько
коміт
8b71cd763d
2 змінених файлів з 8 додано та 2 видалено
  1. 4 1
      src/models/Package.js
  2. 4 1
      src/models/Product.js

+ 4 - 1
src/models/Package.js

@@ -10,7 +10,10 @@ class Package extends Model {
       { key: 'inventory' },
       { key: 'store_category' },
       { key: 'content_category' },
-      { key: 'unit_price' },
+      {
+        key: 'unit_price',
+        default: 0
+      },
       { key: 'sellable_price' },
       { key: 'discount_percent' },
       { key: 'description' },

+ 4 - 1
src/models/Product.js

@@ -10,7 +10,10 @@ class Product extends Model {
       { key: 'inventory' },
       { key: 'store_category' },
       { key: 'content_category' },
-      { key: 'unit_price' },
+      {
+        key: 'unit_price',
+        default: 0
+      },
       { key: 'sellable_price' },
       {
         key: 'discount_percent',