Form StockCompare
- Unit name: Forms.StockCompare
- Form name: StockCompareForm
- Old form name: unit22 (speedbutton1), form144
Synopsis
Form to compare current stock with stock as it is for customer, based on a CSV file.
Functionalities
The form displays: 1. A combobox to select a supplier. 2. A file selection edit box. 3. A grid which shows the contents of a file, when selected. 4. A grid which shows the differences (result of compare action) 5. A button to execute the Compare action. 6. A button to print the StockCompare action. 7. when the form is closed and there is an active compareID, it is used to clean the compare job;
actions
Compare
Action to compare stock.
1. The action is enabled only when the grid shows data and a supplier was selected.
2. When the action is executed, if there is a compareID, it is used for CleanStockCompare to clean the previous job.
3. the selected file is sent to the StockControl.PrepareStockCompare call.
4. The return value is used to display the data of the StockCompare report.
this takes the CompareID and Supplier parameters.
4. When the data printed, the temp compare table is cleared using CleanStockCompare and the grid is closed.
Tables/Views
- SUPPLIER To select a supplier. (global lookup)
Needed Service Calls
PrepareStockCompare
Prepare stock compare. Supplier is passed on as well as the contents of the selected file. The returned ID is used to display the report and for clean-up.
CleanStockCompare
Prepare stock compare. Supplier is passed on as well as the contents of the selected file.