accounting workflows

This commit is contained in:
Thanakorn S
2026-05-20 10:17:02 +07:00
parent 04a683bd02
commit 7396db6ffc
199 changed files with 23539 additions and 5345 deletions
+3 -3
View File
@@ -294,7 +294,7 @@
<td class="py-3">${item.lot_number}</td>
<td class="py-3">${item.expiry_date || '<span class="text-muted">—</span>'}</td>
<td class="py-3">${days_lbl}</td>
<td class="py-3">${Number(item.balance).toLocaleString()}</td>
<td class="py-3">${format_number(item.balance)}</td>
<td class="py-3">${item.is_active == 1
? '<span class="badge bg-success">Active</span>'
: '<span class="badge bg-secondary">Inactive</span>'}</td>
@@ -332,8 +332,8 @@
<td class="py-3">${type_badge[row.type] || row.type}</td>
<td class="py-3">${row.warehouse_name}</td>
<td class="py-3">${format_location(row)}</td>
<td class="py-3 text-success">${parseFloat(row.stock_in) > 0 ? '+' + Number(row.stock_in).toLocaleString() : '<span class="text-muted">—</span>'}</td>
<td class="py-3 text-danger">${parseFloat(row.stock_out) > 0 ? '-' + Number(row.stock_out).toLocaleString() : '<span class="text-muted">—</span>'}</td>
<td class="py-3 text-success">${parseFloat(row.stock_in) > 0 ? '+' + format_number(row.stock_in) : '<span class="text-muted">—</span>'}</td>
<td class="py-3 text-danger">${parseFloat(row.stock_out) > 0 ? '-' + format_number(row.stock_out) : '<span class="text-muted">—</span>'}</td>
<td class="py-3">${row.serial_number || '<span class="text-muted">—</span>'}</td>
</tr>`;
});