SKS VB6
A Visual Basic 6 desktop application for order requests, order receptions, stock adjustments, products, customers, providers and account profiles. Published on GitHub by GAPVelocityAI.
Business rules, traced to source lines.
These 7 rules are a sample of the 464 CoreStory V3 extracted from SKS VB6. Each one links to the exact lines on GitHub at commit 958118e. The statement is CoreStory V3’s wording; the repository has no license file, so the cited code is not reproduced here.
When adding an order detail amount, currentSubTotal is incremented by the line amount, currentTotalTax is recomputed as currentSubTotal multiplied by currentTax (the loaded SalesTaxRate), and currentTotal is recomputed as currentFreightCharge plus currentSubTotal plus currentTotalTax; these are formatted as "#,##0.00".
- #,##0.00 — display format
Also cited: L564
When the Cancel button is clicked, if the order status (case-insensitive) is "CANCELLED", the operation is aborted with the log message "Order was already cancelled, not need to be cancelled again"; if the status is "APPROVED", the operation is aborted with a log message indicating the order was already cancelled by the recorded changer on the recorded change date and cannot be approved. If neither, the user is prompted with a Yes/No confirmation dialog titled "Confirm cancellation" and the operation proceeds only when the user chooses Yes.
- CANCELLED — status value that blocks re-cancellation
- APPROVED — status value that blocks cancellation
- Confirm cancellation — confirmation dialog title
An order whose status is APPROVED cannot be approved again; the approval action logs a status message and exits without updating the order. The status check is case-insensitive.
- APPROVED — status value that blocks approval
When txtValues with Index 1 (the new stock quantity) is changed and the parsed value changedStock is greater than currentStock, changedStock is reset to currentStock and the status message "Cannot pass the original stock, to add more, add a new stock manually" is logged; txtValues(1) is then set to changedStock.
On cmdSave, if deltaStockPrice equals 0 and deltaStock equals 0, the status message "There is no modification of the Stock, the data won't be saved" is logged and the save routine exits without updating.
- 0 — required zero delta threshold for both price and stock
Also cited: L453–L454
When saving an order reception, detail rows are only inserted for grid rows whose quantity cell (fgProducts.TextMatrix(i, 0)) is not equal to the string "0".
- 0 — quantity value identifying rows to skip
Age is calculated as the year difference between the current date and the birth date, minus 1 if the birth month equals the current month and the birth day is greater than the current day, and minus 1 if the birth month is greater than the current month.
- 1 — subtraction applied to age under month/day conditions
What the application does
13 capabilities identified, grouping the 87 distinct features extracted. These are descriptions, not the cited rules above.
Order Approval and Reception
Capability for reviewing, approving, and cancelling order requests and receptions.
- Action Order Request Review: A form that loads an order request, displays its customer, entry, freight, tax, and total details, and lets the user approve or cancel it.
- Form Close: Close the request approval window.
- Form Dismissal: Closes the user management window on user request.
- Order Approval: The user can approve an order request and change its action status, with the action value tracked in the form.
- Order Approval/Cancellation: Approve or cancel a pending order request.
- Order Reception Approval: Users review and approve pending order receptions.
- Order Reception Creation: Users create order receptions for goods received.
- Order Reception Search: A user can search and filter reception orders by various criteria such as order ID, product, provider, contact, status, and date range.
- Order Request Approval: Users review and approve pending order requests.
- Order Request Cancellation: The user can cancel the order request and close the form, with cancellation-related fields tracking changes.
- Reception Screen Lifecycle: The reception approval screen initializes its layout and controls when loaded and closes on user command.
Account and Profile Administration
Capability for managing employee and user account profiles including searching, editing, and deleting records.
- Account Profile Management: A form-based capability to view, edit, and save employee account profile details such as name, address, contact, birth date, employment status, position, and profile picture.
- Employee Record Deletion: A capability to remove or delete an employee account record from the profile form.
- Employee Search: A capability to search for employee records by entering a search string and viewing matching results.
- Field Focus Selection: Selects the content of input fields when they receive focus for convenient editing.
- Form Field Reset: Restores the editable value fields to their default state when needed.
- Form Lifecycle Initialization: Initializes and tears down the user management form when it is opened and closed.
- Input Field Clearing: Resets the user input fields and current edited user state on demand.
- Log Status Display: Clears and displays the current log status to the user.
- Numeric Text Input Validation: Validates and parses numeric values entered into text boxes.
- Status Bar Feedback: Showing status feedback to the user and supporting entry visibility toggling on the form.
Order Request Management
Capability for creating, editing, viewing, and saving order requests including line items and totals.
- Order Date Entry: Capturing required and promised dates for the order request.
- Order Detail View: A user can open detailed information for a selected order.
- Order Edit and Save: Users can create or edit order data and commit the changes to storage.
- Order Information Display: Show detailed information for the selected order, toggling visibility of related fields.
- Order Line Item Editing: Users can add products to an order and edit line-item cells with keyboard navigation and validation.
- Order Request Creation: Users create order requests for goods.
- Order Request Entry Form: A form for creating and editing an order request, loading its initial state and handling lifecycle events.
- Order Totals Display and Recalculation: Recalculating and displaying subtotal, tax, freight and total amounts as charges change.
- Order Totals and Tax Display: Users can enter freight, tax and sales-tax values and see computed subtotal, tax and total amounts.
- Save Order Edits: Persisting the current order request edits when the user saves.
Product and Catalog Management
Capability for browsing, searching, and managing products and related sets in the catalog.
- Add Products to Set: A form that lets the user search for products, add or remove them from a related set, and save the resulting product associations.
- Category Filtering: A category combo/textbox that lets the user choose or type a category to filter products.
- Product Line Management: Adding products to the order and editing product rows including quantity and key code details in the grid.
- Product Management: Users open and manage the product catalog from the main menu.
- Product Navigation: Provides a way for the user to navigate from the stock screen to the product screen.
- Product Search: Allows the user to search for products and populate the product list for selection.
- Product Search and Filtering: Users can locate products by entering a code or name, with the list refreshing as the criteria change.
- Product Search and Selection: A user can search a product catalog and select a product to populate the stock entry fields.
- Product Selection List: Users can check products in a list view to select them for the order.
- Product Toolbar Actions: Toolbar buttons that let the user trigger product operations such as add, edit, or cancel.
Entity Search and Selection
Capability for searching entities and selecting records via dialogs, criteria, and list views.
- Combo Box Loading: Populates a combo/list control with selectable items for user selection.
- Entity Search: A user can search for entities (customers, products, providers) by selecting search criteria and entering a search string.
- List Selection: Allows the user to select all or filter items within a list view.
- Record Identifier Retrieval: Retrieves the identifier of a selected record for downstream use.
- Record Search: Searches records and displays matching results in a list view.
- Search Criteria Selection: A user can choose which search criterion to apply from a dropdown.
- Search Dialog Dismissal: A user can close the search dialog via a close command.
- Search Dialog Display: A search form is presented to the user with labeled input controls for choosing criteria and entering query text.
- Search Execution: A user can trigger the search action via the search button.
Application Shell and Navigation
Capability covering application startup, splash screen, main menu navigation, exit, and about/help information.
- About Dialog Display: Users display the application's about/help information dialog.
- Application Entry Point: Bootstraps and launches the application for the user.
- Application Exit: Users exit the application from the main menu.
- Main Menu Navigation: Users navigate the application's main window menu to reach every functional area of the system.
- Splash Dismissal by Click: The splash screen can be dismissed when the user clicks on the frame.
- Splash Dismissal by Keypress: The splash screen responds to user keyboard input by capturing a key press to close the splash form.
- Splash Screen Display: A splash/startup screen form that presents a picture and dismisses itself over time, providing the application's initial visual greeting to the user.
Customer Management
Capability for searching, viewing, creating, and editing customer records.
- Account Selection by Double-Click: Selects a user account from the list when it is double-clicked.
- Customer Editing: Enables users to create, edit, or cancel changes to customer records with different edit modes.
- Customer Form Display: Displays the customer management form with its dialog frames and field labels.
- Customer Lookup: Open customer information associated with the current order context.
- Customer Management: Users open and manage customer records from the main menu.
- Customer Search: Allows users to search for customers using search criteria.
- Customer Search and Selection: Searching for customers and selecting one to populate the order's customer information.
Stock and Inventory Adjustment
Capability for manually adding and adjusting inventory stock levels.
- Detection Record Saving: Saves a detection record from the form into the underlying store.
- Manual Stock Addition: A user can manually enter stock details and save a stock entry via the add-stock form.
- Manual Stock Adjustment: Users manually add or adjust inventory stock levels.
- Manual Stock Adjustment Save: Enables the user to enter new stock quantity and price values and save the manual adjustment for the current stock.
- Screen Close: Allows the user to close the manual stock adjustment form.
- Stock Form Display: The manual stock form initializes and displays its UI elements including product list and status bar.
- Stock Selection: Lets the user browse stocks and select the specific stock entry to adjust.
Authentication and Access Control
Capability around user login, application entry, security administration, and account access management.
- Application Entry Point: Bootstraps and launches the application for the user.
- Security Access Control: A capability to access and manage security settings for the account profile.
- Security Administration: Users access security administration functionality from the main menu.
- User Account Management: A form-based capability to list, create, edit, and delete user accounts via a managed user list and input fields.
- User List Loading Without With-Block: Loads the user account list using an alternate approach that avoids With blocks.
- User Login: Authenticates a user by collecting username and password credentials in a login form and confirming or cancelling the attempt.
Provider and Supplier Management
Capability for browsing, searching, and editing supplier/provider records.
- Provider Form Display: Displays the providers form with its labeled fields, frames, and toolbar when the form is loaded and torn down on unload.
- Provider Lookup: A user can open a providers list related to the reception approval workflow.
- Provider Management: Users open and manage supplier/provider records from the main menu.
- Provider Record Editing: Allows a user to edit an existing provider record, toggling between edit, new and cancelling modes with save support.
- Provider Toolbar Actions: Provides a toolbar with buttons and icons that a user clicks to invoke provider-related actions.
Order Search and Results
Capability for searching orders and displaying matching results in grids.
- Order Results Display: Display a grid of matching orders and let the user open a selected order by double-clicking it.
- Order Results Grid Display: Matching orders are displayed in a results grid that the user can interact with.
- Order Search: Search for orders by filtering on order ID, product, customer name, contact, company, dates, and status.
Toolbar and Form Actions
Capability providing toolbar-driven and generic form actions for editing, saving, and cancelling operations.
- Product Toolbar Actions: Toolbar buttons that let the user trigger product operations such as add, edit, or cancel.
- Provider Toolbar Actions: Provides a toolbar with buttons and icons that a user clicks to invoke provider-related actions.
- Toolbar Actions: Provides toolbar buttons for triggering customer form operations.
Database Configuration and Query Execution
Capability for configuring database providers and executing SQL queries against the underlying store.
- Database Provider Configuration: Users configure the application to connect to a specific database provider such as SQL Server, Oracle, or OLE DB through configuration sections parsed into settings objects.
- SQL Query Execution: Executes SQL statements against a database connection and returns result sets to the caller.
What was analyzed
- Visual Basic · 23 files · 3,142 lines
- Visual Basic .NET · 1 file · 346 lines
- MSBuild script · 1 file · 334 lines
- Markdown · 1 file · 105 lines
- XML · 3 files · 83 lines
Whole repository: 83 files. cloc 2.06 counts 4,010 lines of code in 29 of them (10,573 lines with comments and blanks).
Where this came from
Extracted by CoreStory V3 (build 4470 with two small engine fixes) using DeepSeek-V4.1-Flash from the public repository at commit 958118e on 2026-11-13. Capability descriptions are from the same run.
- Repository GAPVelocityAI/SKSVB6
- Commit 958118e9ef67f19d2f118de52d6e1cdfdb34da9e
- Line counts cloc 2.06
- Rule citations Each rule shown was checked: its quote was compared with the repository source at the cited lines at this commit.
No code from the upstream repository is reproduced on this page; each rule links to its source lines on GitHub. CoreStory is not affiliated with or endorsed by GAPVelocityAI.
Want this for your own codebase?
Talk to us about mapping the business rules in your repositories.