New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

spree_invoice

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spree_invoice

  • 1.2.3
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

SpreeInvoice

This gem provides model responsible for generating pdf from html file.

Basic Installation

  1. Add the following to your Gemfile
  gem 'spree_invoice', '~> 1.2.0'
  1. Run bundle install
  2. To copy and apply migrations run:
	rails g spree_invoice:install

Configuration

In file config/initializers/spree_invoice.rb please check your configuration for wkhtmltopdf bin path. For more see: wicked_pdf

Usage

  1. Print Invoice directly
	Spree::Invoice.find_by_order_id('some id').try(:generate_pdf)
  1. Print Invoice from order
	Order.last.invoice.generate_pdf
  1. Print Invoice from User
	pdfs = []
	User.last.invoices.each { |e| pdfs << e.generate_pdf }

You can also check how many times invoice was generated - column: counter

Copyright (c) 2012 [Damiano Giacomello], released under the New BSD License

FAQs

Package last updated on 27 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc