Skip to content

mkangia/spree-point-of-sale

Repository files navigation

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", require: 'spree_pos'

If you're still using Spree 2.0.x, you should do this instead:

gem "spree-point-of-sale", '1.0.3', require: 'spree_pos'

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

gem 'spree_html_invoice' , :git => 'git://github.com/dancinglightning/spree-html-invoice.git'
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published