ali hai 1 ano
pai
achega
8b71cd763d
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  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',