Giter VIP home page Giter VIP logo

spree-point-of-sale's Introduction

Spree Pos Code Climate Build Status

SpreePos hooks into the Admin Tab and is meant to be used to sell at a shop.

Allows you to search and add items available at the selected stock location. Apply discount on items, associate the order to customer email and save the details of payment to finally finish the order with an invoice ready to print.

Dependencies

  1. spree_html_invoice (optional)

By default POS relies on html-invoice to print a receipt. You can configure this away by setting :pos_printing to the url where you want to redirect after print.

  1. barby

  2. prawn

  3. chunky_png

SET UP

To your Gemfile add:

Add spree-point-of-sale to your Gemfile:

gem "spree-point-of-sale"

For specific spree versions:

#Spree 2.0.x
gem "spree-point-of-sale", '1.0.3'
#Spree 2.1.x
gem "spree-point-of-sale", '1.1.1'
#Spree 2.2.x
gem "spree-point-of-sale", '1.2.1'

If you DONT change the :pos_printing config as described above, you must also add

gem 'spree_html_invoice' , :git => 'git://github.com/vinsol/spree-html-invoice.git', tag: '1.2'
bundle install

Finally for migrations, css and javascript do

bundle exec rails g spree_pos:install

Configure

You must configure:

  1. ShippingMethod : Create a shipping method for pos and set it from the admin end via general settings. Usually something like "pickup" with cost 0.

  2. Payment Methods : They can be added under PointOfSale payment method from admin end itself.

  3. Store : Make sure atleast one of your stock locations is marked as store.

Order

The order is linked to the admin creating the order to keep a track of pos orders initiated by a particular admin.

Admin won't be allowed to update a paid order or even to create a new order when there is an order pending to be paid.

Stock Location and Inventory

By default the first active stock location is picked up considering a single stock location. In case of multiple stock locations you can easily switch them.

Stock Locations available to be selected can be easily configured by re-defining user_stock_locations for pos_controller.

The inventory is updated along with addition and removal of items from the order.

Barcode printing and SKU

Barcode printing relies on sku to be provided for variants.

There are links provided to print barcodes for individual variants in the variants index for a product or barcodes for all variants can be printed from the product listings as well.

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

Credits

vinsol.com: Ruby on Rails, iOS and Android developers

Copyright (c) 2014 vinsol.com, released under the New MIT License

spree-point-of-sale's People

Contributors

satish avatar bansalakhil avatar nishant-cyro avatar

Watchers

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