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