requisition receipt fixed
database.sql script merged with current ospos one
remaining problems in reporting (sale_type to add in sales_temp query?)
data model should be refactored to allow more genericity for custom item locations (2+)
inventory tracking should be adapted to use multiple locations (instead of duplicating items for different locations)
Fix: Qty. column is not show in requisition report

Padungsak
Merge branch 'master' into merge/padungsak

Conflicts:
	application/views/config.php
Add multi-stock feature
Finished task
1. User can add stock location in config page. Adding format is StockA,StockB,StockC for example
2. Item page, there is no more quantity column show in cert table. The quantity tracking is integrated in inventory detail
3. Receiving page, There is a stock location for user to select before receiving or returning stuff
4. Sale page, There is a stock location which is for user to select a stock location they sell from

Remain task
1. Requisition work flow
2. Language editing
3. Remove unuse code

PS
Fix quantity removal in items page

PS
Added empty check in stock_locations config
Rework database script (contains stock_locations + item_quantities tables)
Add quantity column in item page
Fix bug about validating stock location config

PS
Add foregin key constraints to stock_locations and item_quantities tables
Requisition options is only shown when multiple stock locations are configured
Fix stock locations config in the configuration page
Rename item_quantitys to item_quantities
Fix a missing label (need to check if present in master)
Fix display of the stock quantities in items/manage view
Fixed sale suspending / unsuspending (adapt db scripts)
Cleanup old code
More code review
Update item_quantities database model (composite pk)
Requisition is now registered as receiving for destination stock and return for source stock
Remove specific requisition report and code
Adapt receivings report to show requisitions in a generic way
Fix requisitions report (can be found under receiving type = requisitions)
Add database migration script for 2.2.0

git-svn-id: svn+ssh://svn.code.sf.net/p/opensourcepos/code/@108 c3eb156b-1dc0-44e1-88ae-e38439141b53
Bump version to 2.2.2
Rename database script

git-svn-id: svn+ssh://svn.code.sf.net/p/opensourcepos/code/@109 c3eb156b-1dc0-44e1-88ae-e38439141b53
Add migration script for 2.2.2 to 2.3
Update database script (add extra foreign keys + minor cleanup)
Fix barcode generation (removed whitespace from stock_locations model)
Fix error in receivings receipt
Update database migration script (needs more review)
Stock locations are now shown on receivings and sales receipts
Database migration script now defines a default stock location name
Rmeove obsolete constraints from migration script
Clear sale and receiving libs (sessoin state) when changing stock locations
Location column is kept in database
Added a data migration script for stock_locations and item_quantities tables
Merge branch 'merge/padungsak'

Conflicts:
	database/database.sql
Default stock name is the same as in update script