mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
feat(FE): Closing Finance and adjust reports expense filter request
This commit is contained in:
@@ -0,0 +1,185 @@
|
||||
/**
|
||||
* Dummy data for ClosingFinance
|
||||
* Generated from: closing_keuangan.json
|
||||
*
|
||||
* This file is auto-generated. Do not edit manually.
|
||||
*/
|
||||
|
||||
import { ClosingFinance } from '../../types/api/closing';
|
||||
import { BaseApiResponse } from '@/types/api/api-general';
|
||||
|
||||
const DUMMY_DATA: ClosingFinance = {
|
||||
project_flock_id: 1,
|
||||
period: 1,
|
||||
project_type: 'LAYING',
|
||||
volume_base: {
|
||||
total_birds: 254435,
|
||||
total_weight_kg: 499961,
|
||||
},
|
||||
hpp_purchases: {
|
||||
title: 'Pembelian HPP Budgeting dan HPP Realisasi',
|
||||
hpp: [
|
||||
{
|
||||
group_name: 'hpp dan pengeluaran',
|
||||
data: [
|
||||
{
|
||||
type: 'Pembelian PULLET LAYER',
|
||||
budgeting: {
|
||||
rp_per_bird: 7458.82,
|
||||
rp_per_kg: 3795.866,
|
||||
amount: 1897784868,
|
||||
},
|
||||
realization: {
|
||||
rp_per_bird: 7292.414,
|
||||
rp_per_kg: 3711.18,
|
||||
amount: 1855445430,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Pembelian OVK',
|
||||
budgeting: {
|
||||
rp_per_bird: 385.681,
|
||||
rp_per_kg: 196.277,
|
||||
amount: 98130789,
|
||||
},
|
||||
realization: {
|
||||
rp_per_bird: 424.097,
|
||||
rp_per_kg: 215.827,
|
||||
amount: 107905006,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Pembelian Pakan',
|
||||
budgeting: {
|
||||
rp_per_bird: 23002.545,
|
||||
rp_per_kg: 11706.218,
|
||||
amount: 5852652652,
|
||||
},
|
||||
realization: {
|
||||
rp_per_bird: 25193.973,
|
||||
rp_per_kg: 12821.457,
|
||||
amount: 6410228456,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
group_name: 'hpp dan bahan baku',
|
||||
data: [
|
||||
{
|
||||
type: 'Pengeluaran Overhead',
|
||||
budgeting: {
|
||||
rp_per_bird: 6165.894,
|
||||
rp_per_kg: 3137.883,
|
||||
amount: 1568819297,
|
||||
},
|
||||
realization: {
|
||||
rp_per_bird: 5975.831,
|
||||
rp_per_kg: 3041.158,
|
||||
amount: 1520460611,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Beban Ekspedisi',
|
||||
budgeting: {
|
||||
rp_per_bird: 304.218,
|
||||
rp_per_kg: 154.819,
|
||||
amount: 77403605,
|
||||
},
|
||||
realization: {
|
||||
rp_per_bird: 237.466,
|
||||
rp_per_kg: 120.849,
|
||||
amount: 60419779,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
summary_hpp: {
|
||||
label: 'HPP',
|
||||
budgeting: {
|
||||
rp_per_bird: 37317.158,
|
||||
rp_per_kg: 18991.064,
|
||||
amount: 9494791211,
|
||||
},
|
||||
realization: {
|
||||
rp_per_bird: 39123.781,
|
||||
rp_per_kg: 19910.472,
|
||||
amount: 9954459282,
|
||||
},
|
||||
},
|
||||
},
|
||||
profit_loss: {
|
||||
title: 'Laba Rugi Perusahaan',
|
||||
data: {
|
||||
penjualan: [
|
||||
{
|
||||
type: 'Penjualan Telur dan Ayam Afkir',
|
||||
rp_per_bird: 37551.535,
|
||||
rp_per_kg: 19110.34,
|
||||
amount: 9554424729,
|
||||
},
|
||||
],
|
||||
pembelian: [
|
||||
{
|
||||
type: 'Pembelian Sapronak Supplier',
|
||||
rp_per_bird: 27629.158,
|
||||
rp_per_kg: 14060.746,
|
||||
amount: 7029824870,
|
||||
},
|
||||
{
|
||||
type: 'Pengeluaran Overhead',
|
||||
rp_per_bird: 5975.831,
|
||||
rp_per_kg: 3041.158,
|
||||
amount: 1520460611,
|
||||
},
|
||||
{
|
||||
type: 'Beban Ekspedisi',
|
||||
rp_per_bird: 237.466,
|
||||
rp_per_kg: 120.849,
|
||||
amount: 60419779,
|
||||
},
|
||||
],
|
||||
summary: {
|
||||
gross_profit: {
|
||||
label: 'LABA RUGI BRUTTO',
|
||||
rp_per_bird: 9922.376,
|
||||
rp_per_kg: 5049.594,
|
||||
amount: 2524599859,
|
||||
},
|
||||
sub_total: {
|
||||
label: 'SUB TOTAL',
|
||||
rp_per_bird: 3709.079,
|
||||
rp_per_kg: 1887.586,
|
||||
amount: 943719469,
|
||||
},
|
||||
net_profit: {
|
||||
label: 'LABA RUGI NETTO',
|
||||
rp_per_bird: 3709.079,
|
||||
rp_per_kg: 1887.586,
|
||||
amount: 943719469,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Get dummy ClosingFinance data
|
||||
* @param id - Optional ID parameter
|
||||
* @returns Promise with BaseApiResponse containing ClosingFinance
|
||||
*/
|
||||
export async function dummyGetOneClosingFinance(
|
||||
id?: number
|
||||
): Promise<BaseApiResponse<ClosingFinance>> {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
code: 200,
|
||||
status: 'success',
|
||||
message: 'Data retrieved successfully',
|
||||
data: DUMMY_DATA,
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
@@ -406,7 +406,6 @@ export const dummyReportExpenses: ReportExpense[] = [
|
||||
supplier: dummySuppliers[0],
|
||||
realization_date: today,
|
||||
transaction_date: yesterday,
|
||||
location: dummyLocations[0],
|
||||
pengajuan: dummyPengajuans[0],
|
||||
realisasi: dummyRealisasis[0],
|
||||
kandang: dummyKandangs[0],
|
||||
@@ -431,7 +430,6 @@ export const dummyReportExpenses: ReportExpense[] = [
|
||||
supplier: dummySuppliers[0],
|
||||
realization_date: today,
|
||||
transaction_date: yesterday,
|
||||
location: dummyLocations[1],
|
||||
pengajuan: dummyPengajuans[1],
|
||||
realisasi: dummyRealisasis[1],
|
||||
kandang: dummyKandangs[1],
|
||||
@@ -456,7 +454,6 @@ export const dummyReportExpenses: ReportExpense[] = [
|
||||
supplier: dummySuppliers[1],
|
||||
realization_date: lastWeek,
|
||||
transaction_date: lastWeek,
|
||||
location: dummyLocations[2],
|
||||
pengajuan: dummyPengajuans[2],
|
||||
realisasi: dummyRealisasis[2],
|
||||
kandang: dummyKandangs[2],
|
||||
@@ -481,7 +478,6 @@ export const dummyReportExpenses: ReportExpense[] = [
|
||||
supplier: dummySuppliers[2],
|
||||
realization_date: today,
|
||||
transaction_date: yesterday,
|
||||
location: dummyLocations[0],
|
||||
pengajuan: dummyPengajuans[3],
|
||||
realisasi: dummyRealisasis[3],
|
||||
kandang: dummyKandangs[0],
|
||||
@@ -506,7 +502,6 @@ export const dummyReportExpenses: ReportExpense[] = [
|
||||
supplier: dummySuppliers[1],
|
||||
realization_date: yesterday,
|
||||
transaction_date: lastWeek,
|
||||
location: dummyLocations[1],
|
||||
pengajuan: dummyPengajuans[4],
|
||||
realisasi: dummyRealisasis[4],
|
||||
kandang: dummyKandangs[1],
|
||||
@@ -531,7 +526,6 @@ export const dummyReportExpenses: ReportExpense[] = [
|
||||
supplier: dummySuppliers[0],
|
||||
realization_date: lastMonth,
|
||||
transaction_date: lastMonth,
|
||||
location: dummyLocations[2],
|
||||
pengajuan: {
|
||||
id: 6,
|
||||
expense_id: 6,
|
||||
|
||||
Reference in New Issue
Block a user