from pathlib import Path
from docx import Document
from docx.shared import Inches, Pt, RGBColor, Mm
from docx.enum.section import WD_ORIENT
from docx.oxml import OxmlElement
from docx.oxml.ns import qn

OUT = Path(__file__).resolve().parent
OUT.mkdir(parents=True, exist_ok=True)
sections = []

def module(name, path, purpose, content):
    rows = []
    for line in content.strip().splitlines():
        parts = [x.strip() for x in line.split('|')]
        if len(parts) != 3:
            raise ValueError((name, line))
        rows.append(parts)
    sections.append((name, path, purpose, rows))

module('Getting started', 'Login and shared page controls',
       'These controls are shared across modules. A button can be hidden because of the role, branch, record status or business configuration.', '''
Login | Select the account and enter the password or PIN using the permitted login mode. Use the keyboard where available, then submit. | Never share accounts. Activity is attributed to the signed-in user.
License | Open License on the public page to request activation or enter an issued key. Complete the required business, contact, computer and technician details. | Requesting a key is not approval. Only the authorised owner installation issues keys.
Renewal notice | Read the expiry warning during the final 14 days and request renewal before expiry. Enter the replacement key after it is issued. | Expired installations block normal access. Editing a displayed date is not a valid renewal.
Sidebar toggle | Click the small toggle to expand or collapse module navigation. Select the required module. | Available modules depend on the user's role and the installation's enabled modules.
Search and filters | Enter a name, code or reference; choose available branch, status and date filters; use Search, Filter or Apply. | Clear the filter or choose Reset to return to the wider list.
Show entries and pagination | Choose the number of rows and use the next, previous or numbered page controls. | System Configuration supplies the default of 10 entries. Not every specialist screen is a paginated list.
Action or More | Click the row's Action or More button to see operations for that record. Select the operation required. | Actions vary by permission and state. For example, a finalised payroll cannot be edited as a draft.
Add and Save | Open the add form, complete required fields, review values and click Save. Close or Cancel abandons an unsaved form. | Many add forms are popups. Read validation beside the form and correct it before resubmitting.
Print and export | Apply the required filters before printing or exporting. Use the print view's browser or printer controls. | Export and print may require separate permissions. Check whether totals cover the filtered list or the visible page.
Branch selection | Confirm the named branch before saving. Single-branch entry forms normally select the available branch automatically. | Multiple-branch users must verify the selected location. A branch filter does not grant access to other branches.
Logout and inactivity | Use Logout when leaving. After the configured idle period, sign in again when prompted. | Do not rely on leaving a browser tab open as a valid session. Unsaved work may need to be re-entered.
''')

module('Dashboard', 'Sidebar > Dashboard', 'Review the business overview and open the next operational screen.', '''
Overview figures | Review the sales, purchases, expenses and balance indicators shown for your access scope. | These are summaries; open the underlying report to investigate a figure.
Date and branch controls | Apply the available period and branch selection before comparing results. | Compare like periods and locations when reconciling figures.
Make a Sale | Open the configured selling interface and start a transaction. | Actual selling permissions still apply.
Close Shift | Open the shift closing workflow where enabled and permitted. | Record the actual counted money, not simply the expected figure.
Low stock and outstanding items | Review operational exceptions and follow the relevant inventory or sales links. | A low-stock warning depends on the product's alert quantity and stock tracking.
Module shortcuts | Open an available module from the dashboard or sidebar. | Missing modules should be checked with the administrator rather than using another user's account.
''')

module('Retail POS', 'Sidebar > Retail POS', 'Sell products, receive payments and print receipts without leaving the selling screen.', '''
Search or scan product | Type the product name or barcode and select the match, or scan a configured barcode. | Only eligible active selling products appear. Check branch, stock and Not for selling when an item is missing.
Quantity before adding | Enter the required quantity where the search controls allow it, then add or scan the product. | Review the line after scanning to avoid unintended repeat quantities.
Qty and F1 | Click the quantity input on an item line, use minus or plus, or press F1 to focus the quantity control. | F1 is for cart line quantity, not a payment amount.
Duplicate product behaviour | Add the same product again. It either increases the existing quantity or creates a separate line according to settings. | Separate lines allow different permitted prices or discounts for the same item.
Price and discount | Amend the permitted selling price or discount on the line and review its subtotal. | Role restrictions and tax settings still apply. A price edit on a sale is not a product master price update.
Stock warning | Read the immediate warning when quantity exceeds availability and correct the line. | When overselling is disabled, the server also checks on save. Another terminal may have sold the stock meanwhile.
Add Customer | Open the customer popup, enter details and save; use the selected customer on the current sale. | The form closes without navigating away from the cart.
Cash F2 and M-Pesa F3 | Click the method or use its key. The amount is initially filled from the sale total; enter the actual amount received. | Selecting M-Pesa is not proof of payment. Confirm the transaction before completing the sale.
MPESA | Open the incoming-payment popup, locate the correct amount and customer transaction and claim the available payment. | Never claim another customer's receipt. A payment code must not be applied twice.
Send STK Push | Select M-Pesa, provide the customer's phone and send the order amount to the phone. Wait for confirmed payment. | Requires configured online Daraja access and permitted STK action. A prompt or timeout is not a completed payment.
Save F4 | Complete the sale without requesting a receipt print. | Visible only where the role permits Save.
Save and Print F5 | Complete the sale and open the configured receipt printing workflow. | Used for compulsory-receipt cashiers when Save alone is disabled for their role.
Credit Sale | Select a named customer, enter any payment actually received and use Credit Sale. | The default walk-in customer cannot receive credit. A part payment leaves only the unpaid balance outstanding.
Quotation | Save the cart as a quotation instead of a sale. | No sale revenue or stock deduction occurs until the quote is converted to an invoice.
Suspend and Suspended Bills | Suspend the current cart to serve another customer. Open Suspended Bills and Unsuspend to resume it. | Suspended carts are kept in browser storage. They are not completed sales or a shared, server-wide order register.
Remove and Clear | Remove a wrong cart line or clear the unsaved cart. | Check carefully before discarding work. Saved transactions need their authorised return or void workflow.
Advance Payments and Till Collections | Open the authorised shortcut to record customer credit or a drawer cash handover. | These are separate operations; they do not automatically settle the current cart.
''')

module('Wholesale', 'Sidebar > Wholesale', 'Use the selling workflow with wholesale pricing and its own permissions.', '''
Product search and cart | Search or scan the item, set quantity and review the wholesale unit price and line total. | Maintain the product's wholesale price before selling; confirm any fallback or override shown on screen.
Quantity and discounts | Use the cart quantity input or F1, then set permitted line discounts. | The configured duplicate-line behaviour also applies here.
Cash and M-Pesa | Use F2 for Cash and F3 for M-Pesa, then correct the prefilled amount if necessary. | Payment references and the actual received amount must agree with the customer's payment.
Save and Save and Print | Use F4 or F5 when authorised to complete the transaction. | Wholesale permissions can differ from retail permissions for the same employee.
Credit Sale and Quotation | Select a non-walk-in customer for credit, or save a quotation without a stock movement. | Partial payments leave an outstanding balance. Quotations remain non-sales until conversion.
Add Customer | Create a customer in the popup while keeping the cart open. | Confirm the correct customer before granting credit.
Suspend and Suspended Bills | Put an unfinished cart on hold and resume it from the popup. | Browser storage is not a replacement for a saved server transaction or database backup.
STK and incoming M-Pesa | Send an authorised STK request or claim an eligible incoming payment through MPESA. | Availability depends on the configured integration and role.
''')

module('Restaurant and Bar', 'Sidebar > Restaurant / Bar', 'Take orders, manage tables and bills, route printouts and receive payment.', '''
Categories and product selection | Choose a category or search for an item, set quantity and add it to the order. | The product tile can display a price or image depending on configuration.
Tables and New Customer | Select a table. Where a table already has customers, choose the intended bill or New Customer for a separate party. | A table can have multiple customer orders. Do not add a different party to an existing bill by mistake.
Customer and item notes | Select the customer and enter permitted item instructions such as preparation notes. | Notes depend on Allow Item Note in Restaurant Setup.
Order | Review the table, items, quantities and waiter, then post the order. | The configured mode determines whether a bill, kitchen order or both are sent for printing.
My Bills | Open the bill list to see bills within the user's permitted own or all scope. | Open Bills and Uncleared Bills represent different operational states.
Open Bills | Select an order that is still open for normal order management. | Existing Edit Order and Print Bill and Close Table behaviour remains available where allowed.
Edit Order | Add or adjust permitted items on an open order, then save or print as required. | Previously posted lines may have restrictions; use authorised correction workflows for saved stock movements.
Print Bill and Close Table | Print the customer bill and release the table through the existing combined action. | Releasing a table is not a payment. An uncleared balance remains payable.
Close Table | Release the table without another bill print when printing already occurred. | The sale stays uncleared until its balance is settled.
Uncleared Bills | View outstanding printed bills, search the customer or reference and open the intended bill. | The compact list supports many outstanding transactions; apply filters to find a waiter or bill.
Add Items | Open an eligible uncleared bill, append new items and post them using the permitted workflow. | Check that you are adding to the correct customer's bill.
Reprint Bill | Open an eligible bill action and request another customer bill. | A separate role permission controls reprints. Reprinting does not create another sale.
Merge Selected | Select the eligible bills and merge them using the displayed confirmation. | Review customer, table and payment state first. Do not treat a merge as payment.
Split Bill | Select the items and quantities to move to a separate bill, review the split and create it. | Totals are redistributed between bills. A split is not a second sale of the same stock.
Post to Room | Choose the occupied guest room or stay and attach the restaurant bill. | The pending restaurant charge becomes visible to reception for settlement with the room account.
Payments and STK | Enter actual payments, use Save or Save and Print where allowed, and confirm M-Pesa payment before settlement. | A fully paid bill clears; a partial payment leaves the remaining balance.
Keyboard and Numbers | Open the on-screen input tools when enabled for a touch terminal. | These are optional aids, not a requirement to use a mouse for every input.
Auto logout after printing | When enabled, complete the order-print workflow and allow the system to sign out the waiter. | Requires the corresponding setup option. Re-enter credentials for the next session.
''')

module('Accommodation', 'Sidebar > Accommodation', 'Manage the room board, guests, reservations, stays and guest accounts.', '''
Room Board | Filter the hotel or room status and select the required room. Review whether it is vacant, occupied or unavailable. | Verify availability before offering a room.
Check In | Open the room's popup. Start with the guest ID, select an existing guest if found, and complete identity, nationality and phone details. | Required fields must be corrected before saving. Country selection guides the phone prefix.
Additional guests | Add optional accompanying guest details and enter the actual adult and child numbers. | Occupancy limits still apply even when not every companion supplies full details.
Rate Plan and Meal Plan | Choose the room's applicable rate plan and meal arrangement before saving. Review the nightly rate and included meals. | A rate-plan setup alone does not create meals in reports; an actual stay or reservation must use it.
Additional adult charge | Enter the guest count and apply the configured extra-adult charge where relevant. Review the total before check-in. | This is an additional guest charge per night, not an extra night of stay.
Save Check In | Confirm the room, stay dates, guest counts, rate and payments, then save. | The room becomes occupied and the stay receives its own account.
Reservations and New Reservation | Record future guest dates, room or room type, rate plan and contact information. | A reservation is not the same as an occupied room. Use Check In when the guest arrives.
Reservation Action | Check in, receive payment, print the confirmation or cancel an eligible reservation. | Available actions depend on status and permissions.
Online Reservations | Review website-sourced reservations, filter by dates, hotel, status or source and process the guest normally. | Stored source labels are not evidence of an active Booking.com connection.
Folio and extra charges | Open the stay account to review room charges, restaurant bills and additional charges. | Review each attached charge before settlement.
Receive Payment | Open the payment popup, choose the method, enter the amount and reference, then save. | Payment may be partial. An advance is separate customer credit until applied.
Checkout | Review the room account and any pending restaurant bills. Choose the available settlement or combined-bill option and complete checkout. | Outstanding amounts must be handled explicitly; a room's release must not silently erase debt.
Checkout with balance | Use the permitted leave-balance option for an identified customer when the business allows credit checkout. | Requires a separate permission and a non-walk-in customer. Otherwise settle the combined balance before checkout.
Combined room and restaurant receipt | Select the pending attached restaurant charges for settlement with the room account and print the combined document. | Full payment clears the covered balances. Confirm amounts and do not collect the same bill twice.
Print | Print the booking confirmation or stay receipt from its available action. | Use Receipt and Document Setup to control the applicable print layout.
Customers | Search guest records and use hotel, branch or other available filters. Add or edit guest details using the permitted controls. | Avoid creating duplicate guests where the ID already exists.
Advance Payments | Receive money for a future stay, print its acknowledgement and later apply it to the guest account. | Money received before providing the service is held as an advance, not a second sale on application.
''')

