update perbaikan pos, return, dan report profit nlost
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 4m17s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 22:19:01 +07:00
parent 1dfc06635d
commit 2fabdf8fc9
48 changed files with 1700 additions and 3030 deletions

View File

@@ -65,11 +65,15 @@ $(document).on('click', '.sub-btn', function(e) {
// Update the subtotal for each row based on the return quantity
function updateSubTotal(row) {
let priceText = row.find(".price").text();
let price = getNumericValue(String(priceText || ""))
|| getNumericValue(String(row.data("discounted_price_per_unit") || "0"));
let price = getNumericValue(String(priceText || "0"));
let vatText = row.find(".vat_value").text();
let vatAmount = getNumericValue(String(vatText || "0"));
let inclusivePrice = price + vatAmount;
let quantity = getNumericValue(String(row.find(".return-qty").val() || "0"));
let subTotal = price * quantity;
let subTotal = inclusivePrice * quantity;
row.find(".subtotal").text(currencyFormat(subTotal));
updateTotalAmount();

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 KiB