generic API response + ICS: warehouse_balance md_rack update

This commit is contained in:
Thanakorn S
2026-04-23 16:06:19 +07:00
parent ed23c269ea
commit a75e180686
25 changed files with 934 additions and 342 deletions
+10 -6
View File
@@ -150,7 +150,7 @@
<th>Category</th>
<th>Slug</th>
<th>Description</th>
<th>Products</th>
<th style="text-align: right;">Product Count</th>
<th>Status</th>
<th>Actions</th>
</tr>
@@ -190,11 +190,12 @@
<table class="table table-hover mb-0 table-centered" id="product">
<thead class="table-secondary border-light">
<tr>
<th width="75px"></th>
<th>Product</th>
<th>SKU</th>
<th>Current Stock</th>
<th>Min Stock</th>
<th>Reorder Point</th>
<th style="text-align: right;">Current Stock</th>
<th style="text-align: right;">Min Stock</th>
<th style="text-align: right;">Reorder Point</th>
<th>Status</th>
<th>Action</th>
</tr>
@@ -309,7 +310,7 @@
<td class="py-3">${item['category']}</td>
<td class="py-3">${item['slug']}</td>
<td class="py-3">${item['description']}</td>
<td class="py-3">${item['product_count']}</td>
<td class="py-3" style="text-align: right;">${item['product_count']}</td>
<td class="py-3">
${(item['status']==1)?'<span class="badge bg-success">Active</span>':'<span class="badge bg-secondary">Inactive</span>'}
</td>
@@ -367,7 +368,10 @@
var body = ``;
$.each(page_data, function(key, item) {
body += `<tr>
body += `<tr height="50px">
<td class="py-3">
<img src="<?php echo $server_url?>uploads/product/${item['product_image']}" alt="${item['product_name']}" class="img-fluid" style="height: 25px;">
</td>
<td class="py-3">${item['product_name']}</td>
<td class="py-3">${item['sku']}</td>
<td class="py-3" style='text-align: right;'>${format_number(item['product_balance'],4)}</td>