|
|
|
|
|
|
|
|
&& !this.isPaymentMethodCreditActiveFunctioningMandatory() |
|
|
&& !this.isPaymentMethodCreditActiveFunctioningMandatory() |
|
|
}, |
|
|
}, |
|
|
errorCreditMandatoryAndLimit: function() { |
|
|
errorCreditMandatoryAndLimit: function() { |
|
|
return this.user && ( |
|
|
|
|
|
this.pointSaleActive.credit_functioning == 'mandatory' |
|
|
|
|
|
|| (this.pointSaleActive.credit_functioning == 'user' && this.user.credit_active) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
return this.user |
|
|
|
|
|
&& this.pointSaleActive |
|
|
|
|
|
&& this.pointSaleActive.payment_method_credit |
|
|
|
|
|
&& (this.pointSaleActive.credit_functioning == 'mandatory' |
|
|
|
|
|
|| (this.pointSaleActive.credit_functioning == 'user' && this.user.credit_active)) |
|
|
&& !this.checkCreditLimit(this.order); |
|
|
&& !this.checkCreditLimit(this.order); |
|
|
}, |
|
|
}, |
|
|
confirmClick: function() { |
|
|
confirmClick: function() { |