Update besar apk finance
This commit is contained in:
@@ -50,7 +50,8 @@
|
||||
<input type="text" id="telp" class="form-control">
|
||||
|
||||
<label class="mt-2">Email</label>
|
||||
<input type="email" id="email" class="form-control">
|
||||
<input type="email" id="email" class="form-control">
|
||||
<div class="row g-2 mt-1"><div class="col-md-6"><label class="form-label">Credit Limit</label><input type="number" id="credit_limit" class="form-control" min="0" step="0.01"></div><div class="col-md-6"><label class="form-label">Termin (hari)</label><input type="number" id="payment_term_days" class="form-control" min="0" value="30"></div></div><label class="form-label mt-2">NPWP/Tax Number</label><input type="text" id="tax_number" class="form-control"><div class="form-check mt-2"><input type="checkbox" id="is_credit_blocked" class="form-check-input"><label class="form-check-label" for="is_credit_blocked">Blokir transaksi kredit</label></div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -84,7 +85,8 @@ $(function(){
|
||||
$('#nama').val('');
|
||||
$('#alamat').val('');
|
||||
$('#telp').val('');
|
||||
$('#email').val('');
|
||||
$('#email').val('');
|
||||
$('#credit_limit').val(0); $('#payment_term_days').val(30); $('#tax_number').val(''); $('#is_credit_blocked').prop('checked',false);
|
||||
}
|
||||
|
||||
// ADD
|
||||
@@ -103,7 +105,8 @@ $(function(){
|
||||
$('#nama').val(res.nama);
|
||||
$('#alamat').val(res.alamat);
|
||||
$('#telp').val(res.telp);
|
||||
$('#email').val(res.email);
|
||||
$('#email').val(res.email);
|
||||
$('#credit_limit').val(res.credit_limit); $('#payment_term_days').val(res.payment_term_days); $('#tax_number').val(res.tax_number); $('#is_credit_blocked').prop('checked',res.is_credit_blocked==1);
|
||||
|
||||
action = 'edit';
|
||||
$('#modalCustomer').modal('show');
|
||||
@@ -118,7 +121,7 @@ $(function(){
|
||||
nama: $('#nama').val(),
|
||||
alamat: $('#alamat').val(),
|
||||
telp: $('#telp').val(),
|
||||
email: $('#email').val()
|
||||
email: $('#email').val(), credit_limit: $('#credit_limit').val(), payment_term_days: $('#payment_term_days').val(), tax_number: $('#tax_number').val(), is_credit_blocked: $('#is_credit_blocked').is(':checked') ? 1 : 0
|
||||
};
|
||||
|
||||
if(!data.nama){
|
||||
@@ -162,4 +165,4 @@ $(function(){
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user