Code Monkey home page Code Monkey logo

print_clerk's Introduction

Build Status Gem Version Code Climate Test Coverage

SUMMARY

This extension provides a "Print Invoice" button on the Orders view screen which opens a printable html page with the order details. Actually several types are supported and it is easy to add more or edit existing.

You have to set up your computer for printing, or PDF generation. Off course, if you cave a mac that is as easy as pressing the print + save as pdf buttons.

INSTALLATION

  1. To install you need to add the following lines to your Gemfile (no external dependencies)

    gem 'print_clerk'

  2. run bundler

    bundle

  3. Configure your logo and footer text or more. It's easy as it's html.

  4. Enjoy!

Configuration

The templates are split into quite small chunks that you can just replace with your own.

Texts are stored in locale files

  1. Set the logo path preference in locales/config.yml (root key config)

    invoice_logo_path: "company-logo.png"

    With the file existing in your asset path

  2. Override any of the partial templates. they are address, footer, totals, header, thanks , and the items. Especially the thanks and footer templates are ones you will probably want to replace.

  3. Disable any styles by changing the config.yml to suit

    print_styles: "receipt slip invoice reminder"

    For each style there will be a button on the order/show page ( you may add your own)

  4. Go through the templates and see what you need to change.

TODO

Tests are not very good on this one. Pull requests welcome :-)

Extra

There is now a receipt template, for a normal receipt printer (ie 70mm). This works for us, but what about you?

Contributions welcome

Torsten

print_clerk's People

Contributors

czarrrna avatar aberracja avatar

Watchers

James Cloos 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.