GithubHelp home page GithubHelp logo

nfse-bh-sdk's Introduction

Hey There

LinkedIn Outlook



I'm Wander Alves, a dedicated Backend Software Engineer holding. My professional trajectory in the technology landscape has been both challenging and rewarding, and I'm eager to provide you with insights into my journey.

Technologies & Tools

  • Languages: Golang, TypeScript, JavaScript, Python
  • Frameworks: Node.js, Nest.js, Adonis.js, Express.js, React.js, Next.js
  • Databases: SQL Server, MySQL, PostgreSQL, Redis, MongoDB
  • Cloud Services: AWS, Heroku
  • Project Management: Scrum, Kanban

Languages and Tools:

bootstrap css3 docker git html5 javascript jest laravel linux mongodb mysql nestjs nginx nodejs php postgresql python reactnative redis sass sqlite symfony tailwind typescript

nfse-bh-sdk's People

Contributors

josefcts avatar wsilva94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nfse-bh-sdk's Issues

Couldn't load from 'https://bhisshomologa.pbh.gov.br/bhiss-ws/nfse?wsdl'

Primeiramente, agradeço pela disponibilização da lib, estou enfrentando um problema na utilizacao:

Exception:
No momento o sistema da prefeitura está instável ou inoperante, tente novamente mais tarde.
E - SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://bhisshomologa.pbh.gov.br/bhiss-ws/nfse?wsdl' : failed to load external entity "https://bhisshomologa.pbh.gov.br/bhiss-ws/nfse?wsdl"

Nao consigo sequer rodar os testes, pois todos os cenarios retornam esse mesmo erro.

` public function emitir()
{
try {
//ambiente
$settings = new Settings();
$settings->environment = 'producao';
//Emitente
$settings->issuer->name = 'Serviço Social do Comércio - ARMG';
$settings->issuer->cnpj = 3643856003199;
$settings->issuer->imun = 6992712;
$settings->issuer->codMun = 3106200;
//certificado digital
$settings->certificate->folder = DIR . '/storage/certificates/' . $settings->issuer->cnpj . '/';
$settings->certificate->certFile = 'certificate.pfx';
$settings->certificate->mixedKey = 'mixedKey.pem';
$settings->certificate->privateKey = 'privateKey.pem';
$settings->certificate->publicKey = 'publicKey.pem';
$settings->certificate->password = 'fv100954';
$settings->certificate->noValidate = true;
//set Identificacao Rps
$parameter = new Lot();
$parameter->rpsLot = '201700000000006';
$parameter->rps->number = '201700000000002';
$parameter->rps->serie = 'AAAAA';
$parameter->rps->type = 1;
$parameter->rps->date = date('Y-m-d H:i:s');
$parameter->rps->nature = 1;
$parameter->rps->regime = 6;
$parameter->rps->simple = 1;
$parameter->rps->culturalPromoter = 2;
$parameter->rps->status = 1;
//set serviço
$parameter->rps->service->itemList = 17.19;
$parameter->rps->service->municipalityTaxationCode = 171900188;
$parameter->rps->service->municipalCode = 3106200;
$parameter->rps->service->description = 'PRESTACAO DE SERVICOS CONTABEIS';
$parameter->rps->service->serviceValue = 15.00;
$parameter->rps->service->issWithheld = 2;
$parameter->rps->service->aliquot = 5;
$parameter->rps->service->valueDeductions = 0;
$parameter->rps->service->otherDeductions = 0;
$parameter->rps->service->valuePis = 0;
$parameter->rps->service->valueConfis = 0;
$parameter->rps->service->valueINSS = 0;
$parameter->rps->service->valueIR = 0;
$parameter->rps->service->valueCSLL = 0;
$parameter->rps->service->discountCondition = 0;
$parameter->rps->service->unconditionedDiscount = 0;

        //set tomador
        $parameter->rps->taker->type = 1;
        $parameter->rps->taker->name = 'Krypton Servicos Contabeis S/S';
        $parameter->rps->taker->document = 42784421000109;
        $parameter->rps->taker->municipalRegistration = 10876045716;
        //set tomador endereço
        $parameter->rps->taker->address->address = 'R Visconde De Taunay';
        $parameter->rps->taker->address->number = 173;
        $parameter->rps->taker->address->complement = '';
        $parameter->rps->taker->address->neighborhood = 'Sao Lucas';
        $parameter->rps->taker->address->zipCode = 30240300;
        $parameter->rps->taker->address->state = 'MG';
        $parameter->rps->taker->address->municipalityCode = 3106200;
    
        $lote = (new LoteRps($settings, $parameter->rpsLot));
        $rps = (new Rps($settings, $parameter->rps->number . $parameter->rps->serie));
    
        //set data
        $rps->setRpsIdentification($parameter);
        $rps->setService($parameter);
        $rps->setProvider();
        $rps->setTaker($parameter);
    
        //realiza chamada
        $signedRps = $rps->getSignedRps();
        $lote->addRps($signedRps);
        $result = $lote->sendLote();
    
        dd($result);
    } catch (Exception $e) {
        throw $e;
    }
}

}`

Inscrição Municipal não funciona

Olá, utilizando o projeto vi que a inscrição municipal passa por um sanitize por ser número. Mas a inscrição municipal pode ter letras também. Poderia olhar isso?

Novidades

Vou lançar uma nova versão com novas funcionalidades e a refatoração do código.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.