Purchasing Guide
The Purchases module allows you to record, track, and manage all raw material and supply purchases made by Lofty Golden Oil Ltd. Every purchase recorded here automatically updates your inventory, ensuring stock levels are always accurate.
Overview
The Purchases module provides:
- A complete history of all recorded purchases
- Ability to record new purchases with automatic stock updates
- Supplier tracking and management
- CSV export for reporting and analysis
- Integration with Inventory (auto stock increase on purchase)
Role access: The Purchases module is accessible to Admin and Production roles only.
Viewing Purchase History
When you navigate to Purchases in the sidebar, you will see a table of all recorded purchases.
DataTable Features
The purchase history table includes all standard DataTable capabilities:
Sorting
- Click any column header (e.g., Date, Supplier, Product, Quantity, Total Cost) to sort.
- Click the same header again to reverse the sort order.
- The current sort column and direction are indicated by an arrow.
Searching
- Use the SearchBar at the top of the purchases table.
- Type a search term — you can search by supplier name, product name, or purchase date.
- The table updates in real time as you type.
Pagination
- Use the pagination controls at the bottom of the table to navigate between pages.
- Adjust the rows per page to display more or fewer records at once.
Recording a New Purchase
Step-by-Step Instructions
- Navigate to Purchases in the sidebar.
- Click the + New Purchase button (top-right of the purchases table).
- A purchase entry form will appear. Fill in the following fields:
Step 1: Select a Supplier
- Click the Supplier dropdown.
- Select an existing supplier from the list.
- If the supplier is new, click + Add New Supplier (or the equivalent option in the dropdown).
- Fill in the new supplier details:
| Field | Description | Required |
|---|---|---|
| Company Name | The supplier's business name | Yes |
| Contact Person | Name of your primary contact | Yes |
| Phone | Supplier's phone number | Yes |
| Supplier's email address | No | |
| Address | Street address | No |
| City | City | No |
| State | State or region | No |
- Click Save to create the supplier and select them for this purchase.
Step 2: Enter Purchase Details
| Field | Description |
|---|---|
| Purchase Date | The date the purchase was made (defaults to today) |
| Product | Select the product being purchased from the dropdown |
| Quantity | The number of units purchased |
| Unit Cost | The cost per unit from the supplier |
| Notes | Optional — any additional details about the purchase |
Step 3: Enter Line Items
- Select the Product from the product dropdown. This lists all active products in your inventory.
- Enter the Quantity purchased (e.g., 200 for 200 litres).
- Enter the Unit Cost — the price per unit charged by the supplier.
Step 4: Review the Auto-Calculated Total
- The Total Cost is calculated automatically: Quantity × Unit Cost.
- Verify the total matches your invoice or receipt from the supplier.
Step 5: Add Notes (Optional)
- Add any relevant notes such as invoice reference numbers, delivery details, or special instructions.
Step 6: Save the Purchase
- Click the Save button.
- The purchase is recorded, and your inventory stock is automatically increased by the purchase quantity.
Important: Once saved, the purchase quantity is added to the product's current stock in the Inventory module. No manual stock adjustment is needed.
Editing a Purchase Record
- Navigate to Purchases in the sidebar.
- Locate the purchase record you want to edit using search or scrolling.
- Click the Edit icon (pencil) in the Actions column.
- Modify the fields as needed:
- Changing the Quantity or Product will trigger a stock re-adjustment.
- Changing the Unit Cost will update the total cost.
- Click Save to apply changes.
Note: Be cautious when editing quantity or product fields — the system will automatically adjust inventory accordingly.
Deleting a Purchase
- Navigate to Purchases in the sidebar.
- Locate the purchase record you want to delete.
- Click the Delete icon (trash can) in the Actions column.
- A ConfirmDialog will appear.
- Click Confirm to proceed.
Important: When a purchase is deleted, the system automatically adjusts the stock back — the purchase quantity is subtracted from the product's current stock. This ensures inventory accuracy.
Supplier Management
Suppliers are shared entities across the system. You can manage suppliers through:
- The Purchases module — when creating or editing a purchase.
- The Customers & Suppliers section — accessible from the navigation.
Viewing Suppliers
Supplier records include:
| Field | Description |
|---|---|
| Company Name | The supplier's business name |
| Contact Person | Primary contact |
| Phone | Phone number |
| Email address | |
| Address | Street address, city, state |
| Created Date | When the supplier was added to the system |
Creating a New Supplier
- Navigate to the supplier section (or use the "+ Add New Supplier" option when creating a purchase).
- Fill in the required fields: Company Name, Contact Person, Phone.
- Optionally fill in Email, Address, City, and State.
- Click Save.
Understanding Purchase Impact on Inventory
When a purchase is recorded, the following happens automatically:
- Stock increases: The product's current stock quantity is increased by the purchase quantity.
- Stock value updates: The product's total stock value is recalculated.
- Audit log entry: The purchase action is recorded in the system audit log.
- Dashboard updates: Revenue, stock, and production metrics on the Dashboard reflect the new data.
This automatic linkage ensures your inventory is always in sync with your purchasing activity, eliminating the need for manual stock entries.
Tracking Purchase History by Supplier
To view all purchases from a specific supplier:
- Navigate to Purchases in the sidebar.
- Use the SearchBar and type the supplier name.
- The table will filter to show only purchases from that supplier.
- Sort by Date to see the chronological purchase history.
This is useful for:
- Reviewing pricing trends over time
- Verifying delivery records
- Preparing for supplier negotiations
Using Purchases for Cost Analysis
Purchase data feeds into several analytical functions:
- Unit Cost Tracking: Monitor how supplier prices change over time for the same product.
- Total Spend Analysis: Export purchase data to CSV and analyze total spending by supplier, product, or time period.
- Production Costing: Production costs in the Production module reference purchase costs for raw materials.
- Margin Analysis: Compare purchase costs against selling prices to understand product margins.
CSV Export
You can export purchase data for external reporting:
- Navigate to Purchases in the sidebar.
- Optionally apply search or filters to narrow the data.
- Click the Export CSV button.
- A CSV file will be downloaded containing all visible purchase records, including columns for date, supplier, product, quantity, unit cost, total cost, and notes.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Cmd + N / Ctrl + N | Create a new purchase (when on the Purchases page) |
| Escape | Close the new purchase form or any open modal |
Role Access Summary
| Role | View Purchases | Create/Edit/Delete | Supplier Management |
|---|---|---|---|
| Admin | Full access | Full access | Full access |
| Production | Full access | Full access | Full access |
| Sales | No access | No access | No access |
| Accountant | No access | No access | No access |
Troubleshooting
- Stock not updating after purchase: Ensure you clicked Save on the purchase form. Check the Inventory module to verify the stock change.
- Supplier not appearing in dropdown: The supplier may be inactive or not yet created. Use the "+ Add New Supplier" option.
- Cannot delete a purchase: Verify you have the correct role (Admin or Production).
- Incorrect total cost: Review the Quantity and Unit Cost fields. The Total Cost is auto-calculated as Quantity × Unit Cost.
- Duplicate purchase entry: Check the purchase history for duplicates. Delete any erroneous entries — stock will be automatically adjusted back.