Introduction
Extension Name: POS Extension
Released on: 2024-06-09T07:59:00Z
Last Updated on: 2024-06-12T11:05:00Z
Latest Version: 2.0
Description:
POS Extension is an advanced extension for managing a Point of Sale (POS) system within your AI2 applications. It is designed to handle inventory management, sales processing, and reporting seamlessly, providing a complete solution for your retail or service-based application needs.
Events:
POS Extension includes various events to notify your application when specific actions occur:
- InsufficientStock: Triggered when there is not enough stock for a requested product.
- InventoryCleared: Triggered when the inventory is successfully cleared.
- ProductDeleted: Triggered when a product is deleted from the inventory.
- ProductNotFound: Triggered when a specified product is not found in the inventory.
- ProductUpdated: Triggered when a product is updated.
- SaleProcessed: Triggered when a sale is successfully processed.
- SalesDataCleared: Triggered when the sales data is successfully cleared.
Blocks
POS Extension provides a comprehensive set of blocks to manage your POS system effectively:
- AddProduct: Adds a new product to the inventory with specified name, price, and quantity.
- ClearInventory: Clears all products from the inventory.
- ClearSalesData: Clears all sales data.
- DeleteProduct: Deletes a specified product from the inventory.
- GenerateReceipt: Generates a receipt for a product based on name and quantity.
- GenerateSalesReport: Generates a sales report.
- GetAllProducts: Retrieves all products in the inventory.
- GetAllSales: Retrieves all sales data.
- GetProductDetails: Retrieves details of a specified product.
- ProcessOrder: Processes an order based on the provided order details.
- SearchProductsByPriceRange: Searches for products within a specified price range.
- UpdateProduct: Updates the details of an existing product.
Features
- Complete Inventory Management: Add, update, delete, and clear products with ease.
- Sales Processing: Generate receipts and process orders seamlessly.
- Reporting: Generate detailed sales reports.
- Event Handling: Handle various events to keep your application responsive and user-friendly.
- Search Functionality: Search products by price range to find what you need quickly.
- Data Management: Clear inventory and sales data when necessary.
Block Usage
Example 1: Adding a Product
- AddProduct Block: Use the “AddProduct” block to add a new product by specifying the name, price, and quantity.
- Update Product
- Example Basic Usage
Changelog V2:
Blocks Updated:
Blocks Usage:
productName | String | The name of the product for which to generate a receipt. |
---|---|---|
quantity | int | The quantity of the product sold. |
format | String | The format of the receipt (e.g., csv, excel). |
filePath | String | The directory path where the receipt file will be saved. |
Libraries:
Maven Repository: org.apache.poi » poi » 5.2.5 (mvnrepository.com)
Maven Repository: org.apache.poi » poi-ooxml » 5.2.5 (mvnrepository.com)
Download
Download POS Extension today and transform your AI2 application into a fully functional POS system.
Aix:
POSExtension V1.aix (11.4 KB)
V2
POSExtension V2.aix (14.7 KB)
Aia
POS.aia (127.3 KB)