update
parent
1b496f5794
commit
508f59a7c3
|
|
@ -189,7 +189,12 @@ class FormController implements HasMiddleware
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$form = ActivityForm::where('agency_id',$instansi)->first();
|
$form = ActivityForm::where('sector',$sector)
|
||||||
|
->where('form_code',$code)
|
||||||
|
->where('agency_id',$instansi)
|
||||||
|
->where('inventory_year',$inventoryYear)
|
||||||
|
->first();
|
||||||
|
|
||||||
// dd($form);
|
// dd($form);
|
||||||
if(!@$form){
|
if(!@$form){
|
||||||
$Saveform = new ActivityForm;
|
$Saveform = new ActivityForm;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@ class DashboardService
|
||||||
{
|
{
|
||||||
$gwpData = $this->getActiveGwpRecords()->keyBy('ghg_code');
|
$gwpData = $this->getActiveGwpRecords()->keyBy('ghg_code');
|
||||||
|
|
||||||
$years = activityYearRange($inventoryYear, false, 10);
|
// $years = activityYearRange($inventoryYear, false, 10);
|
||||||
|
$years = activityYearRange($inventoryYear, false, 1);
|
||||||
|
|
||||||
$crfData = ActivityCrf::with(['ws.form', 'sektor'])
|
$crfData = ActivityCrf::with(['ws.form', 'sektor'])
|
||||||
->where('inventory_year', $inventoryYear)
|
->where('inventory_year', $inventoryYear)
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,8 @@ class SigdCrudService
|
||||||
|
|
||||||
if ($form) {
|
if ($form) {
|
||||||
$query = ActivityFormDetail::where('form_id', $form->id)
|
$query = ActivityFormDetail::where('form_id', $form->id)
|
||||||
->where('activity_year', $activityYear)
|
// ->where('activity_year', $activityYear)
|
||||||
|
->where('activity_year', $inventoryYear)
|
||||||
->rowActive();
|
->rowActive();
|
||||||
|
|
||||||
if ($activityCodes !== null) {
|
if ($activityCodes !== null) {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -11,13 +11,13 @@
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="form-group d-flex justify-content-center align-items-center gap-1">
|
<div class="form-group d-flex justify-content-center align-items-center gap-1">
|
||||||
<div class="">
|
<div class="">
|
||||||
<label for="instansi">Instansi:</label>
|
<label for="instansi">Instansi: {{ $instansi }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select name="instansi" id="instansi" class="form-control">
|
<select name="instansi" id="instansi" class="form-control">
|
||||||
<option value="" selected>-- Pilih Instansi --</option>
|
<option value="" selected>-- Pilih Instansi --</option>
|
||||||
@if ($scope === \App\Enums\LingkupAksesData::ALL->value)
|
@if ($scope === \App\Enums\LingkupAksesData::ALL->value)
|
||||||
<option value="none" @if ($instansi === null || $instansi == 'none') selected @endif>DATA
|
<option value="none" @if ($instansi == 'none') selected @endif>DATA
|
||||||
KONSOLIDASI</option>
|
KONSOLIDASI</option>
|
||||||
@if ($agencies->isNotEmpty())
|
@if ($agencies->isNotEmpty())
|
||||||
<option value="all" @if ($instansi === 'all') selected @endif>SELURUH DATA DARI PRODUSEN</option>
|
<option value="all" @if ($instansi === 'all') selected @endif>SELURUH DATA DARI PRODUSEN</option>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue