Giter Site home page Giter Site logo

reboleto's Introduction

Reboleto

Esta aplicação foi desenvolvida para facilitar a postergação do vencimento de boletos bancários.

Você pode acessar a interface web e informar o número do boleto, data de vencimento e multas para gerar um novo número, ou pode acessar diretamente pelo console rails:

bill = BankBillGenerator.new('10498.60024 89090.023501 03888.563875 1 54210000007744')
bill.generate_number(Date.new(2012, 8, 17), '78.99') #=> "10498.60024 89090.023501 03888.563875 3 54280000007899"

Caso deseje informar multas através do console, pode utilizar:

bill = BankBill.new
bill.number = '10498.60024 89090.023501 03888.563875 1 54210000007744'
bill.expiration = Date.new(2012,9,20) # data de vencimento desejada
bill.fine = '13,34' # valor da multa
bill.fine_per_day = '2,13' # valor da multa diária
bill.generate_number #=> "10498.60024 89090.023501 03888.563875 3 54620000017811"

reboleto's People

Contributors

teonimesic avatar

Watchers

 avatar  avatar  avatar

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.