$item["customer_id"] = sprintf("%05d", $item["customer_id"]);
        }
        $month = (int) substr($item['jp_yyyymmdd'], 4, 2);
        $day = (int) substr($item['jp_yyyymmdd'], 6, 2);
        $item['jp_date_m'] = $month;
        $item['jp_date_d'] = $month;
        array_push($data, $item);
        if ($item['jp_view_gubun'] == 1 || $item['jp_view_gubun'] == 2) {
            $item['jp_id'] = '-1';
            $item['gycode'] = 101;
            if ($item['debit'] != 0) {
                $item['credit'] = $item['debit'];
                $item['debit'] = 0;
            } else {
                $item['debit'] = $item['credit'];
                $item['credit'] = 0;
            }
            array_push($data, $item);
        }
    }
    $result['CODE'] = '00';
    $result['DATA'] = $data;
    echo json_encode($result);
    $gWork->destoryWork();
} catch (Exception $e) {
    $gWork->destoryWork();
    $err = $e->getMessage();
    Util::serverLog($e);
    echo "{ CODE: '99' , DATA : '{$err}'}";
    exit;
}