Browse Source

[IMP] price in products

Gogs 7 năm trước cách đây
mục cha
commit
447750a1cf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/steps/Product.vue

+ 1 - 1
src/components/steps/Product.vue

@@ -2,7 +2,7 @@
     .pos-step
         .products-selector
             searcher(:items='products' :keys="['name', 'displayName', 'ean13', 'defaultCode']" mode='normal' @onSearch='filterProducts')
-            card-grid(:items='visibleProducts' :loading='loadingProducts' @onAdd='showProductForm' @onSelect='selectProduct')
+            card-grid(:items='visibleProducts' :loading='loadingProducts' @onAdd='showProductForm' :details="['price:c']" @onSelect='selectProduct')
             product-modal(:show='showingProductForm' @onAccept='submitProduct' @onCancel='hideProductForm')
             variant-modal
             discount-modal(:item='itemToDiscount' :options='selectedCurrency' :show='!!itemToDiscount' @onAccept='applyPrice' @onCancel='applyPrice')