module('Accommodation setup and reports', 'Accommodation > Setup links and Room Reports', 'Configure rooms and rates, forecast meal requirements and account for housekeeping supplies.', '''
Hotel Details | Add or edit hotel identity, contact and location details. | Separate hotels can be organised within accessible branches.
Floors | Add floors and assign rooms to the appropriate floor. Use Action to edit or delete where permitted. | Keep names recognisable to reception and housekeeping.
Room Types | Set room type, normal occupancy and maximum adults, children and total occupancy. | Adult capacity cannot exceed total capacity. Correct validation messages in the form.
Meal Plans | Create or edit Bed Only, Bed and Breakfast, Half Board or Full Board, and tick included breakfast, lunch and dinner. | The included meal flags determine meal requirements, not the name alone.
Rate Plans | Use Add Rate Plan, choose hotel or room type, meal plan, nightly rate, included adults and additional-adult amount. | Add forms are separate from the list; use Action to update an existing plan.
Child and seasonal rules | Open the rate plan's relevant actions to add child age bands and seasonal pricing rules. | Test representative adult, child and date combinations before live use.
Rooms Setup | Create or edit a room number or name, hotel, floor, type and availability status. | Use maintenance or unavailable status when the room must not be offered.
Extra Charges | Maintain named optional room charges and their configured amounts. | A charge type is setup; adding a charge to a stay creates the actual guest charge.
General and Room Reports | Open Room Reports, select dates and hotel or other filters, then generate and print the required stay or room report. | Confirm whether the selected report is based on stays, payments or room occupancy.
Search Debtors Report | Filter outstanding guest accounts and review the unpaid amounts. | Reconcile with the stay account before requesting payment.
Meal Requirements | Choose From Date, To Date, hotel, meal, meal plan and detailed guest list or summary, then View Report. | Breakfast, lunch and dinner counts derive from dated stays and their meal plans.
Apply Dates and Print | Amend dates on the meal report and apply them, then print for the kitchen. | Check service dates and guest counts. Unused rate plans do not generate meal quantities.
Housekeeping Stock | Review items received into the responsible employee's custody. Confirm Receipt where required. | Main inventory was deducted at the manager's issue; receiving must not deduct it again.
Issue To Room | Choose an occupied or empty room, quantity and usage details, then record the issue. | Reduces the custody balance and leaves a room-by-room utilisation record.
Return To Main Store and Record Loss | Record genuine returns or losses against the remaining custody quantity. | Do not use room issues to hide loss. Returns and losses have different stock and accounting effects.
Stock Utilization Report | Review room issues, returns, losses, balance after movement, receiver and recorder; print the report. | Use this before approving the next bulk issue to housekeeping.
''')

module('Sales', 'Sidebar > Sales', 'Review sales, settle pending bills and perform authorised corrections.', '''
Search and branch | Search invoice, receipt, customer or reference and choose the relevant accessible branch. | Own or all sales visibility is controlled by role.
Date and shift periods | Select current shift, the appropriate previous shift or another available date range. Use custom dates and times when required. | An overnight shift crosses calendar dates. A period filter is separate from enforcing an open cashier shift.
Payment summaries | Review Cash, Credit, M-Pesa and Pending Balance figures for the selected scope. | A pending balance is money still owed, not an additional payment method receipt.
View or Details | Open the sale to inspect items, taxes, recorded payments and remaining balance. | Compare actual payments with the bill total before making a correction.
Receipt and A4 Invoice | Print the configured thermal receipt or formal A4 invoice. | Reprint uses the current permitted document display settings.
Delivery Note | Print the goods delivery document with the configured price visibility. | A delivery note is not another sale or proof of payment.
Clear Bill or Receive Payment | Select an unpaid or partly paid sale, enter the amount received and its payment method or reference, and save. | Only the amount paid reduces the outstanding customer balance.
Bulk Clear | Select eligible pending bills and use the permitted bulk settlement workflow. | Confirm totals and methods carefully; this records actual money received.
Add Items | Add items to a sale only where the action is available and authorised. | Saved adjustments can affect stock, tax and accounting; use the intended correction action.
Return and Credit Note | Record actual returned items and quantities through the available return workflow and retain the credit note. | A full return should remove the net sale liability or receivable; inspect the resulting status and balances.
Void or Delete | Use only the authorised operation and supply the required reason. Review the confirmation. | Financial records use correction or reversal rules; do not delete rows directly in the database.
M-Pesa Transactions | Open the payment register, search the transaction code and inspect its amount, customer, claim and linked sale. | The default working period follows the configured business or shift period where supported.
End of Day or Shift Report | Choose branch and period, generate the report and compare recorded collections with actual cash and M-Pesa. | Till collections, refunds and opening float must be considered in drawer reconciliation.
''')

module('Website Orders', 'Sidebar > Website Orders', 'Review incoming web shop or food orders independently of accommodation bookings.', '''
Order list and filters | Search incoming orders and filter branch, dates, status or other available fields. Open the order details. | The list shows orders received through the configured website integration.
View order | Review customer contact, delivery or collection information, item quantities and totals. | Confirm stock, fulfilment and actual payment rather than assuming an online order is paid.
Confirm | Mark the order as confirmed after accepting it operationally. | Confirmation alone does not post revenue, deduct stock or settle payment.
Send to Restaurant | Use the action for an eligible food order to create its restaurant bill. | Requires website processing and restaurant order permissions. Continue normal kitchen and payment processing.
Retail fulfilment | Process the accepted order through the normal retail sale workflow. | Automatic conversion into a retail cart is not supplied by this register. Avoid entering the sale twice.
Decline | Decline an order that cannot be fulfilled, using the available action. | Check any payment arrangements separately; declining is not an automatic refund.
Website Setup | Ask an authorised administrator to configure the website API and product visibility. | A connected website is required; enabling the module does not build or host the website.
''')

module('Sales Orders', 'Sidebar > Sales Orders', 'Record customer orders before the actual sale or delivery.', '''
Add Sales Order | Open the add workflow, enter customer, branch, order dates, delivery details and notes, then proceed to items. | This is a planning document, not a receipt or a paid sale.
Add items | Search a selling product, enter quantity and price and add it to the order. Review the total. | Products marked Not for selling are excluded from sales order entry.
Save Draft and Edit | Save unfinished work as draft; reopen the available Edit action to correct it. | No stock is reserved or deducted, and no debt or journal is created.
Confirm | Confirm the order when the customer and fulfilment details are agreed. | Confirmation is not invoice conversion or payment collection.
Print | Print the sales order for the customer or fulfilment team. | The printed order does not replace the final sales invoice.
Close and Cancel | Close a completed planning order or cancel an abandoned one using the permitted action. | Cancellation retains history rather than hard-deleting it.
Record actual sale | Use Retail POS, Wholesale or the relevant selling workflow when goods are supplied. | Automatic sales-order-to-invoice conversion is not part of the present planning workflow.
''')

module('Quotations', 'Sidebar > Quotations or POS > Quotation', 'Prepare offers without recording a sale or reducing stock.', '''
Create quotation | Build a cart in the permitted POS and choose Quotation. Select the intended customer and review prices. | A quote records an offer only; stock and sales remain unchanged.
Search quotations | Search the list and select the accessible branch and available date or status filters. | Check the customer and quotation reference before opening it.
View and Print | Open the quotation and print the configured thermal or A4 document. | A quotation is not a tax invoice or payment acknowledgement.
Convert to Invoice | Open an eligible quotation's action and convert it when the customer accepts and the sale should be posted. | Stock and accounting are affected by conversion. The invoice uses the conversion date, not the original quote date.
Delete | Remove a quotation only if the role and quotation state allow it. | Do not delete an invoice to undo conversion; use sales correction controls.
''')

module('Customers and advances', 'Sidebar > Customers', 'Maintain customer details, review debts and manage money received in advance.', '''
Search Customer and branch | Type the customer name, contact or available identifier and filter by branch. | Select the existing customer where possible to keep statements and balances together.
Add Customer | Open the popup and complete the customer's contact, identity and tax details as applicable, then save. | The default walk-in record is for anonymous cash sales, not credit sales.
Action and Edit | Open the row's Action menu and update the permitted customer details. | Financial history stays linked to the customer record.
Pending Balance | Review unpaid non-voided sales for the customer in the accessible branch scope. | Advances are shown separately; they do not silently reduce this number until applied.
Available Advance | Review advance receipts less amounts already applied or refunded. | This is customer credit held by the business, not unpaid sales debt.
Receive Payment and View Invoices | Open outstanding invoices, select the correct bill and record the actual payment. | A customer payment must be linked to the intended bill to clear its balance.
Customer Statement | Select the customer statement and available dates or branch, then review charges, payments and balance. | Print for reconciliation and check the period and opening position.
Advance Payments | Open the advance register and search by customer, short reference or other available filters. | Date and reference are separate fields in the list.
Receive Advance | Open the popup, search or select a customer, enter purpose, amount, payment method, date and reference, then save. | Use Add Customer inside the form if necessary. This records credit for future goods or services.
Receipt or History | Print the advance acknowledgement or inspect allocations and refunds. | Keep the reference for later application or refund.
Apply advance | Select available customer advance in the supported sale or accommodation payment workflow. | Application reduces the advance liability and the bill balance; it is not another cash receipt.
Refund | Refund an unused available advance through the permitted action and record the actual method and reason. | Only available credit can be refunded. Keep the resulting history and accounting movement.
Delete Customer | Use the permitted Delete action only for records that the system allows to be removed. | Preserve customers with financial history; do not bypass restrictions in the database.
''')

module('Suppliers', 'Sidebar > Suppliers', 'Maintain supplier details and reconcile purchases, opening debt and payments.', '''
Search and branch | Find the supplier by name or contact and choose the relevant branch. | Use a consistent supplier record for purchases and later payments.
Add Supplier | Open the popup, enter identity and contact information, choose the branch and record opening balance details where applicable. | Opening balance represents pre-existing debt, not a new stock purchase.
Edit Supplier | Update contact or other permitted setup details. | Do not rewrite historical purchase amounts through a contact edit.
Outstanding balance | Review opening debt and unpaid or partly paid purchases, less recorded settlements. | Reconcile this position against the supplier's statement.
Opening balance payment | Use the available payment action to settle pre-existing supplier debt. | Paying opening debt is different from paying a particular new purchase.
Purchase payments | Open the intended purchase and record its permitted payment there. | A payment must clear the correct liability and use the actual source account.
Delete | Remove only an unused record where authorised and allowed. | Supplier history and balances must be preserved for accounting.
''')

