From 208c3156851f0ffba9a4ed23543a69a22ced221b Mon Sep 17 00:00:00 2001
From: elvanowen <vanzz_95@hotmail.com>
Date: Mon, 16 May 2016 17:48:14 +0700
Subject: [PATCH] Everything

---
 CoefficientEditor/index.php | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/CoefficientEditor/index.php b/CoefficientEditor/index.php
index 808e8db..46c5fa9 100644
--- a/CoefficientEditor/index.php
+++ b/CoefficientEditor/index.php
@@ -73,6 +73,8 @@ $app->put('/changeCoefficient/gajiPokok', function() use ($app) {
     
     $coefficient = $app->request->getJsonRawBody();
 
+    $temp = array();
+
     foreach ($coefficient as $coeff) {
         $phql = "UPDATE KoefisienGolongan SET gaji_pokok = :gaji_pokok: WHERE golongan = :golongan: AND tahun = :tahun: AND subgolongan = :subgolongan:";
         $status = $app->modelsManager->executeQuery($phql, array(
@@ -82,6 +84,13 @@ $app->put('/changeCoefficient/gajiPokok', function() use ($app) {
             'gaji_pokok' => $coefficient->koefisien
         ));
 
+        $temp[] = array(
+            'golongan' => $coefficient->golongan,
+            'tahun' => $coefficient->tahun,
+            'subgolongan' => $coefficient->subgolongan,
+            'gaji_pokok' => $coefficient->koefisien
+        );
+
         $response = new Response();
 
         if ($status->success() != true) {
@@ -102,6 +111,8 @@ $app->put('/changeCoefficient/gajiPokok', function() use ($app) {
         }
     }
 
+    var_dump($temp);
+
     $response = new Response();
     $response->setJsonContent(
         array(
-- 
GitLab