Plugin Directory

Changeset 2492286


Ignore:
Timestamp:
03/10/2021 03:17:37 PM (5 years ago)
Author:
ponto25
Message:

Exception: Nif que contem "PT" é retirado devido a ser invalido e ao marvin não aceitar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • marvinerp-api/tags/1.0.8/src/Controllers/Orders/OrderCustomer.php

    r2489615 r2492286  
    7373
    7474        $this->vat            = $this->getVatNumber();
     75        $this->vat            = $this->SterilizeNif($this->vat);
    7576
    7677
     
    236237        return false;
    237238    }
     239     public function SterilizeNif($nif)
     240    {
     241        if (str_contains($nif, 'PT')){
     242            $nif=str_replace('PT', '', $nif) ;
     243            }
     244        return $nif;
     245    }
    238246}
Note: See TracChangeset for help on using the changeset viewer.