0.0
No commit activity in last 3 years
No release in over 3 years
A ruby gem to get accounting books for SUNAT
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.2
~> 2.2
~> 0.10
~> 0.48

Runtime

~> 1.8
~> 2.0
 Project Readme

Sunat Books

Gem Version Build Status Code Climate

A ruby gem to get accounting books for SUNAT

Install

You can install via

gem install sunat_books

or by adding to your Gemfile

gem 'sunat_books'

Usage

require 'sunat_books'

to get a pdf format

pdf = SunatBooks::Pdf::Buys.new(company, tickets, month, year)
pdf.render

to get the txt file for electronic books

ple = SunatBooks::Ple::Buys.new(ruc, tickets, month, year, options)

Currently allowed options are:

  • yml: path location to a custom layout file
  • layout: a hash to define method names to replace in layout
  • book_format: book format to use