* Sales may be 'day sale'
* Save the amount of the sale on database
* Get complete and not day sale recordset on Sale index
* Allow to destroy day sale records.
* First running version of the test: unfinished.
Complete the test
Complete the test and improve usability
* Substitute the checkbox for day sales by a toggleable button.
* Complete the test.
* Provider code must be required, so barcode could be automatically generated.
* Barcode could not be editable in any way by the user (edit and new views).
* Test.
Reduce stock after sale and increase after cancelling a sale
* Warehouse can be added / edited from product, and is shown in index.
* Test
Comment for future reviews
* Add filter select box in index, and create scope for index.
* Test
* Add missing file to complement previous commit :(
Merge pull request #15 from suyccom/reduce_stock_on_sale

Reduce stock after sale and increase after cancelling a sale
Fix merge
Discount and Units inputs update the Total too, taking care of not pulling out the day sale button :)
Fix merge
Fix merge
Test environment was failing. @symbol was not reaching to the whole page, so putting that definition on top of the file seems to fix it.
Merge pull request #13 from suyccom/todo_10438_day_sale

Todo 10438 day sale
Fix bad rendering of error message, and fix test to support autogenerated barcodes.
Fix test (day sale) to support auto barcodes
Ups, add the file :P
Fix cancel sale test to acomplish auto barcodes