Welcome to the Coding Round!
Demonstrate your coding skills by completing the task.
A technical assessment focused on backend logic, database operations, and dynamic frontend interactions using jQuery or JS.
Do not use any AI tools while working on this task. This includes VS Code AI extensions, browser AI features, or ChatGPT. The task must be completed entirely by you. You can use documents, StackOverflow, or similar resources.
Task Modules
Focus entirely on the Order creation logic. No CRUD for Customers or Products is required.
- Customer Dropdown: Select from available customers.
- Dynamic Rows: 'Add Product' button adds new line items.
- Line Item: Product Select, Quantity, Price (Auto-filled), Amount (Calc).
- Actions: Delete button per row.
- jQuery or JS Logic: Dynamic Grand Total calculation.
- Database: Save to
ordersandorder_items. - Listing View: List orders where each order is displayed in a separate table including all order items.
Advanced Order creation with on-the-fly data creation.
- Customer Dropdown: Select from the available customers.
- + Add Option: Provide an option to add a new customer.
- AJAX Binding: The newly added customer should be bound to the same field using AJAX.
- Dynamic Rows: 'Add Product' button adds new line items.
- + Add Option: Provide an option to add a new product.
- AJAX Binding: The newly added product should be bound to the same field using AJAX.
- Line Item: Product Select, Quantity, Price (Auto-filled), Amount (Calc).
- Actions: Delete button per row.
- jQuery or JS Logic: Dynamic Grand Total calculation.
- Database: Save to
ordersandorder_items. - Listing View: List orders where each order is displayed in a separate table including all order items.
API Endpoints
Use browser, Postman, or curl to test JSON responses.