Understanding Warehouses
FacturaScripts uses the Almacen model (EditAlmacen.php) for warehouse management. Each warehouse:- Maintains separate stock levels for products
- Tracks stock movements (purchases, sales, transfers)
- Monitors reserved, available, and pending stock
- Supports location-based inventory management
Creating a Warehouse
Enter Warehouse Details
Fill in the required information:
- Code (Código): Unique warehouse identifier
- Name (Nombre): Descriptive warehouse name
- Company: Associated company (if multi-company setup) (EditAlmacen.php:109)
Viewing Stock Levels
Once a warehouse is created, you can view and manage its stock:View Stock Information
For each product, you can see:
- Reference: Product code
- Description: Product name
- Quantity: Total physical stock (EditAlmacen.php:55)
- Available: Stock available for sale (EditAlmacen.php:56)
- Reserved: Stock allocated to pending orders (EditAlmacen.php:57)
- Pending Reception: Stock on purchase orders (EditAlmacen.php:58)
- Location: Storage location within warehouse
Understanding Stock Types
FacturaScripts tracks multiple stock quantities:Physical Quantity
Total stock in the warehouse. This is the actual count of items available.
Available Stock
Physical quantity minus reserved stock. This represents stock that can be sold or allocated.
Reserved Stock
Stock allocated to pending orders or deliveries that haven’t been completed yet.
Pending Reception
Stock on purchase orders that has been ordered but not yet received.
Minimum Stock
Threshold for reorder alerts. When available stock drops below this level, you receive warnings.
Maximum Stock
Upper limit for stock levels. Helps identify overstocking situations.
Filtering and Searching Stock
The stock view provides powerful filtering options (EditAlmacen.php:68):- By Product
- By Manufacturer
- By Family
- By Stock Level
Search stock by:
- Reference: Product code or barcode (EditAlmacen.php:53)
- Description: Product name (EditAlmacen.php:53)
- Location: Storage location within warehouse (EditAlmacen.php:53)
Stock Movements
Stock levels change automatically through various operations:Purchase Orders
When you receive products:
- Create or process a supplier delivery note
- Confirm the receipt
- Stock increases in the receiving warehouse
- “Pending reception” decreases
Sales Orders
When you sell products:
- Create a customer order
- Stock is reserved (reduces available quantity)
- When delivery note is created, stock reduces
- Available and physical quantities decrease
Direct Adjustments
For inventory corrections:
- Navigate to the product’s stock card
- Make a stock adjustment entry
- Specify reason (damage, loss, count correction)
- Stock updates immediately
Stock Sorting and Organization
Organize stock views for better management (EditAlmacen.php:54):Sort by Reference
Sort by Reference
View products in alphabetical order by product code. Useful for physical counting and location-based organization.
Sort by Quantity
Sort by Quantity
See products ordered by stock quantity (EditAlmacen.php:55). Helps identify:
- Highest volume items
- Fast-moving products
- Stock concentration
Sort by Available
Sort by Available
Order by available quantity (EditAlmacen.php:56). Highlights:
- Products with low availability
- Items at risk of stockout
- Reorder priorities
Sort by Reserved
Sort by Reserved
View by reserved quantity (EditAlmacen.php:57). Shows:
- High-demand products
- Pending order fulfillment
- Allocation priorities
Sort by Product Name
Sort by Product Name
Alphabetical by description (EditAlmacen.php:59). Useful for:
- Customer-facing reports
- Product catalog organization
- General browsing
Managing Stock Locations
Within each warehouse, you can organize products by location:Define Locations
Create a location naming scheme, such as:
- Aisle-Rack-Shelf (e.g., “A-12-3”)
- Zone-Row-Position (e.g., “Z1-R5-P8”)
- Bin numbers (e.g., “BIN-0042”)
Assign Products to Locations
In the stock view:
- Select a product
- Enter the storage location
- Save the update
Stock Alerts and Monitoring
- Low Stock Alerts
- Overstock Alerts
- Custom Monitoring
Monitor products below minimum levels:
- Go to warehouse stock view
- Select Under Minimums filter (EditAlmacen.php:78)
- Review the list of products needing reorder
- Create purchase orders for replenishment
Multi-Warehouse Management
When working with multiple warehouses:View Total Stock
View Total Stock
To see stock across all warehouses:
- Navigate to the product record
- View the stock summary tab
- See breakdown by warehouse
- Compare stock levels across locations
Transfer Between Warehouses
Transfer Between Warehouses
To move stock:
- Create a transfer document
- Select source warehouse
- Choose destination warehouse
- Add products and quantities
- Process the transfer to update both locations
Default Warehouse
Default Warehouse
Set a default warehouse for:
- New sales documents
- Quick order processing
- Default stock checking
Warehouse Permissions
Warehouse Permissions
Control user access to warehouses:
- Configure user roles
- Assign warehouse permissions
- Limit visibility and edit rights
- Audit stock changes by user
Stock Reports and Analysis
Stock Valuation
Generate reports showing:
- Total inventory value by warehouse
- Value by product family
- Cost vs. sale price analysis
- Inventory turnover rates
Movement History
Track stock movements:
- Purchases received
- Sales fulfilled
- Adjustments made
- Transfers completed
Reorder Reports
Identify reorder needs:
- Products below minimum
- Projected stockouts
- Recommended order quantities
- Supplier information
Dead Stock Analysis
Find slow-moving inventory:
- No movement in X days
- Excess stock situations
- Obsolete products
- Clearance candidates
Best Practices
Regular Stock Counts
Regular Stock Counts
Perform physical inventory counts:
- Daily: High-value or fast-moving items
- Weekly: Regular products in active areas
- Monthly: Full warehouse count
- Annually: Complete inventory audit
Set Appropriate Minimums
Set Appropriate Minimums
Configure minimum stock levels based on:
- Average daily sales
- Lead time from suppliers
- Safety stock buffer
- Seasonal demand patterns
Use Locations Consistently
Use Locations Consistently
Maintain location accuracy:
- Update locations when moving products
- Follow your naming scheme strictly
- Train staff on location codes
- Audit locations regularly
Monitor Reserved Stock
Monitor Reserved Stock
Keep track of reservations:
- Review old orders regularly
- Release reservations for cancelled orders
- Avoid over-committing stock
- Maintain buffer for new orders
Common Issues
Negative Stock
Negative Stock
If stock shows negative:
- Check recent sales and deliveries
- Verify if orders were processed correctly
- Review manual adjustments
- Correct the stock level with an adjustment
Stock Discrepancies
Stock Discrepancies
When physical count doesn’t match system:
- Recount the physical stock
- Check for unprocessed movements
- Review recent transactions
- Make adjustment entry with notes
- Investigate root cause
Missing Stock Records
Missing Stock Records
If a product shows no stock record:
- Verify product is active
- Check if product has been received
- Review warehouse assignments
- Create initial stock entry if needed
Related Topics
Creating Invoices
Learn how invoices affect stock levels
Inventory Features
Explore advanced inventory features
Reports
Generate stock and inventory reports
Configuration
Configure warehouse and stock settings