module('Purchases', 'Sidebar > Purchases', 'Receive purchased goods, record supplier liability and manage authorised payments and returns.', '''
Add Purchase | Select the receiving branch, required supplier, purchase number and purchase date. Add the supplier invoice or note as applicable. | Supplier is compulsory. Confirm the real named branch rather than leaving stock unassigned.
Search Product | Search by name or code or scan the barcode and select the match. | Purchase entry excludes combo products; purchase their underlying stock components instead.
Qty and VAT Type | Enter quantity immediately after the product, confirm the product's VAT classification at the right and click Add Product. | The tax selection follows the product; exempt and zero-rated items must not receive a default 16 percent charge.
Add New Product | Open the popup from purchase entry, complete the product details and save, then add it to the current purchase. | The unfinished purchase remains on screen. Categories are optional; required price and stock settings still matter.
B Price before VAT | Review the net unit buying price derived from the product price and tax method. | Inclusive prices are split into net and VAT, not taxed again on top.
VAT amount and price after VAT | Review item VAT, gross unit price and quantity-based total. | Example: 10 inclusive units at 10 each total 100. The displayed net rounding must not reduce the payable total to 99.99.
Margin and Selling Price | Enter the permitted margin or amend the selling price and review its effect before saving. | Check whether the proposed selling price is tax inclusive and suitable for the product.
Payment Status | Select Unpaid, Partial or Paid only from options authorised for the role. | A receiving-only role should have Unpaid only. Paid or Partial also requires purchase payment permission.
Payment Method and Paid Amount | Enter these only when permitted and when money actually changed hands. | Partial leaves the remaining supplier liability; Paid must match the required settled amount.
Save Purchase | Review items, branch, supplier, VAT and payment before saving. | Receiving posts stock and the applicable financial entries; it is not the same as saving an LPO.
View Details and GRN | Open the purchase and print the goods received note, including the applicable VAT summaries. | GRN documents receipt of goods; keep the supplier's original invoice too.
Edit and Add Items | Use the available authorised action within the transaction update window. | Saved changes can affect stock, VAT, supplier liability and journals.
Pay | Open the purchase payment action, enter the actual amount and method and save. | A later settlement is not a second goods purchase. Payment permissions apply independently of receiving permissions.
Return and Debit Note | Record returned quantities and the reason through the purchase return workflow and print its debit note. | Stock, supplier balance and applicable tax are corrected by the return, not by deleting the original receipt.
Delete | Use only the authorised correction action and review the reason or confirmation. | Preserve the accounting trail; never erase purchase rows directly to clear a supplier balance.
''')

module('Purchase requisitions and LPOs', 'Purchases > Purchase Requisitions or Purchase Orders', 'Prepare requested and ordered goods with a controlled approval trail.', '''
Purchase Requisitions | Open the list to search requisitions and review Draft, Pending, Approved or Rejected status. | Requisitions do not move stock, create supplier debt or post tax.
Add Purchase Requisition | Enter header details, branch and requester, click Next, then search and add the requested items and quantities. | Save Draft while details are incomplete.
Submit | Submit the requisition for the configured approval levels. | It remains Pending until all required approvals are complete.
Approval Setup | Configure role-based sequential approval levels and branch applicability from the procurement setup. | Only authorised setup users should change levels; preparers cannot approve their own requests.
Approve or Reject | Review the quantities and need, then approve at your level or reject with a reason. | A later level cannot bypass an earlier required approval.
Edit pending requisition | An approver with both Update and Approve may revise the pending request. Save and resubmit as required. | Changes restart approval and retain revision history; an approved request is locked.
Print and Show Prices | Print the requisition. Leave prices hidden for a quantity-only supplier copy or enable Show Prices for a priced copy. | The toggle changes the printout, not stored values or approvals.
Create LPO | Create the purchase order from an approved requisition using the available action. | A requisition can create its LPO once. Follow the item and quantity controls shown.
Add Purchase Order | Enter supplier, branch, LPO or external reference, dates, preparer, payment terms, freight, delivery and shipping details; click Next and add items. | This is an order to a supplier, not receipt of stock or payment.
Save Draft and Edit LPO | Save an unfinished LPO and correct it through its available Edit action. | Check expiry or expected dates and supplier details before issue.
Submit or Issue LPO | Send it through configured approval levels; where no LPO approval levels exist, issuing completes directly. | Print the issued order for the supplier. Sending an SMS is not a completed provider integration here.
Cancel and history | Cancel an abandoned document using the permitted action and retain its history. | There is no routine hard-delete workflow for these planning documents.
Receive actual goods | When goods arrive, create the actual purchase using the supplier document and quantities delivered. | This module does not automatically receive an LPO into stock. Avoid receiving the same delivery twice.
''')

module('Expenses', 'Sidebar > Expenses', 'Record business expenditure against the appropriate category, branch and payment method.', '''
Add Expense | Enter the date, branch, expense category, description, amount and payment details, then save. | Record only a genuine business expense; moving cash to a bank is a transfer, not an expense.
Expense Categories | Add or edit meaningful categories such as rent, utilities or transport and choose the relevant setup details. | Categories organise expense reporting and associated accounting classification.
Search and filters | Filter date period, branch, category, user or payment method as available. | Check the scope before comparing expense totals with drawer cash.
View or Print | Inspect the recorded expense and use the available supporting document or print action. | Retain the original supplier receipt or supporting evidence separately.
Delete or correction | Use the authorised action and supply the required confirmation or reason. | Cash-paid expenses can affect shift cash and accounting; do not remove them outside the application.
''')

module('Products', 'Sidebar > Products', 'Maintain the product master used by selling, purchasing, inventory and the website.', '''
Search and active status | Search product name or barcode and filter Active, Inactive or all products along with category and branch. | Inactive or non-selling products may remain in records while being unavailable at POS.
Add Product | Open the form and enter product name and unique code or barcode. Choose Single or Combo product type. | A code is an identifier; gaps in automatic codes do not prove missing stock.
Category and Sub Category | Select the optional category and subcategory for reporting and restaurant routing. | Leaving a category empty is allowed, but printer category routing then needs a suitable default.
Inventory Type and Track Stock | Select the appropriate item type and whether quantity is tracked. | Stock warnings and stock deductions depend on a stock-tracked item or its components.
Branch or Location | Confirm the named default branch or select the intended accessible location. | A product's branch must agree with the place receiving and selling its stock.
Unit of Measurement | Choose Pcs, Kg, Litre or another configured unit. | System Configuration can supply the default UOM; use quantities in the same unit throughout.
Opening Stock and Alert Quantity | Enter the verified initial quantity and the level at which replenishment is needed. | Opening stock is not automatically a supplier tax invoice or unrestricted input VAT evidence.
Buying and Retail Price | Enter the acquisition cost and normal selling price with the correct VAT method. | Retail price is also the default website price unless website pricing is configured otherwise.
Wholesale and Website Price | Enter separate prices where the business and your role allow these fields. | Visibility and editing are permission controlled. Website price is not a new stock item.
Tax Rate and VAT Type | Select the applicable named tax rule, rate and price-inclusive or exclusive method. | Vatable, Zero Rated, Exempt and Non Taxable are distinct classifications even when some show zero tax.
Accounting accounts | Choose the applicable income, expense and asset accounts where required. | Ask the accountant to confirm mappings; a wrong account distorts financial reports.
Active and Not for selling | Keep Active on for use; select Not for selling for raw materials or internal-use products. | Not for selling items can still be purchased and consumed as components but do not appear as normal POS products.
Show on Website | Enable eligible items for the connected website and provide the website description or price where permitted. | Website Setup and a functioning website connection are also required.
HS Code and eTIMS fields | When eTIMS is enabled, enter HS code and the required KRA classification, origin and package or quantity codes. | Disabling eTIMS hides its extra entry fields; it does not disable ordinary VAT accounting.
Save and Edit | Save a new product or open Action and Edit to correct its permitted details. | Master changes apply to future transactions; do not rewrite historical sales by editing a product.
Add Product Image | Open the image action, choose the appropriate image and save. | Used by image-enabled selling tiles and the website where configured.
Upload Products and Template | Download the current template, fill its exact headers and required fields, then upload the supported file and review validation or import results. | Back up first. Verify VAT, prices, barcodes, branch and active status; do not ignore rejected or ambiguous rows.
Stock action | Open an eligible product's stock details or adjustment workflow and record the reason for a genuine correction. | Prefer a documented stock count, damage, transfer or issue over unexplained manual adjustments.
''')

module('Combo and portion products', 'Products > Add or Edit > Combo', 'Configure bundles, ingredients and opened-pack portions using underlying stock.', '''
Direct component combo | Choose the direct component mode, add each single-stock component and the quantity consumed per unit sold. | Example: selling a 3-for-10 candle bundle deducts 3 candles, not one separately purchased combo.
Ingredient recipe | Add the measured quantities of fish, oil or other ingredients used by the finished product. | The component units and recipe quantities must be correct. This is component consumption, not a full manufacturing or BOM production system.
Calculated buying cost | Review the cost calculated from component buying costs, then set the combo selling price. | Cost changes in components can change the calculated combo cost.
Break pack mode | Select the single parent stock item, parent quantity opened and number of portions yielded. | Example: 1 bottle of 750 ml yields 25 configured tots. The installer must define the actual yield.
Opened portion balance | Keep the unopened parent stock and opened portion stock distinct. | Ten unopened bottles do not mean 250 physically opened tots in inventory. The POS can calculate sellable potential separately.
Sell a portion | Post the portion order. If opened stock is insufficient, the system opens enough whole parent packs and deducts the sold portions. | With 2 bottles and zero opened tots, selling 1 of a 25-tot yield leaves 1 bottle and 24 opened tots.
Return a portion | Use the authorised sales return workflow for the portion sold. | The stock service restores portions and recombines complete yields into parent stock. Confirm that the real returned goods are usable.
Purchase underlying stock | Add bottles, bulk sugar or other single-stock components to purchases, not the combo. | Combo items are excluded from purchasing because their stock depends on their components.
Test setup | Make a controlled example of sale, repeat sale and return before live use, then inspect parent and portion balances. | Wrong yields or component units cause incorrect stock and cost even if the selling price is correct.
''')

module('Inventory', 'Sidebar > Inventory', 'Review quantity, value and stock movements and open stock-control workflows.', '''
Stock value landing page | Review barcode, product, unit price, available stock and buying and selling values. | Potential profit is a stock-value comparison, not realised accounting profit.
Filters | Search name or code and filter branch, category, active status, product type and other available stock options. | Clear restrictive filters when a product appears to be missing.
Quantity movement columns | Review units sold, transferred and adjusted for the scope shown. | Use Stock Movement to inspect the underlying dated transactions.
Totals | Review the totals below the report after applying filters. | Confirm the units and branch scope before comparing values with the accounts.
Low Stock Report | Open the red Low Stock Report button, filter the results and review shortages against alert quantities. | Items need meaningful alert quantities to give useful replenishment information.
Stock Taking | Open the count list and start a new stock take for the branch and products. | Count physical stock separately from the expected system quantity.
Actual Qty and Update | Enter each counted quantity and save the count. Review the difference. | Saving a count and applying a stock adjustment are separate steps where the page provides both.
Adjust and Close | Apply authorised stock adjustments after investigation, then close the stock take. | Retain the staff, dates and differences as the count trail.
Opening and Closing Stock | Select the branch and dates to view the opening and closing position and relevant movements. | Ensure the business period matches the sales period being reconciled.
Stock Transfers and Damaged Products | Open the dedicated workflow for an interbranch transfer or stock loss. | These should not be disguised as sales or ordinary purchases.
Internal Stock Issues | Record products issued for business use or employee custody using the dedicated issue form. | Stock leaves the main store immediately; later custody usage must not deduct it a second time.
''')

