SUPPLIER
🏭 Technical Specification: Supplier Setup
📋 Feature Overview
🛠️ Technical Implementation
A. Permissions & Access Control
Note: Access is controlled via
PermissionGuard and template checks.| Scope | Permission Code | Description & Page Usage |
|---|---|---|
| Menu Visibility | SUPPLIER.MENU |
Sidebar menu visibility.
|
| Page Routing | SUPPLIER.LISTING |
Access to listing route.\listing-supplier-profile |
| Page Routing | SUPPLIER.VIEW |
Access to add route.
|
| Create Action | SUPPLIER.CREATE |
Visibility of the + Add button.\listing-supplier-profile |
| View Access | SUPPLIER.VIEW |
Controls visibility of action buttons (Edit).\listing-supplier-profile |
| Delete Action | SUPPLIER.DELETE |
Visibility of the Delete 🗑️ icon.\listing-supplier-profile |
| Update Action | SUPPLIER.UPDATE |
Ability to save changes on Edit screen.\add-supplier-profile-manage |
B. API Interaction
Base URL:
${environment.baseApiUrl}1. Listing Supplier Profile
\listing-supplier-profile/suppliers/getQuery
POSTFilter:
supplierCode, supplierName, registrationNumber, isDeleted=0/supplier/delete
POSTPurpose: Delete Supplier
2. Add Supplier Profile Manage
\add-supplier-profile-manage/countries/getQuery
POSTPurpose: Populate
countryDataSource/states/getQuery
POSTFilter:
countryId/districts/getQuery
POSTFilter:
stateId/suppliers/getQuery
POSTFilter:
id (Fetch specific record)/suppliers/getQuery
POSTFilter:
supplierCode (Uniqueness Check)/suppliers/mdCreate
POSTPurpose: Master-Detail Create
/suppliers/mdUpdate
POSTPurpose: Master-Detail Update