How can I validate permissions per month?

0

I am trying to do a validation that only allows me to register 2 permits per month, that is to say after the two monthly permits, I will not be able to carry out any other permits if not until next month.

I have my following code:

var contadormensual = response.data.length;

              if(contadormensual >= 2){
                  this.desabilitado = 1;
              }

              else{
                  this.desabilitado = 0;
              }
    
asked by SoyKrut 20.11.2018 в 18:21
source

0 answers