module('Internal stock issues', 'Inventory > Internal Stock Issues', 'Control consumption and bulk custody issues such as employee tea or hotel supplies.', '''
New issue | Choose branch, issue purpose, receiver and the products and quantities being issued, then save. | Main stock is deducted when issued, not when the receiver later reports room usage.
Direct consumption | Record products used internally, such as milk and bread for staff tea, against the appropriate purpose. | This is business consumption, not sales revenue.
Employee custody issue | Issue bulk housekeeping items to the responsible employee for later allocation. | The receiver's custody balance is tracked separately from main-store stock.
Confirm receipt | The receiver confirms the handed-over items through the supported custody workflow. | Receipt acknowledgement is not a second stock deduction.
Issue detail and history | Review issue date, products, receiver, quantities and subsequent utilisation. | The manager can compare the remaining balance before issuing another batch.
Room usage and returns | Use Accommodation > Housekeeping Stock to issue to rooms, record losses or return unused items. | Occupied and empty rooms can receive supplies. Use the correct type of movement.
''')

module('Categories', 'Sidebar > Categories', 'Organise products and maintain the category names used in reporting and printing.', '''
Add Category | Enter the category name and intended branch or setup fields and save. | Verify the existing named branch is selected for the intended location.
Edit and status | Open Action to rename or update the category and its active state where available. | Renaming a category does not change product quantities.
Sub Categories | Create a subcategory under its parent category and assign products to it. | This provides a second grouping level, not separate stock.
Delete | Delete an unused category only where allowed and authorised. | Do not erase a used category to hide historical transactions; reassign or deactivate as appropriate.
Restaurant routing | Use the category in Restaurant Setup to send its order items to the intended station and printer. | A category's name alone does not configure a Windows printer.
''')

module('Damaged Products', 'Sidebar > Damaged Products', 'Record stock losses with an accountable person and reason.', '''
Add Damaged Product | Open the expandable entry area and choose the branch, damage date, responsible person, reason and note. | Close the entry area when finished to keep the damage register visible.
Search or scan product | Type product name or barcode or scan a code; select the item and enter the damaged quantity. | Avoid selecting from an unsearchable full product list.
Add multiple products | Add each damaged item as a line and review all quantities before saving. | A single record can contain several products; each must belong to the intended stock scope.
Save | Record the confirmed damage. | Stock is deducted and the loss is recorded through the applicable accounting workflow.
Register and filters | Search and filter existing damage records by the available dates, branch or product criteria. | Retain the reason and responsible person for review.
Correction actions | Use only the record's available authorised correction or reversal control. | Do not make a new purchase to hide an incorrect damage record.
''')

module('Stock Transfers', 'Sidebar > Stock Transfers', 'Move actual stock from one branch to another without treating it as a sale.', '''
Transfer register | Review existing transfers and filter the available branch, date or status criteria. | The entry form is separate so the register remains easy to scan.
Add Stock Transfer | Open the transfer page, choose source and destination branches and enter date and notes. | Source and destination must differ and be accessible to the user.
Search product | Type name or code or scan the product barcode and choose a source-stock match. | Review source availability before adding quantity.
Add Product and multiple lines | Add the quantity, clear or reuse search for the next product and build the full transfer list. | All added items remain in the transfer table for review.
Remove | Remove an incorrect unsaved line before saving. | This does not undo an already posted transfer.
Save Transfer | Confirm products, quantities and both branches and save. | Moves stock between locations. It is not customer income or supplier expense.
View and available actions | Open the transfer details and use only the permitted print or correction action shown. | Preserve a traceable transfer history; do not adjust both branches manually as a substitute.
''')

module('Reports', 'Sidebar > Reports', 'Generate operational reports using consistent date, time and branch scopes.', '''
Report directory | Choose the sales, purchasing, stock or financial report required. | Some specialist reports are accessed inside their own module.
From and To with time | Select date and time boundaries or choose a supplied preset. | Overnight business days can span two calendar dates; midnight-to-midnight may give different totals.
Shift presets | Use the configured current or previous shift options, including yesterday's shift where offered. | Reporting periods do not force a waiter to open a cashier shift unless enforcement is separately enabled.
Calendar presets | Choose This Month, Last Month, Last 7 Days, Last 30 Days, This Year, Last Year or Custom where offered. | Check the dates displayed before generating the result.
Sales Summary and Sales Detailed | Review totals or individual sales for the selected branch, staff and period. | Use the detailed version to investigate the entries behind a summary.
Sales by Product | Choose product or category filters and Grouped for combined quantities or Ungrouped for transaction-level detail. | Grouped is useful for kitchen reconciliation, such as 2 plus 4 plus 6 mandazi shown as 12.
Sales by Category | Compare sales grouped by product category. | Uncategorized products need attention if category reconciliation matters.
Sales by Person | Choose the salesperson and summary or product display option. | The product view shows what the salesperson sold, not just their total.
Sales by Customer and Payment | Compare customer sales or receipts grouped by payment method. | Credit due and money actually received are different measures.
End of Day or Shift | Choose branch and period to reconcile receipts, payments and balances. | Match the chosen shift boundaries and cash-handovers when checking drawer cash.
Uncleared Bills | Filter unpaid and partly paid sales and investigate the remaining amounts. | Closing a restaurant table does not remove its uncleared bill.
Purchase Summary and Detailed | Review purchase totals or individual purchase records for the period. | Do not confuse ordered goods with received purchases.
Purchases by Product or Category | Group received goods by item or category for reconciliation and analysis. | Confirm VAT-inclusive or net amounts before comparing with supplier documents.
Purchases by Supplier or User | Review which supplier delivered or which user recorded the purchases. | Receiving and paying can be carried out by different authorised employees.
Purchases by Payment | Review purchase settlement by method. | An unpaid purchase still creates a supplier balance even without a payment entry.
Stock Movement | Follow opening position, receipts, sales and other stock changes for a product and period. | Use this to explain why the current quantity changed.
Fast Moving and Slow Moving | Compare products by sales movement within the selected period. | These help with ordering; they are not forecasts of future demand.
Dead Stock | Review items with little or no relevant sales movement under the report's filters. | Confirm the period, availability and active status before discontinuing an item.
Print and Export CSV | Generate the report, inspect totals, then use the authorised print or export control. | Review filtered totals and the export scope rather than adding only the visible page manually.
''')

module('Till collections and advance reports', 'Reports > Till Collections or Advance Payments', 'Review cash handovers and customer credit without confusing them with sales.', '''
Till Collections Report filters | Select collection date and time, branch, cashier, status or reference and generate the report. | The date is the collection time, not the original sale date.
Posted and reversed totals | Compare the displayed totals and open the handover reference when needed. | A reversal has history. For dated account inflows and outflows, use Accounting > Cash Flow.
Advance Payments Report filters | Select receipt dates, branch, customer, recipient, payment method or advance reference. | The period selects the original advance receipts.
Received, Applied and Refunded | Review original money received and its current application or refund totals. | Applied or refunded to date can include movements after the receipt period; these are not period-only movement totals.
Available Now | Review the remaining credit from the selected advances. | This differs from a historical balance at the report's end date.
Print and CSV | Print or export the filtered results with the appropriate permissions. | CSV includes filtered records and totals; currency formatting may differ from the on-screen display.
''')

module('Accounting', 'Sidebar > Accounting', 'Review posted financial entries and operate separate cash movement workflows.', '''
Chart of Accounts | Open Accounts to review income, expense, asset, liability and equity accounts. Add or edit authorised setup details. | Account mappings determine the financial report classification.
Payment Methods | Add or edit Cash, M-Pesa, bank or other methods and their mapped accounts and active status. | Deactivate unused methods rather than renaming a method to disguise old payments.
General Ledger | Filter period, branch, account or reference as available and inspect journal lines and debit and credit totals. | Use the source reference to investigate the operational transaction behind an entry.
Trial Balance | Generate for the intended scope and review every account with the debit and credit totals at the bottom. | Equal totals are necessary but do not prove every account classification is correct.
Profit and Loss | Select the reporting period and branch and review income, cost and expense results. | Potential stock margin is not the same as this realised profit measure.
Balance Sheet | Select the relevant date or scope and review assets, liabilities and equity. | Confirm opening balances and account mappings before relying on the result.
VAT Report | Review total sales, output VAT, input VAT and the net position for the selected period. | Input VAT requires appropriate purchase or opening evidence. A credit position is not proof of an automatic cash refund from KRA.
Cash Flow | Open the independent movement page and select an account, branch and period to follow money in, money out and balance. | Useful for a single Cash, M-Pesa or bank account; it is not the stock movement report.
Bank Deposits | Open the deposit page, choose the actual source cash or M-Pesa account and the destination bank, amount, date and reference. | Records a transfer between accounts, not another sale or an expense.
Cash Transfers | Open the independent transfer popup and choose source and destination, amount and supporting note. | Example: M-Pesa to Petty Cash. Do not duplicate a till collection already recorded.
Reverse movement | Use the authorised reversal action with a reason for an incorrect posted movement. | The original and reversing entries remain traceable. Return any physical cash as required.
Transaction update days | Ask an authorised settings user to set the permitted update age. The default is 30 days. | This restricts changes to old transactions; a customer can still settle an old unpaid invoice through the payment workflow.
Activity Logs | Open the audit trail, search user or reference and filter dates and branch. Read the plain-language description of changes. | Login, logout and relevant edits are recorded. The originating IP is captured by the system even when not displayed as a column.
Correction discipline | Use returns, voids, reversals and payment actions appropriate to the original transaction. | Never edit journal or transaction database rows to force totals to match. Have an accountant review initial balances and reports.
''')

module('Till Collections', 'Sidebar > Till Collections', 'Record a manager collecting drawer cash during trading without changing sales.', '''
Collect Cash | Open the popup and select branch, cashier, cash method, recipient and destination account. Enter the actual amount and note. | An open shift is optional. The recorder is the actual logged-in user.
Select Shift | Select an existing cashier shift when one applies to preserve drawer reconciliation. | Shift Management does not need to be enabled solely to make an independent collection.
Available amount | Review the displayed limit before confirming. | With a shift, it uses expected drawer cash; without one, it uses the posted branch cash-account balance, not a counted individual drawer.
Save Collection | Confirm the real handover and save. | Credits the drawer's cash account and debits the destination. It does not change VAT, sales or stock.
Print acknowledgement | Print the short collection reference and obtain the handover signatures as required operationally. | Selecting a recipient records responsibility; it is not an electronic signature.
Reverse | Use the separate reversal permission and provide the reason when cash is actually returned. | Collections on closed shifts cannot be reversed through the normal action.
Bank deposit later | Deposit from the account that actually received the collection, such as Cash in Office. | Do not credit the drawer again for the same money or duplicate it as another generic transfer.
''')

module('Departments', 'Sidebar > Departments', 'Maintain organisational groups used by staff and operational records.', '''
Add Department | Enter the department name and other available identifying details, then save. | Use clear names such as Sales, Kitchen or Housekeeping.
Edit | Open the relevant department and correct its permitted details. | Review employees and workflows that already use it before changing its meaning.
Delete | Remove an unused department only where permitted. | Preserve departments referenced by historical employee or business records.
Staff assignment | Select the appropriate department when maintaining the employee profile. | A department is not a security role or a branch access grant.
''')

