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',