workPro Documentation
✅ Item Popup now shows quantities broken down by EACH Distribution Center (DC)
Instead of just showing total quantities, users can now see:
public/all-work.php - Updated showItemInfo() function to use new APIpublic/api/item-info-drilldown.php - New API for DC-wise quantities{
"item": { itemCode, itemName, uom, imagePath, ... },
"dcWiseQuantities": [
{ dcName: "DC1", boqQuantity: 100, doneQuantity: 45 },
{ dcName: "DC2", boqQuantity: 80, doneQuantity: 65 }
],
"summary": {
totalBoqQuantity: 180,
totalDoneQuantity: 110,
completionPercentage: 61.11
}
}
workpro.item tabledcId with SUM(totalQty) for BOQ Qty| Element | Color | Hex |
|---|---|---|
| Item Code / DC Headers | Cyan | #0dcaf0 |
| BOQ Quantities | Gold | #ffc107 |
| Done Quantities | Green | #28a745 |
| Completion % | Blue | #17a2b8 |
| Table Background | Dark | #0d1117 |
┌────────────────────────────────────────────────────────┐
│ Item Code: IGL-001 Item ID: 5 UOM: Meter │
├────────────────────────────────────────────────────────┤
│ Item Name: IGL Gas Distribution Pipe │
├────────────────────────────────────────────────────────┤
│ DC-wise Quantities │
│ ┌──────────┬──────────┬──────────┬─────────┐ │
│ │ DC Name │ BOQ Qty │ Done Qty │ % │ │
│ ├──────────┼──────────┼──────────┼─────────┤ │
│ │ New Delhi│ 1000 │ 800 │ 80.0% │ │
│ │ Mumbai │ 800 │ 500 │ 62.5% │ │
│ │ Bangalore│ 1200 │ 0 │ 0% │ │
│ └──────────┴──────────┴──────────┴─────────┘ │
│ │
│ TOTAL: 3000 ordered | 1300 completed | 43.3% done │
└────────────────────────────────────────────────────────┘
item-info.php API still works if neededshowItemInfo() function still accepts dcId parameter (for future use)Refer to:
DCWISE_ITEM_DRILLDOWN_SUMMARY.md - Detailed technical documentationDCWISE_VISUAL_REFERENCE.md - Visual layouts and diagrams