module('Bulk SMS', 'Sidebar > Bulk SMS', 'Prepare recipient lists, templates and campaigns for a future provider dispatch connection.', '''
New campaign | Enter the campaign details, message and recipient source. | This version prepares campaign and recipient records; live provider dispatch is not complete.
Recipient selection | Choose all or selected customers, a branch, purchase period, outstanding-balance group or manual numbers as offered. | Check consent, relevance and phone formatting before any real campaign use.
Preview recipients and cost | Review the selected recipient count, message length and estimated cost. | An estimate is not proof of a provider charge or successful delivery.
Template | Choose a saved template or create one with reusable message text. | Review placeholders and final text before saving a campaign.
Draft, Send Now and Schedule | Select the desired campaign mode and save the prepared campaign. | These options currently save pending work. Do not promise customers that messages were delivered.
Campaign Details | Open the campaign and review recipients and their stored statuses. | A queued or pending recipient is not a delivery confirmation.
Template edit or delete | Update an existing template or remove an unused one; used templates may be deactivated instead. | Changing a template is setup, not a resend of an earlier campaign.
''')

module('Leads Management', 'Sidebar > Leads Management', 'Record cold prospects and maintain their contact history until an opportunity becomes a deal.', '''
Add Lead | Enter business or contact name, phone, source, category, assigned employee, branch and initial status, then save. | The system records creation time. The related contact is also represented in the call log workflow.
Cold status | Keep early prospects in Cold while investigating their needs and interest. | Cold does not mean that follow-ups are unavailable.
Follow-up or Add Follow-Up | Record subject, due date and time, owner, priority and notes from the row or lead action. | The activity appears in My Follow-ups and remains linked to the prospect.
Action and View | Open the lead to inspect details, notes, call history and follow-ups as available. | Use the existing record instead of creating a new lead after every call.
Edit and assignment | Correct details, category, owner or status through the permitted edit action. | Respect own versus all visibility and branch access.
Change to Warm | Enter the expected deal amount and change the lead to the configured Warm stage. | Creates or moves the opportunity into Deals. It is not yet a completed conversion for performance.
Convert action | Use the available move or conversion control for an eligible lead and review expected value and ownership. | Do not create a second deal manually for the same opportunity.
Statuses and Categories | Open the shared CRM options page to add, edit or deactivate choices if authorised. | The underlying special stage behaviour must remain tied to the intended Cold, Warm, Hot and Completed roles.
Filters | Search name, contact or lead number and filter status, category, source, assignee and branch. | Own or all access limits which records the filter can return.
Reports | Open the lead report to review prospect activity and conversion metrics for the selected scope. | Warm pipeline entry is not the same as a won or completed deal.
Delete | Use only the permitted action after checking linked follow-ups and deals. | Avoid deleting legitimate contact history just because a prospect becomes cold again.
''')

module('Human Resource and employees', 'Sidebar > Human Resource', 'Start from payroll and use the top buttons to enter separate staff administration pages.', '''
Payroll landing page | Open Human Resource to see processed payrolls and payroll actions by default. | Other HR areas open as their own focused subpages.
Employees | Search an employee, add a new profile or open Edit for an existing member of staff. | Back to Human Resource returns to the main payroll page.
Identity and contact | Record employee number, national ID, names, nationality and phone plus optional email and address details. | National ID is the business identifier used for biometric matching; avoid duplicates and preserve leading zeros.
Employment details | Maintain department, branch, job title, employment status and relevant employment dates. | Profile details alone do not grant system permissions; assign a role separately where login is needed.
Statutory and pay details | Maintain basic salary, allowances, KRA PIN, NSSF and SHIF identifiers, tax residence and applicable payroll information. | Have the payroll officer verify employee documents rather than guessing identifiers.
Payment details | Record method, bank name and bank account or relevant payment details. | Protect this personal information through restricted roles.
Time and Attendance | Open the HR attendance view and filter dates, branch or employee. | HR can review attendance without being forced into the separate device administration module.
Leave | Open the leave register, apply for leave, choose type, dates, employee and reason and submit. | Overlapping pending or approved leave requests are blocked.
Leave balances and pending | Review leave balances and pending applications, then approve or reject if authorised. | Day counting follows the implemented calendar-day rules; confirm the business policy before payroll use.
Leave Types | Maintain the available leave types and their allowance or configuration. | A type setup is separate from approving an employee's application.
Contracts | Record contract details, effective dates and status, and review approaching expiries. | Keep signed contract evidence in the business's approved records process.
Performance | Record the review period, employee assessment, targets or comments and follow-up actions. | Use task performance evidence alongside the manager's review, not as its sole basis.
Discipline | Record the employee, date, incident, action and notes through the permitted form. | Sensitive disciplinary records need restricted access.
Task Performance | Open the task performance report and filter employee and period for review. | It uses task records and achievements; it does not create payroll automatically.
''')

module('Payroll and payslips', 'Human Resource > Payroll', 'Prepare a monthly payroll, review deductions, finalise it and print staff documents.', '''
Generate Payroll | Select the complete payroll month, branch, all eligible employees or searched and selected employees, pay date and calculation mode. | The selected pay date must fit the payroll month for automatic Kenyan payroll.
Automatic or Manual Review | Choose the implemented statutory calculation mode or the manual review workflow where needed. | Automatic rules are version-dependent. This build's configured supported period is February 2026 to January 2027.
Payroll Setup | Create or edit addition and deduction components, active state and application settings. | Common components apply through setup; individual exceptions can be reviewed on draft entries.
Draft payroll list | Review employee number, name, ID, basic, other payments, gross and deductions. | Generation is a draft calculation, not payment to the employee.
Edit payroll entry | Adjust permitted draft earnings, advance, loan, HELB or SACCO, damages and other deductions, then recalculate or save. | Automatic statutory figures are recalculated according to the selected calculation rules.
Statutory deductions | Review PAYE, NSSF, SHIF, housing levy, relief and employer contribution information as provided. | Unsupported cases such as complex benefits, arrears or special relief require accountant review; do not assume every case is automated.
Total deductions and Net Salary | Check that deductions reconcile to net salary and that payment bank details are correct. | Check each exception before finalisation.
Finalise Payroll | Finalise only after review and approval of the draft amounts. | A finalised employee payroll cannot be generated again for the same month. Other unprocessed employees may still be processed.
Finalised status | Retain the final payroll as the period record. | Finalising payroll does not by itself confirm a bank transfer or cash payment occurred.
Payslip | Open an employee's payslip to review earnings, deductions and net pay. | The payslip is for that employee and period; do not expose another employee's personal pay details.
Print payslip | Use the Print button on the individual payslip and select the printer or Save as PDF. | Review the preview before giving it to the employee.
Download payslip | Use the provided download action where available to obtain the payslip document. | Keep downloaded employee documents in secure storage.
P9 Tax Card | Select employee and tax year, review the tax-card values and use the P9 download or print workflow. | Reconcile annual totals and statutory details with payroll records before issuing or filing.
P9 review controls | Complete the required employer and employee tax identity and review each month's tax-card figures. Finalise all payrolls for the employee and year before download. | Missing tax identifiers, unreviewed figures or draft payrolls can prevent issuing a complete P9.
Export CSV and totals | Apply the payroll filters and export the relevant entries; inspect the report totals. | The export is sensitive payroll data and should only be shared with authorised personnel.
''')

module('Task Management', 'Sidebar > Task Management', 'Track own and team work, recurring duties, progress and employee performance.', '''
General Tasks | Open the default overview and filter staff, branch, category, dates and task status. | It shows permitted tasks including tasks given by the user, not only tasks assigned to them.
My Tasks and history | Open own tasks or the relevant history view to review responsibilities and completed work. | Own and others' task permissions control the available records.
Task Categories | Add, edit or delete authorised categories, choose the target measurement and provide a description. | Examples include cold calls, follow-ups, demos, installations, support, blogs and social posts.
Add Own Task | Enter category, subject, separate description, start and due date, target, supervisor and owner details, then save. | The description has its own list column; subject is a short title.
Post General or Specific Task | Choose the appropriate type and enter the required work and target. | Posting rights for each type are separate permission choices.
Assign Task and Post for Others | Select the responsible employee and supervisor and save with the applicable scope. | These actions need explicit rights; access to own tasks is not assignment authority.
Measurement mode | Select Numbers or Percentage and enter the expected value. | Keep the unit meaningful. Ten calls should normally be a numeric target, not an unexplained percentage.
Update Progress | Enter actual achievement, status, date and supporting comment or evidence as offered. | Do not mark work verified simply because an employee entered a completion value.
Status and overdue | Review New, Pending, Ongoing, Completed and Verified as applicable. Filter by status. | Overdue tasks are highlighted red; due dates and progress should be reviewed together.
Feedback or verification | A supervisor reviews completed work and records feedback or verification through the permitted control. | Separate employee completion from management acceptance.
Employee Notes | Add notes for an employee using the appropriate permission. | Notes about another person need the corresponding role right.
Clear Overall Pending Tasks | Use this privileged control only after reviewing the employee and affected tasks. | This is not an ordinary employee action; grant narrowly.
Recurring category | Enable recurrence in the category and choose Daily, Selected Weekdays or Monthly as offered. | Category recurrence is a default for new tasks, not a silent rewrite of existing schedules.
Recurring task | On the task, confirm recurrence days, owner, start, due date, target, supervisor and optional end date. | New occurrences start New with zero achieved, retaining the configured task details.
Stop or change recurrence | Edit the recurring task for future occurrences or untick recurrence; use the appropriate cancellation control when needed. | Completing one occurrence does not necessarily stop the recurring schedule.
Task Reports | Select target period, user or all users, dates, branch and performance or history report. | Use it for monthly reviews. Category weighting is not a completed weighted scoring scheme in this build.
Scheduler requirement | Ensure the installation has the background scheduler running for reliable automatic task creation. | Opening the module provides limited catch-up, not a replacement for server scheduling. SMS reminder dispatch remains separate.
''')

module('Deals Management', 'Sidebar > Deals Management', 'Manage warm and hot opportunities through follow-up to completed business.', '''
Add New Deal or Customer | Enter customer or prospect, subject, staff, branch, expected value, status and other required details. | For an existing lead use the linked move workflow rather than duplicating the opportunity.
View My Deals and filters | Use own deals or filter staff, branch, category, deal type and status. Search deal number, customer, phone or subject. | Own or all visibility is limited by role.
Expected Value or open pipeline | Enter the expected opportunity amount while the deal is open. | An expected amount is pipeline value, not sales revenue or money received.
Warm and Hot | Change Warm to Hot when interest increases, or update the temperature to reflect reality. | Hot alone must not create an invoice or count the deal as completed.
Completed | Change an agreed closed deal to the configured Completed stage. | This counts as won or completed for CRM conversion metrics. It does not automatically post a POS sale.
Action and View Deal | Open the actions popup and inspect the full details and history. | Use the popup actions rather than relying on hidden controls below the table.
Follow-up | Use the row Follow-up or Add Follow-Up action, enter due time, subject, owner and notes and save. | Follow-ups continue through warm and hot stages and appear in My Follow-ups.
Edit or Transfer | Amend the deal or reassign it to the permitted employee and branch. | Transfers should preserve the existing opportunity and contact history.
Quotation | Open quotations to prepare the offer for the opportunity. | A quote remains a non-sale until invoice conversion.
Deals Due Today | Open the due view to focus on deals needing attention today. | Review overdue follow-ups as well; a deal can have several follow-up activities.
Pipeline Report | Review expected values and stage or completion counts for the filtered team and period. | Do not compare pipeline totals directly with posted sales without reconciling actual invoices.
Statuses and Categories | Maintain the shared CRM choices through the authorised setup page. | Renaming a stage should not change its intended business behaviour accidentally.
Delete | Use the separately permitted Delete action only after checking links and history. | A lost or cold opportunity is normally better represented by status than by deleting evidence of work.
''')

