opname barang: bug stok sisa 2

This commit is contained in:
2026-02-27 11:54:55 +07:00
parent 0d00b49de1
commit 9d9e9ca5c2
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -15,8 +15,7 @@ $(document).ready(function(){
loadSidebar();
IndexJS.loading();
setInterval(function(){
if ($('#ChartB').length) return false;
IndexJS.load_chart();
if ($('#ChartB').length > 0) IndexJS.load_chart();
}, 600000);
if ('undefined' !== typeof qz) launchQZ();
});
+1 -1
View File
@@ -72,7 +72,7 @@ if ($data == "auto-produk") {
if (count($arec) > 0) {
$db->Query("SELECT * FROM inv_stok WHERE CabID='".$id_cab."' AND InvID='".$arec['InvID']."' LIMIT 1");
if ($db->Next()) $arec['Stok_Sistem'] = $db->RowFloat("Stok", 2);
if ($db->Next()) $arec['Stok_Sistem'] = $db->RowFloat("Stok", 0);
}
$ajson['InvID'] = $arec['InvID'];
$ajson['Kode_Barang'] = $arec['Kode_SKU']." / ".$arec['Kode_Barcode'];