소스 검색

fixed #456

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