Browse Source

Import utilisateurs

feature/export_comptable
Fab 4 years ago
parent
commit
d1f81ef47d
2 changed files with 5 additions and 1 deletions
  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 View File

@@ -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 View File

@@ -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 ;
}

}
}

Loading…
Cancel
Save