|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data.distribution) { |
|
|
if (response.data.distribution) { |
|
|
app.distribution = response.data.distribution; |
|
|
app.distribution = response.data.distribution; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
errorCreditMandatoryAndLimit: function() { |
|
|
errorCreditMandatoryAndLimit: function() { |
|
|
return this.user && ( |
|
|
return this.user && ( |
|
|
this.pointSaleActive.credit_functioning == 'mandatory' |
|
|
this.pointSaleActive.credit_functioning == 'mandatory' |
|
|
|| (this.pointSaleActive.credit_functioning == 'user' && this.user.credit_active) |
|
|
|
|
|
|
|
|
|| (this.pointSaleActive.credit_functioning == 'user' && user.credit_active) |
|
|
) |
|
|
) |
|
|
&& !this.checkCreditLimit(this.order); |
|
|
&& !this.checkCreditLimit(this.order); |
|
|
}, |
|
|
}, |