I agree that the empty database creates its own problems.
The algorithm works with the application in short can be described as follows:
Working with the list comes in three modes: Edit, procurement process view. (Perhaps this is the main problem and I can not think of any other more viable option). These processes have arisen from life. First, we create a list, then we go to the shop and celebrate all that I possess. A house already view the list on the subject, which can be forgotten.
In the beginning you make a list and entered into it products such as: "Fresh bread", "Pirog, who loves Mom", "Mineral water for the Pope," "Buns with raisins, sprinkled with nuts," etc.
Those. Items you call because you are comfortable. After the editing process list is closed (Back).
Again, selecting a list, you already have the opportunity again to edit it, or go to the procurement process.
Since the list of shops empty, you are in the search bar, type in the name and it will appear in the first line of the list. By choosing this entry you create a new point of sale. And proceed to the purchase process. Introduction outlet remains in the database and the next time it will already be on the list.
During the purchase, you click on the item and choose a product in the same way for him. The base product is empty and you fill it with the help of the search string.
Selected product - it is the goods purchased. for it is already possible to set the price and quantity.
Prices are already formed on the basis of data collected by the application.
If you try to formulate a different, let's say (it's just understanding AH): The application has a local database and a "global". First, the search is conducted in the local database if the record is not present, the search is conducted in a "global". Those. in the search box you type any word and they supposedly are "global" basis, retrieved from there and transferred to your local database.
I hope I have not confused.
If you offer embodiments, from your point of view, I will try to implement them.
Post has been editedSindbad.RT - 11.08.14, 05:51