module('Call Centre and follow ups', 'Sidebar > Call Centre and CRM > My Follow-ups', 'Keep the contact log and a shared follow-up schedule for leads, deals and customers.', '''
Add New Call | Record category, subject, caller name, number or email, receiver, source or media, date, description and status. | Record the actual contact. Do not use a new lead record for every repeat call.
Call log | Review all recorded calls within the user's permitted branch and record scope. | Leads created through the connected workflow appear in the call history too.
Call filters | Search call number, caller, phone or subject; filter category, status, receiver, branch and dates. | Use filters rather than deleting older calls to shorten the screen.
Action | Open the row action popup to view, edit or use the permitted related-record controls. | Available actions depend on role and the call's linked records.
Leads, Deals and My Follow-ups | Use the top buttons to move to the relevant CRM page. | Calls are a contact log; leads and deals hold prospect or opportunity progression.
Statuses and Categories | Create or edit call and CRM choices using the authorised shared setup controls. | Keep categories understandable and deactivate old choices where history must remain.
All follow-ups | Open My Follow-ups to see the default All view across linked records. | A follow-up remains linked to its lead, deal or customer.
Today, Overdue and Upcoming | Choose the relevant tab or period and apply assignee, record type, priority and status filters. | Overdue pending work is highlighted for attention.
Add Follow-up from record | Open a lead or deal and add the activity with subject, due date and time, owner and optional notes. | This avoids an unlinked reminder with no customer context.
Edit or Reschedule | On a pending follow-up, change the date, time, priority, owner or details and save. | Rescheduling should reflect a real next action, not conceal missed contact.
Complete | Enter completion notes if needed and mark the follow-up completed. | Completion of a follow-up does not itself complete the deal.
Cancel | Cancel a pending follow-up that is no longer appropriate, retaining the activity history. | A cancelled reminder is different from a successfully completed customer contact.
CRM Reports | Open the call, lead, deal or follow-up report and apply team and date filters. | Review both activity volume and actual business outcomes during performance reviews.
''')

module('Project Management', 'Sidebar > Project Management', 'Organise service delivery using projects, team members, milestones and a task board.', '''
New Project | Enter title, customer or relevant reference, manager, branch, dates, budget and description as offered. | A project is a delivery record, not an automatic customer invoice.
Project list and selection | Search or filter available projects and open the intended project. | Review the manager, due date, health and progress before updating it.
Update Project | Change status, health, progress, due date and actual cost through the permitted form. | Actual cost here is project tracking; verify accounting transactions separately.
Project Team | Select the team members and click Update Team. | Project membership does not independently grant unrestricted module or branch access.
Add Milestone | Enter the milestone title, owner and due date. | Milestones group delivery commitments within the project.
Add Task | Enter task title, assignee, milestone, due date, priority and initial status. | Keep the assignment specific enough for the employee to act on.
Delivery Board | Review Backlog, To Do, In Progress, Review, Blocked and Done columns. | The board shows task state rather than a financial completion percentage.
Task Save | Choose the updated status and progress value and save the task. | Record blockers or context through the relevant project update rather than a misleading Done state.
Post Status Update | Enter update date, health, progress, summary, accomplishments, blockers and next steps. | Keeps a dated narrative of delivery progress for management review.
Budget and progress review | Compare expected budget, recorded actual cost, due dates and milestone status. | No full project billing or procurement automation should be assumed from these tracking fields.
''')

module('Biometric Attendance', 'Sidebar > Biometric Attendance', 'Import attendance punches, match employees and review attendance without storing biometric templates in the POS.', '''
Attendance | Open the default individual punch list and inspect time, database key, employee ID, name, device and type. | Unmatched records remain visible with blank employee names rather than invented employees.
Date filters | Choose All Dates, Today, Yesterday, This Month, Last Month, Last 30 Days, This Year, Last Year or Custom Date and Time. | Custom times apply to individual punches; Daily Summary uses calendar days.
Daily Summary | Open the grouped employee and day view for first in, last out, hours, lateness and status. | The current basic first-last and day rules do not establish every business's break or shift pay policy.
Add Manual Punch | Use the top button, choose employee or ID, time, device and punch type, then save. | Manual entries should represent genuine corrections and be restricted to authorised staff.
Devices and Mappings | Review configured devices or database connectors and open their relevant setup actions. | Integration depends on the actual supported source; not every biometric brand is automatically connected.
Add Device or Connector | Choose the connector details, branch and source settings. For ATT2000 use the verified local MDB path. | The typical path is C:\\Program Files (x86)\\Att\\att2000.mdb on the Windows server.
Link Employee | Link a displayed database key to the correct employee national ID where automatic matching cannot find an identity. | National ID is the business identifier. A source database row key is not the employee's national ID.
Sync Now | Run a manual read of new source punches and inspect the result. | The ATT reader uses a read-only temporary copy; it must not rewrite the device database.
Match Earlier Punches | Retry matching historical unmatched records after entering employee IDs or mappings. | It does not silently create employees or guess duplicate national IDs.
Import CSV | Use the supported import format to load attendance records where a live connector is not available. | Check timestamps, employee identifiers and duplicates before relying on the result.
Database Sync Installer | Install the background sync on the local Windows server with the required administrator rights. | The installed worker checks after each run, normally on a five-second interval, with a restart watchdog.
Hosted installations | Use a supported secure push integration when the POS is hosted away from the device computer. | An online server cannot directly read a client's C drive. A hosted Windows push agent is not supplied by the local MDB installer.
Edit daily status | Update permitted summary comments or attendance status after review. | Confirm policy before using attendance as payroll evidence; device punches do not automatically approve wages.
''')

module('Shift Management', 'Sidebar > Shift Management', 'Control cashier opening, closing and reconciliation independently of reporting period presets.', '''
Open Shift | Choose the branch and enter the actual opening float before opening the shift. | Required only when the business enables strict open-shift enforcement for selling.
Shift register | Filter dates, cashier, branch and status and open the required shift. | Own versus all permissions limit the visible records.
Close Shift | Enter the actual counted cash and other requested collection figures, review differences and confirm closing. | Do not copy expected cash into counted cash without counting.
Shift Report | Review opening float, receipts, expenses, refunds, till collections and expected versus counted amounts. | A till collection reduces money expected in the drawer without reducing sales.
Stock report or counts | Open the shift stock report or quantity count controls where offered and authorised. | Investigate stock differences instead of changing figures merely to match a cash count.
Shift period setup | Configure one or two shift windows in System Configuration, including the next-day end where needed. | Example: 06:00 to 18:00 and 18:00 to 06:00 next day.
Reporting without enforcement | Enable the required business reporting periods while leaving strict open-shift selling enforcement off for businesses that do not operate cashier shifts. | Reports can still use those time windows; waiters need not open a shift solely to take orders.
''')

module('Customer Feedback', 'Sidebar > Customer Feedback', 'Collect public and staff-entered customer comments and track management responses.', '''
Feedback Links | Choose the branch and create or enable its public feedback link. | Customers do not need a system account to submit feedback.
Copy Link | Copy the public URL for WhatsApp, email or the business website. | Localhost and private LAN links are not accessible to internet customers.
Public submission | The customer chooses a category and writes the message. Name and phone are optional. | Customers cannot read other submissions or internal review notes.
Add Feedback | Authorised staff open the internal popup, select branch and category, enter the message and optional customer details and save. | Does not require an enabled public link; records the staff member who entered it.
Categories | Create, rename or deactivate categories such as Complaint, Comment, Compliment and Recommendation. | Used categories are retained for history; deactivate instead of deleting when required.
Search and filters | Filter date, category, status and branch and open the intended feedback. | The list is newest first within permitted branches.
View or Review | Read the full message, add an internal note and set New, In Review, Resolved or Archived. | Internal resolution status is separate from the customer's category.
Disable or Replace Link | Disable a link to stop submissions or replace it to invalidate the old URL. | Existing feedback is retained. Public spam controls reduce abuse but do not replace monitoring.
Delete | Use the separately granted Delete action where available. | This build does not provide feedback file uploads or automatic SMS notifications.
''')

module('Users and roles', 'Sidebar > Users and Roles', 'Assign precise module, action, record scope and branch access to employees.', '''
Add User | Enter name, login credentials and required contact or employment details. Choose an existing role and permitted branches. | Email is not intended to prevent creation of ordinary local employees without email.
Role selection | Choose the role that matches the job, such as Cashier, Manager or another configured role. | Avoid giving a cashier an administrator role merely to make one button visible.
Branch assignments | Select the branches the user may work in or report on. | A role controls actions; branch assignments control locations. Both must be correct.
Edit, status and credentials | Update permitted user details, disable a departed employee or reset credentials through the authorised controls. | Protected owner and system administrator accounts have additional restrictions.
Add Role | Create a meaningful role name and save its permission selection. | Create separate roles where duties genuinely differ.
Module access checkbox | Tick each module the role should be able to open and leave other modules unticked. | Enabling a module alone does not mean every action in it should be granted.
Select All and individual actions | Use Select All for a module only when intended, or tick the exact create, view, update, print, payment, return or delete rights needed. | Review high-risk actions separately. New permissions are not automatically given to every ordinary role.
View Own and View All | Choose own records for employees who should see only their sales, purchases, tasks or other scoped records. Grant all only where needed. | View All still respects permitted branches; it is not a licence to read the whole installation.
Purchase receiving role | Grant purchase entry and Unpaid status, but do not grant purchase payment or Paid or Partial selection. | The receiver cannot legitimately mark a supplier paid without the required payment rights.
Cashier printing role | Enable retail sales and Save and Print; leave unwanted Save, STK, Credit Sale and Quotation actions disabled. | Keyboard shortcuts must not bypass these action permissions.
Waiter role | Enable restaurant order entry and intended own bills. Grant reprint, merge, split or room-posting rights only when required. | Cash collection and void rights can remain with the cashier or manager.
Role landing page | Select the permitted default landing page for the role. | Examples: Retail POS for cashier, Restaurant for waiter, Dashboard for manager.
Apply and test | Save the role, then sign in with a representative user and test both visible buttons and real allowed operations. | Check denied actions too. Hiding a button alone is not a substitute for server-side enforcement.
Owner licence controls | Keep licence issuing restricted to the authorised owner installation and account. | Creating a role called Super Admin does not legitimately grant licence issuing. Client installations should not carry the signing private key.
Delete role or user | Remove only records permitted by the application and preserve references to historical activity. | Do not delete accounts merely to remove their audit trail; deactivate where appropriate.
''')

module('Settings and branches', 'Sidebar > Settings', 'Configure business-wide defaults carefully before operational use.', '''
Settings directory | Open System Configuration, Branches, Restaurant Setup, M-Pesa, Receipt and Document Setup, Website Setup, Tax or VAT, eTIMS or Database Backups. | Individual setup permissions control the available cards and actions.
Add Branch | Enter the location's name and available business or contact details and save it as active. | Branches share the installation's database but operations are scoped by branch assignments.
Edit Branch and status | Open the branch action to update identity, details or active status. | Check existing users, products, printers and open transactions before deactivation.
Delete Branch | Use only the authorised action when the branch is unused and removal is allowed. | Do not delete a live branch with history to hide records.
Login mode and POS mode | Choose the supported login experience and the normal selling mode for the installation. | Role landing pages can override the general destination where allowed.
Default landing page | Select the installation-wide starting module and use role overrides for different jobs. | The chosen page must be enabled and permitted for the user.
Default entries | Select the normal list size; the default is 10 entries. | Users can change page size on supported data lists.
Idle timeout | Set the allowed inactive minutes or use the supported off option when appropriate. | A shorter timeout protects unattended terminals but can interrupt unsaved forms.
Transaction update days | Choose the age limit for editing operational records; default 30 days. | It should not prevent a later authorised payment against an older outstanding bill.
Default UOM | Choose the unit preselected when creating products. | Existing product units are not silently converted.
Decimal places | Choose the display precision, with 0 as the normal default. | Display rounding does not remove the need for accurate stored tax and payment amounts.
Time zone and currency | Select the configured business time zone, currency and display settings. | System timestamps depend on correct server time. A display exchange rate is not a complete multicurrency accounting ledger.
Allow overselling | Enable only if the business deliberately allows negative stock; otherwise leave off. | With it off, quantity and final posting checks guard against overselling.
Repeated product behaviour | Select Increase Quantity or New Line when the same product is added again. | Applies to the supported selling screens; separate lines allow distinct permitted discounts.
Selling product display | Choose product image or selling price for the supported product tiles. | Upload product images first if image display is selected.
Show Tax | Enable receipt tax display where needed. | This controls display; VAT calculations and accounting continue even when tax is hidden from the receipt.
Shift settings | Set business shift windows and separately decide whether an open shift is compulsory for selling. | A two-shift 24-hour business needs correct overnight boundaries, not manual filter changes every evening.
''')

