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

{ {
title: null, title: null,
position: 0, position: 0,
status:1,
fieldToUpdate: ['title', 'unit', 'quantity', 'price'], fieldToUpdate: ['title', 'unit', 'quantity', 'price'],
price: null, price: null,
priceWithTax: null, priceWithTax: null,
this.title = toPlainText(this.title); this.title = toPlainText(this.title);


this.$nextTick(function () { this.$nextTick(function () {

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

+ 3
- 1
ShopBundle/Services/MerchantUtils.php View File



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


if(isset($params['credit'])) { if(isset($params['credit'])) {
return $userMerchant ; return $userMerchant ;
} }


}
}

Loading…
Cancel
Save