Commit 96579f3f authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/riri' into 'ENV-DEV'

Log Payload MB

See merge request !1790
parents d1228715 470a10a2
......@@ -528,8 +528,9 @@ export default class BalanceSheet extends Component {
"balance_sheet": data,
"status": "submitted"
}
console.log(payload);
api.create().validateSubmitReport(payload).then((response) => {
// console.log(response)
console.log(response)
if (response.data) {
if (response.data.status === "success") {
if (response.data.data.result) {
......
......@@ -2251,7 +2251,7 @@ export default class BudgetTahunan extends Component {
console.log(data);
// // // console.log(JSON.stringify(data));
api.create('UPLOAD').createSubmitReport(data).then(response => {
console.log(response);
if (response.data) {
if (response.ok) {
if (response.data.status === 'success') {
......
......@@ -514,8 +514,9 @@ export default class FixedAssetsMovement extends Component {
"fixed_asset_movement": data,
"status": "submitted"
}
console.log(payload);
api.create().validateSubmitReport(payload).then((response) => {
// // console.log(response)
console.log(response)
if (response.data.data.result) {
this.setState({ loading: false, buttonError: false, editable: false })
} else {
......
......@@ -532,7 +532,7 @@ export default class ProfitLoss extends Component {
}
// console.log(payload)
api.create().validateSubmitReport(payload).then((response) => {
// console.log(response)
console.log(response)
if (response.data.data.result) {
this.setState({ loading: false, buttonError: false, editable: false })
} else {
......
......@@ -738,9 +738,9 @@ export default class TaxPlanning extends Component {
"tax_planning": data,
"status": "submitted"
}
// console.log(JSON.stringify(payload));
console.log(JSON.stringify(payload));
api.create().validateSubmitReport(payload).then((response) => {
// console.log(response)
console.log(response)
if (response.data.data.result) {
this.setState({ loading: false, buttonError: false, editable: false, saveDraft: false })
// alert("Type Input Can't be Empty")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment