Commit 2a6c87d6 by Azhan Hannan

remove 0 in timesheet viewer

parent 014ea218
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeColumnTypeInTimesheetDtlTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('timesheet_dtl', function (Blueprint $table) {
$table->decimal('td_hours', 10, 2)->unsigned()->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('timesheet_dtl', function (Blueprint $table) {
//
});
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeColumnTypeInTimesheetMasterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('timesheet_master', function (Blueprint $table) {
$table->decimal('tm_chargeable_hrs', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_chargeable_days', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_overhead_hrs', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_overhead_days', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_overtime_hrs', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_total_hours', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_total_days', 10, 2)->unsigned()->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('timesheet_master', function (Blueprint $table) {
//
});
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeColumnTypeInTimesheetPrjTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('timesheet_prj', function (Blueprint $table) {
$table->decimal('tp_hours', 10, 2)->unsigned()->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('timesheet_prj', function (Blueprint $table) {
//
});
}
}
......@@ -269,7 +269,7 @@
@if($valoverheadhour)
<td style="width: 4%;">{{ data_get($valoverheadhour,'td_hours') }}</td>
@else
<td style="width: 4%;">0</td>
<td style="width: 4%;"></td>
@endif
@endfor
......@@ -294,7 +294,7 @@
@if($valoverheadhour)
<td style="width: 4%;">{{ data_get($valoverheadhour,'td_hours') }}</td>
@else
<td style="width: 4%;">0</td>
<td style="width: 4%;"></td>
@endif
@endfor
......
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