module('Restaurant printer and table settings', 'Settings > Restaurant Setup', 'Configure order behaviour and send bill and kitchen jobs to the correct installed printers.', '''
Printing Mode | Choose One Receipt, Bill and Kitchen Order or Order Only according to the business workflow. | For immediate bill and kitchen output select the matching combined mode and configure both destinations.
Entry options | Set Allow Item Note, Enable Tables, Show Customer Name, Show Display Keyboard and Show Numbers. | These change the restaurant selling experience, not the product master stock.
Auto Logout After Printing | Enable when each waiter should sign in again after posting and printing an order. | Test the resulting workflow with the actual waiter role.
Tables | Add or edit table names and seats through the table setup controls; remove only unused tables where allowed. | Seats are a planning guide. Separate parties can have separate orders at one table.
Create Print Station | Enter a recognisable station name and branch and create it. | A station is the agent identity on the computer that submits jobs to Windows printers.
Station Update, Disable and Delete | Edit station setup or disable an unused station. Delete only after checking mapped destinations. | Removing a mapped station can stop printing even when the physical printer works.
New Token | Generate a replacement station token when needed and update the installed agent configuration. | A new token invalidates the old credential. Do not share tokens in screenshots or manuals.
Download Windows Print Agent Installer | Download the installer and run it as Administrator on the Windows computer hosting the installed printer queues. | Closing the installer PowerShell window does not stop a properly installed scheduled background agent.
Server API URL | Enter the actual reachable POS API URL for the restaurant server. | Other terminals must not use their own localhost as if it were the POS server.
Enable Automatic Print Agent | Enable routing only after the station and agent are ready. | Agent printing is separate from manually opening the browser print dialog.
Customer Bill Station and Printer | Select the destination station and enter the exact Windows printer queue name installed on that station's computer. | Use the Windows queue name, not a guessed model name or the computer name.
Default Order Station and Printer | Select the normal kitchen station and the installed order printer queue. | This handles order items without a more specific category route.
Category Printer Destinations | For each category choose station, exact Windows printer name and optional order heading. | Example: food to kitchen, drinks to bar. Both queues can be on the same server even when the printers use LAN IP addresses.
Save Printer Routing | Save all mappings, then test with a small order containing the relevant categories. | A cashier bill printing successfully does not prove the kitchen mapping is correct.
Status and Last Seen | Confirm that the station has a recent heartbeat. If stale, check the server agent task and its log. | Active status alone is not proof of a current connection or physical print. Check Windows queue and printer connectivity too.
Two or more POS computers | Use the same POS server URL on other terminals. Let the configured station handle the central printer queues. | Each terminal need not install the same agent unless it is itself a separate designated print station.
Startup and watchdog | Leave the installed scheduled task enabled, ensure Windows, Apache, MySQL and the printers start normally and test after reboot. | A watchdog improves recovery but does not guarantee hardware, network or power availability.
''')

module('Receipt and document settings', 'Settings > Receipt and Document Setup', 'Control document headings, size, layout and the optional information customers see.', '''
Print Mode | Select the configured receipt, bill and order combination for the business. | Print mode affects which documents are requested, not the amount paid.
Document titles | Set the names for cash receipt, unpaid invoice, customer bill and kitchen or bar order. | Examples include Cash Sale, Customer Bill and Kitchen Order.
Thermal and A4 layouts | Choose the available layout for receipts, invoices and related documents. | A4 is intended for formal page-sized output; kitchen orders normally omit selling prices.
Document-specific setup | Review quotation, delivery note, GRN and credit or debit note options as available. | Do not assume all document types should share identical columns or titles.
Business details and PIN | Set or enable the business information and tax PIN shown on customer documents. | Keep legal business details accurate; display settings do not register the business with KRA.
Show customer and customer PIN | Enable customer details and customer tax PIN where required. | The actual customer record must contain the intended information.
Show cashier and branch | Enable the responsible staff name or branch details as appropriate. | Useful for customer queries and multiple locations.
Show Discount | Enable the receipt discount display where desired. | Hiding the display does not remove a discount from the calculation.
Tax Summary | Show one summary per relevant tax classification or rate, such as VAT 16 percent, Exempt or Zero Rated. | Avoid an additional duplicate VAT or Tax total above the same rate summary.
VAT Per Product on Receipt | Enable item-level VAT on the printed receipt or applicable A4 layout. | This is independent from the overall tax summary.
VAT Per Product in Retail or Wholesale | Enable line VAT on the selling window. | Display only; does not change tax method, tax liability or stock.
Payment Status | Choose whether Paid, Partial or Unpaid is printed. | Hiding status does not settle the underlying balance.
Tendered and Change | Review the receipt's amount received and change fields. | Tendered replaces a duplicate Paid label; the sale balance remains a separate accounting fact.
M-Pesa transaction reference | Use a properly linked M-Pesa payment so the transaction code appears on the receipt. | Choosing the method without a confirmed code is not the same as a matched incoming payment.
Previous and Total Customer Balance | Enable these optional rows for named customers. | They show current other unpaid bills plus this bill in the same branch; later payments can change a reprint. Advances remain separate until applied.
Receipt Footer | Enter normal text or allowed headings, paragraphs, bold and safe inline styles, then save and preview. | Browser thermal and A4 layouts support the allowed formatting; arbitrary scripts and unsafe CSS are stripped.
Footer example | Use <h1 style="text-align:center">Thank you</h1><br><h2>Till number</h2> and adjust permitted size or weight. | The Windows text print agent preserves text and line breaks, not every browser HTML or CSS effect.
''')

module('M Pesa settings and reconciliation', 'Settings > M-Pesa Settings and Sales > M-Pesa Transactions', 'Configure online or modem-sourced payments without confusing receipt messages with completed sales.', '''
Environment | Choose Sandbox for simulated Daraja payments or Production after the merchant setup is authorised. | Sandbox transactions do not move real money.
API credentials | Save the merchant Consumer Key, Consumer Secret, shortcode or till, shortcode type and passkey. | Enter credentials for the correct merchant. Do not print or share secrets; saved secret fields are not intended to expose stored values.
Account Reference | Enter the supported short payment reference, within the displayed length limit. | This is the prompt reference, not a replacement for the unique M-Pesa transaction code.
Callback URL Copy | Copy the provided public HTTPS callback URLs into the appropriate merchant or Daraja configuration. | Internet callbacks cannot reach a plain localhost address without suitable hosting or a secure tunnel.
STK, C2B and B2C feature controls | Enable the flows intended for the configured merchant. | A settings switch is not proof of end-to-end approval or support for every bank paybill or payout scenario. Test each actual flow separately.
Modem payments | Configure the modem branch, expected payment SMS sender and SMS Enabler incoming URL. | This is for received payment messages, not an offline STK Push facility.
SMS Enabler | Configure the external program to forward the supported payment messages to the POS endpoint. | The modem, SIM, Windows service and SMS format must be tested on the client installation.
Payment parsing | Check that supported transaction messages yield the correct code, amount, sender and date. | Bank and mobile-money formats vary. Promotional or unrecognised messages must not be treated as confirmed customer payments.
Incoming payment popup | Cashier opens MPESA, finds the customer's unclaimed transaction and selects the correct payment. | Match code and amount carefully; duplicate message protection prevents reusing one transaction code as new money.
M-Pesa Transactions | Search code, dates, branch or claim state and compare incoming receipts with linked sales. | An unclaimed payment may be genuine money received but not yet allocated to a bill.
Reconciliation | Compare the payment register, POS allocations and the merchant statement for the same business period. | Do not clear an unmatched amount by inventing a sale or claiming a different customer's transaction.
''')

module('Website settings', 'Settings > Website Setup', 'Connect a separate business website to POS products, food orders and room reservations.', '''
Enable website integration | Turn on the required integration and set its permitted connection details. | A website and compatible connector are required; the setting alone does not create a WordPress website.
Website URL and API key | Configure the business website address and the supported API credentials in both systems. | Keep keys secret and use HTTPS for hosted deployments.
Product pricing | Choose the website pricing policy. Retail price is the default, with optional dedicated website price. | Website display should follow the configured policy rather than an unrelated manual price list.
Product visibility | Enable Show on Website for selected products, provide images and descriptions and keep the product active. | A raw material marked Not for selling should not be offered as a normal online selling item.
Food order connection | Enable supported online order functions and review received orders in Website Orders. | Accepting an order and completing payment or fulfilment are separate steps.
Room booking connection | Configure the accommodation booking connection and published room or rate information. | Received bookings appear under Accommodation > Online Reservations and must be processed normally.
Separate business domain | Host the website and POS at their intended addresses and configure the API connection between them. | They do not need the same public folder. A domain redirect alone does not synchronise products or bookings.
Test before launch | Test product price changes, image visibility, a sample reservation and a sample order through the actual public addresses. | Confirm success feedback and avoid treating a failed or rate-limited submission as a saved booking.
''')

module('Tax and eTIMS settings', 'Settings > Tax or VAT Settings and eTIMS Setup', 'Maintain tax classifications and demonstrate eTIMS separately from a certified live KRA connection.', '''
Add Tax Rate | Enter name, code, type, rate or fixed amount, calculation method, inclusive or exclusive price method and sales or purchase applicability. | Use recognised names such as Vatable 16 percent, Zero Rated and Exempt.
Default and Active | Select an appropriate default and active state for each tax rule. | A default is an entry aid; the selected product's own tax classification must still be honoured.
Tax accounts | Enter the appropriate sales and purchase tax account mapping details. | Obtain accountant review before live posting.
Edit or Delete Tax Rate | Correct a setup error using Edit or remove an unused rule where allowed. | Do not change a historical rate's meaning without reviewing the effect on future transactions and reporting.
VAT inclusive example | For a gross price of 100 at 16 percent, the net is approximately 86.21 and VAT 13.79; the payable gross remains 100. | Calculate tax at the transaction's required precision; do not add another 16 percent to an inclusive price.
VAT classification | Keep exempt, zero-rated, non-taxable and vatable items distinct in setup and report summaries. | Similar zero amounts do not mean identical tax treatment.
Input and output VAT | Review eligible purchase VAT and sales VAT in Accounting > VAT Report. | Opening stock quantities alone are not proof of claimable input VAT. Statutory eligibility and filings need accountant review.
Enable eTIMS | Enable only when the business needs its extra product fields and document workflow. | Disabling hides the eTIMS entry features without disabling ordinary VAT calculations.
eTIMS branch setup | Enter the relevant taxpayer PIN, branch and device details and product classification requirements. | HS code and KRA item classification are separate identifiers; do not substitute one for the other.
Demo mode | Create a sample sale and inspect the generated demo invoice reference, signature details and verification QR or link. | This is a JEVAPOS simulator. Its Accepted state and QR are not KRA certification or a valid live eTIMS submission.
Sandbox or Production | Configure only in conjunction with an installed certified connector and its provider. | In this build, non-demo documents remain pending with an awaiting-certified-connector message; no data is sent to KRA by the demo service.
Document status and retry | Review pending, accepted or failed documents, read the reported error and use the available authorised retry action after correcting it. | Repeated retries without a working connector do not turn a demonstration into a live submission.
Credit notes | Use the relevant sales return workflow so the electronic correction is linked to the original document. | Do not issue unrelated new invoices merely to offset an incorrect tax receipt.
''')

