Browse Source

trim material desc

pull/1/head
farhantock 11 months ago
parent
commit
f8f5873432
  1. 18
      edit-mode/function/expenseResource.js

18
edit-mode/function/expenseResource.js

@ -12,14 +12,14 @@ function resetFormAssignexpense() {
var rupiahExpense = document.getElementById('price-req-expense'); var rupiahExpense = document.getElementById('price-req-expense');
rupiahExpense.addEventListener('keyup', function (e) { rupiahExpense.addEventListener('keyup', function (e) {
rupiahExpense.value = formatRibuanInput(this.value); rupiahExpense.value = formatRibuanInput(this.value);
}); });
var qtyExpense = document.getElementById('qty-req-expense'); var qtyExpense = document.getElementById('qty-req-expense');
qtyExpense.addEventListener('keyup', function (e) { qtyExpense.addEventListener('keyup', function (e) {
qtyExpense.value = formatRibuanInput(this.value); qtyExpense.value = formatRibuanInput(this.value);
}); });
$(document).ready(function () { $(document).ready(function () {
var tableexpense = $("#table-expense").DataTable({ var tableexpense = $("#table-expense").DataTable({
@ -158,7 +158,7 @@ $(document).ready(function () {
let expense_id = null; let expense_id = null;
let payload = { let payload = {
description: desc_req_expense, description: desc_req_expense.trim(),
type: "expense", type: "expense",
fom_date: required_date, fom_date: required_date,
required_date: required_date, required_date: required_date,
@ -181,10 +181,10 @@ $(document).ready(function () {
let payloadAssign = { let payloadAssign = {
proyek_id: proyekId, proyek_id: proyekId,
activity_id: activityId, activity_id: activityId,
material_id : material_id , material_id: material_id,
qty_planning: qty_planning, qty_planning: qty_planning,
plan_date: plan_date, plan_date: plan_date,
type: "expense", type: "expense",
} }
$.ajax({ $.ajax({
data: JSON.stringify(payloadAssign), data: JSON.stringify(payloadAssign),

Loading…
Cancel
Save