Skip to content

Commit cc55963

Browse files
AJAX Inventory POST
1 parent e578be9 commit cc55963

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

htdocs/product/inventory/inventory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,10 +1323,11 @@ function barcodeserialforproduct(tabproduct,index,element,barcodeproductqty,sele
13231323
var actionURL = "'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&page='.($page).$paramwithsearch.'";
13241324
$.ajax({
13251325
url: actionURL,
1326+
type: "POST",
13261327
data: form.serialize(),
13271328
cache: false,
13281329
success: function(result){
1329-
window.location.href = "'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&page='.($page - 1).$paramwithsearch.'&action=record";
1330+
window.location.href = "'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&page='.($page).$paramwithsearch.'&action=record";
13301331
}});
13311332
return false;
13321333
});

0 commit comments

Comments
 (0)