04/01/2014
This section of the system allows to make Buying Deals (buy products for the storehouse), and also manage already completed deals.
In the left side of the page, there is a list of all available products/catalogs represented in a tree structure (which is manageable in Product Management section).
First thing that should be done for buying any product, is to find that product in the tree and select it (to easily find any catalog/product in the tree, just type its name in the text field above the tree, and click 'loop' image or just press 'Enter'. The same search option is available in all sections where the product tree is available).
After selecting the needed product in the tree, in the right side of the page You will see data related to the selected product (remaining stock in the storehouse, name, unit of measure...). Also other controls will be generated for creating/updating buying deals for the selected product. To perform a buying deal for a selected product, just fill in all mandatory fields in the generated controls and press the 'Buy' button.
E.g. If You need to buy 10 bottles of orange juice, each for 1$, You have to select Orange juice from the product tree, then to enter '10' in the 'Quantity' text-field, '1' in the 'Price' text field, to choose the date of the deal (by default the date is set to current date) in the 'Date' calendar, also You can select the supplier of the Orange juice by typing his/her name in the 'Supplier' suggestion box (after typing any character in the suggestion box, all suppliers whose names start with the typed character, will appear in the suggested list. Just select the supplier You are searching for from that list. If the needed supplier is not shown in the suggested list, You have to create that person in the Person Management section, of course by setting the latter as 'Supplier/Buyer'. After that the person will be available in the suggested list of the suppliers...) and selecting him/her from the suggested suppliers list. When all needed fields are filled in, press the 'Buy' button. Further, if the validation for performing a 'Buying Deal' is passed, the deal will be accomplished, and You can see that 'Remaining stock' property for that product will grow by the quantity You have entered in the Buying Deal.
This section also allows to manage already made buying deals. E.g. if there is a buying deal which contains wrong data, i.e. the quantity or supplier is wrong, or the deal has to be deleted because it was performed for the wrong product. In such cases You will have to edit the wrong Buying Deal. For that purpose, again, the first step is to select the product from the tree. As You already know, controls will be generated in the right side of the page to perform a Buying Deal. Now please pay attention to the 'Search' button which is beside the 'Buy' button and is in disabled mode. Near each button, there is a check-box. The check-box near the 'Buy' button is selected, and the other one near the 'Search' button is not. As You may have understood, these check-boxes define the main action which should be performed for the selected product. So, if the 'Buy' check-box is selected, then the controls generated above are for performing a Buying Deal (as described above...). Now select the 'Search' check-box. You will see that 'Buy' button will become disabled, and 'Search' button will become enabled. Also some of the controls above the buttons will change. You will see that instead of 'Note' text area, 'Store Worker' suggestion box will appear and also the 'Date' calendar will change to 'Start Date' calendar, and below it, a new 'End Date' calendar will be generated. These dates are for selecting a search period for Buying Deals. Thus, the generated controls are for setting search criteria for the Buying Deals. After clicking on the 'Search' button, Buying Deals corresponding to the search criteria will be shown under the Buy/Search buttons.
E.g. If You want to see all buying deals performed from '01.09.2010' to '01.10.2010' for the selected product, You just need to set the 'Start Date' to '01.09.2010' and the 'End Date' to '01.10.2010' and click on the 'Search' button. After searching, the table containing 'Buying Deals' will be generated. Each row of the table corresponds to a single Buying Deal. The last 2 columns of the table are for editing and deleting the Buying Deals. So, if You want to delete a deal, just click on 'Delete' image, and select 'OK' in the generated confirmation box. If You want to edit a deal, You should click on 'Edit'. Further, the search UI above the buttons will change to a Create/Edit Buying Deal UI. After clicking on 'Edit' image, controls will contain the current data of the selected buying deal. Also in Edit mode, the 'Buy, Search' buttons will be replaced by 'Update, Cancel' buttons. For updating a deal, just enter the new data in the generated controls and click on the 'Update' button.
That's all, Good Luck!