Update besar apk finance
This commit is contained in:
@@ -726,6 +726,7 @@ $('#s_qty').on('keyup change',function(){
|
||||
});
|
||||
|
||||
// ================= SAVE FROM STOCK =================
|
||||
let assetStockRequestKey=(window.crypto&&crypto.randomUUID)?crypto.randomUUID():(Date.now().toString(36)+'-'+Math.random().toString(36).slice(2));
|
||||
$('#btnSaveStock').click(function(){
|
||||
let btn = $(this);
|
||||
let trackingType = ($('#s_item option:selected').data('type') || '').toString().trim().toUpperCase();
|
||||
@@ -755,6 +756,7 @@ $('#btnSaveStock').click(function(){
|
||||
account_asset: $('#s_account_asset').val(),
|
||||
s_keterangan: $('#s_keterangan').val(),
|
||||
barcode_id: $('#barcode_select').val(),
|
||||
idempotency_key: assetStockRequestKey,
|
||||
qty: qty
|
||||
};
|
||||
|
||||
@@ -777,6 +779,7 @@ $('#btnSaveStock').click(function(){
|
||||
|
||||
$.post("<?= base_url('asset/save_from_stock'); ?>",data,function(res){
|
||||
if(res.status){
|
||||
assetStockRequestKey=(window.crypto&&crypto.randomUUID)?crypto.randomUUID():(Date.now().toString(36)+'-'+Math.random().toString(36).slice(2));
|
||||
$('#modalAssetStock').modal('hide');
|
||||
table.ajax.reload(null,false);
|
||||
Swal.fire({
|
||||
@@ -796,4 +799,4 @@ $('#btnSaveStock').click(function(){
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user