module('Backups licensing and maintenance', 'Settings > Database Backups and owner administration', 'Protect business records and keep deployment and licence administration separate from daily operations.', '''
Backup settings | Choose an authorised writable backup directory outside XAMPP and save the database dump configuration. | A separate folder on the same failed disk is not an independent disaster recovery copy.
mysqldump Path | Select the installed MySQL or MariaDB dump executable appropriate to the server. | This is a program path, not the backup destination or database file itself.
Create Backup Now | Run the backup, wait for completion and confirm the resulting file is listed and has a plausible size. | A success message is not a substitute for periodically testing restoration.
Download | Download a backup through the authorised action and store a protected copy away from the live machine. | Backups may contain customer, payroll, credential and licence-related data. Do not share them publicly.
Delete backup | Delete an old backup only under the agreed retention policy. | Keep enough recovery points and never delete the only verified copy before testing a replacement.
Automated backups | Have the installer configure the supplied backup command or script through Windows Task Scheduler or the hosting scheduler. | Scheduling is an installation step. Confirm it actually runs, rotates files and records failures.
Restore | Back up the current state first and restore into a controlled target during a maintenance window. | There is no assumption that a backup restore can safely merge new live transactions. Test on a separate database first.
Application updates | Back up, deploy the matching release files while preserving the client's .env and private configuration, then run the approved schema upgrade procedure. | Do not replace the client's live database with the development database. Review migration errors before reopening trading.
Print and attendance agents | Recheck configured URLs, station identity, credentials and background task health after updates or a server change. | Browser access working does not prove background agents are connected.
Activation requests | Customers or technicians submit the required installation details and enter the key issued by the owner. | Client installations are not intended to generate their own activation keys.
Owner activation register | On the authorised owner ERP, review requests, verify the customer and installation, issue or renew the key and use Copy for delivery. | Private signing keys and issuing authority belong only on the owner system, never in a client deployment or technician package.
Expiry enforcement | Monitor the two-week warning and request renewal before access expires. | A copied licence must match the permitted installation; editing database dates is not a legitimate renewal.
Owner access controls | Keep owner account, issuer configuration and signing key protected; check client deployments have issuing disabled. | Role names alone must not grant issuing power. Source-code access still requires additional operational and software protection.
''')

module('Daily workflow checklists', 'Operational reference', 'Use these short sequences to train users without changing the business records unnecessarily.', '''
Mini mart cashier | Sign in, confirm branch, search or scan products, set quantity, select payment, confirm money received and Save and Print. | Use a named customer for partial or credit sales and print the remaining balance where configured.
Purchase receiver | Select branch and supplier, search product, set quantity and VAT, check inclusive total, save as Unpaid and print GRN. | Do not mark paid unless the role permits it and payment actually occurred.
Restaurant waiter | Sign in, select table or separate customer, post the items and confirm the configured bill and kitchen output. | Use My Bills for additions, permitted reprints, bill splitting or room posting.
Restaurant cashier | Open the correct uncleared bill, verify customer and amount, record actual payment and print the receipt. | Table closure is not financial settlement. Check M-Pesa code before claiming.
Reception | Search guest by ID, confirm contact, occupancy, rate and meal plan, check in and review pending charges at checkout. | Use payment popups and record attached restaurant charges; print the combined receipt when appropriate.
Telesales | Create one lead, record call details, add the next follow-up and update temperature as interest changes. | Warm creates the opportunity; Completed records the won deal. Follow-up completion alone is not a sale.
Stock controller | Receive purchases, investigate low stock, record authorised transfers, damages and issues, and count physical stock periodically. | Use reasons and correct source documents rather than unexplained quantity edits.
Payroll officer | Maintain staff data, select month and employees, generate draft, review deductions, finalise once and print payslips or P9 as needed. | Verify statutory applicability and do not equate finalised with paid.
Manager closing review | Compare reports for the exact business shift, pending bills, M-Pesa allocations, expenses and till collections; count cash and investigate differences. | Back up and check printer or attendance agent health before the next trading period.
''')

doc = Document()
sec = doc.sections[0]
sec.orientation = WD_ORIENT.LANDSCAPE
sec.page_width, sec.page_height = Mm(297), Mm(210)
sec.top_margin, sec.bottom_margin = Mm(14), Mm(14)
sec.left_margin, sec.right_margin = Mm(15), Mm(15)
sec.header_distance, sec.footer_distance = Mm(6), Mm(6)
normal = doc.styles['Normal']
normal.font.name = 'Calibri'
normal.font.size = Pt(10)
normal.paragraph_format.space_after = Pt(4)
normal.paragraph_format.line_spacing = 1.04
for name, size in [('Title', 25), ('Heading 1', 18), ('Heading 2', 12)]:
    style = doc.styles[name]
    style.font.name = 'Calibri'
    style.font.size = Pt(size)
    style.font.color.rgb = RGBColor(0, 0, 0)
    style.font.bold = True
    style.paragraph_format.space_after = Pt(7)
    style.paragraph_format.keep_with_next = True
doc.styles['Subtitle'].font.color.rgb = RGBColor(0, 0, 0)
for style in doc.styles:
    for border in list(style.element.xpath('.//w:pBdr')):
        border.getparent().remove(border)

doc.core_properties.title = 'JEVAPOS System User Manual'
doc.core_properties.subject = 'Module features buttons and operating instructions'
doc.core_properties.author = 'Jevatech Solutions'
doc.core_properties.keywords = 'JEVAPOS, user manual, version 6.10.10'
header = sec.header.paragraphs[0]
header.text = 'JEVAPOS POS/ERP SYSTEM  |  System User Manual'
header.runs[0].font.size = Pt(8)
footer = sec.footer.paragraphs[0]
footer.text = 'Jevatech Solutions  |  Version 6.10.10  |  15 October 2026'
footer.runs[0].font.size = Pt(8)
footer.add_run(' ' * 12 + 'Page ')
for instr in ['PAGE', 'NUMPAGES']:
    field = OxmlElement('w:fldSimple')
    field.set(qn('w:instr'), instr)
    footer._p.append(field)
    if instr == 'PAGE':
        footer.add_run(' of ')

def shade(cell, fill):
    shd = OxmlElement('w:shd')
    shd.set(qn('w:fill'), fill)
    cell._tc.get_or_add_tcPr().append(shd)

def table(headers, rows, widths, compact=False):
    t = doc.add_table(rows=1, cols=len(headers))
    t.autofit = False
    for c, width in zip(t.columns, widths):
        c.width = Mm(width)
    pr = t._tbl.tblPr
    borders = OxmlElement('w:tblBorders')
    for edge in ['top', 'left', 'bottom', 'right', 'insideH', 'insideV']:
        e = OxmlElement('w:' + edge)
        for key, value in [('val', 'single'), ('sz', '4'), ('color', 'D9D9D9')]:
            e.set(qn('w:' + key), value)
        borders.append(e)
    pr.append(borders)
    margins = OxmlElement('w:tblCellMar')
    vertical = '30' if compact else '75'
    for edge, value in [('top', vertical), ('bottom', vertical), ('left', '90'), ('right', '90')]:
        e = OxmlElement('w:' + edge)
        e.set(qn('w:w'), value)
        e.set(qn('w:type'), 'dxa')
        margins.append(e)
    pr.append(margins)
    for i, h in enumerate(headers):
        cell = t.rows[0].cells[i]
        cell.width = Mm(widths[i])
        cell.text = h
        shade(cell, '344350')
        for run in cell.paragraphs[0].runs:
            run.font.color.rgb = RGBColor(255, 255, 255)
            run.font.bold = True
    repeat = OxmlElement('w:tblHeader')
    t.rows[0]._tr.get_or_add_trPr().append(repeat)
    for n, values in enumerate(rows):
        cells = t.add_row().cells
        for i, value in enumerate(values):
            cells[i].width = Mm(widths[i])
            cells[i].text = str(value)
            shade(cells[i], 'F2F4F6' if n % 2 == 0 else 'FFFFFF')
            for p in cells[i].paragraphs:
                p.paragraph_format.space_after = Pt(0)
                p.paragraph_format.keep_with_next = False
                for run in p.runs:
                    run.font.size = Pt(9.5)
        no_split = OxmlElement('w:cantSplit')
        t.rows[-1]._tr.get_or_add_trPr().append(no_split)
    return t

doc.add_paragraph('JEVAPOS System User Manual', 'Title')
doc.add_paragraph('Version 6.10.10', 'Subtitle')
doc.add_paragraph('Module features buttons and operating instructions', 'Heading 2')
doc.add_paragraph('This manual helps business owners, managers, cashiers, waiters, receptionists and support staff use JEVAPOS. It explains the available modules, the purpose of their main buttons and fields, and what each operation does to business records.')
doc.add_paragraph('Use the module directory to find the relevant area. Each table lists the module, feature or button, operating steps and important controls. Button names can vary slightly by screen, record status and configuration. Not every installation enables every module, and a user only sees actions allowed by their role and branch assignments.')
table(['Document detail', 'Information'], [
    ('System', 'JEVAPOS POS/ERP SYSTEM'),
    ('Release covered', '6.10.10'),
    ('Prepared', '15 October 2026'),
    ('Owner and support', 'Jevatech Solutions | 254727109484 | info@jevatech.com'),
    ('Scope', 'Current module workflows, buttons, major entry fields, reports, permissions and operational setup.'),
    ('Financial use', 'Review opening balances, VAT configuration, statutory payroll and account mappings with the responsible accountant.'),
    ('Access and privacy', 'Keep passwords, API tokens, signing keys, employee pay and customer information out of shared training copies.'),
    ('Important limits', 'eTIMS demo is not a live KRA connection. Bulk SMS prepares pending campaigns but does not yet dispatch them. External agents and integrations require installation and testing.')
], [52, 215])
doc.add_paragraph('Reading the tables', 'Heading 2')
doc.add_paragraph('Follow the How to use column, then read Result and controls before saving. A quotation, reservation, requisition, sales order or payment prompt does not necessarily mean a posted sale or a completed payment. Confirm the resulting status and reference after each important operation.')

doc.add_page_break()
doc.add_paragraph('Module directory', 'Heading 1')
doc.add_paragraph('Sections follow the operational modules and their related subpages. Word navigation headings provide another way to jump between sections.')
table(['Section', 'Module or area', 'Open from'], [(str(i), a, p) for i, (a, p, _, _) in enumerate(sections, 1)], [17, 83, 167], compact=True)

for index, (name, path, purpose, rows) in enumerate(sections, 1):
    doc.add_page_break()
    doc.add_paragraph(f'{index} {name}', 'Heading 1')
    p = doc.add_paragraph()
    p.add_run('Open from: ').bold = True
    p.add_run(path)
    doc.add_paragraph(purpose)
    table(['Module', 'Feature or button', 'How to use', 'Result and controls'],
          [(name, *row) for row in rows], [31, 47, 108, 81])

doc.save(OUT / 'JEVAPOS_System_User_Manual_v6.10.10.docx')
print(f'Saved {OUT / "JEVAPOS_System_User_Manual_v6.10.10.docx"}')
print(f'{len(sections)} sections; {sum(len(s[3]) for s in sections)} feature rows')
