Ver código fonte

Import utilisateurs

feature/export_comptable
Fab 4 anos atrás
pai
commit
d1f81ef47d
2 arquivos alterados com 5 adições e 1 exclusões
  1. +2
    -0
      ShopBundle/Resources/public/js/backend/script/productfamily/vuejs-product-family.js
  2. +3
    -1
      ShopBundle/Services/MerchantUtils.php

+ 2
- 0
ShopBundle/Resources/public/js/backend/script/productfamily/vuejs-product-family.js Ver arquivo

@@ -166,6 +166,7 @@ $(window).on('load', function () {
{
title: null,
position: 0,
status:1,
fieldToUpdate: ['title', 'unit', 'quantity', 'price'],
price: null,
priceWithTax: null,
@@ -205,6 +206,7 @@ $(window).on('load', function () {
this.title = toPlainText(this.title);

this.$nextTick(function () {

log(this.status);
if (this.status == 0) {
$(this.$el).addClass('disabled');

+ 3
- 1
ShopBundle/Services/MerchantUtils.php Ver arquivo

@@ -44,6 +44,8 @@ class MerchantUtils

if(isset($params['credit_active'])) {
$userMerchant->setCreditActive($params['credit_active']) ;
}else{
$userMerchant->setCreditActive(false);
}

if(isset($params['credit'])) {
@@ -59,4 +61,4 @@ class MerchantUtils
return $userMerchant ;
}

}
}

Carregando…
Cancelar
Salvar