chore(FE): delete dummy data

This commit is contained in:
randy-ar
2025-12-28 04:39:40 +07:00
parent 731bec5a94
commit 77b05c6440
8 changed files with 0 additions and 2232 deletions
File diff suppressed because it is too large Load Diff
-470
View File
@@ -1,470 +0,0 @@
[
{
"id": 9,
"payment_code": "PAY-OUT-SUPP-00-9",
"reference_number": "DO.MBU.496",
"transaction_type": "Penjualan",
"party": {
"id": 9268,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "038901000983305"
},
"payment_date": "07-Sep-2025",
"created_at": "25-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 27352139,
"income_amount": 0,
"nominal": 27352139,
"note": ""
},
{
"id": 8,
"payment_code": "PAY-OUT-SUPP-00-8",
"reference_number": "DO.MBU.534",
"transaction_type": "Penjualan",
"party": {
"id": 9805,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "123000888999"
},
"payment_date": "30-Aug-2025",
"created_at": "22-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 3,
"name": "Bank Mandiri",
"alias": "MANDIRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "123000888999"
},
"expense_amount": 70365908,
"income_amount": 0,
"nominal": 70365908,
"note": ""
},
{
"id": 7,
"payment_code": "PAY-OUT-CUST-00-7",
"reference_number": "DO.MBU.822",
"transaction_type": "Penjualan",
"party": {
"id": 1676,
"name": "ADIN ARDIAN",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "05-Aug-2025",
"created_at": "04-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 3,
"name": "Bank Mandiri",
"alias": "MANDIRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "123000888999"
},
"expense_amount": 57255311,
"income_amount": 0,
"nominal": 57255311,
"note": ""
},
{
"id": 6,
"payment_code": "PAY-OUT-SUPP-00-6",
"reference_number": "DO.MBU.900",
"transaction_type": "Penjualan",
"party": {
"id": 2615,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "0541348513"
},
"payment_date": "09-Aug-2025",
"created_at": "01-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 1,
"name": "Bank Central Asia",
"alias": "BCA",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "0541348513"
},
"expense_amount": 46143594,
"income_amount": 0,
"nominal": 46143594,
"note": ""
},
{
"id": 5,
"payment_code": "PAY-IN-CUST-00-5",
"reference_number": "DO.MBU.008",
"transaction_type": "Penjualan",
"party": {
"id": 5926,
"name": "AJRIL HAYAT, SE",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "07-Sep-2025",
"created_at": "15-Sep-2025",
"payment_method": "Transfer",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 0,
"income_amount": 57934816,
"nominal": 57934816,
"note": ""
},
{
"id": 4,
"payment_code": "PAY-OUT-CUST-00-4",
"reference_number": "DO.MBU.889",
"transaction_type": "Penjualan",
"party": {
"id": 105,
"name": "AMAT RAHMAT",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "01-Sep-2025",
"created_at": "08-Aug-2025",
"payment_method": "Cash",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 40208329,
"income_amount": 0,
"nominal": 40208329,
"note": ""
},
{
"id": 3,
"payment_code": "PAY-OUT-CUST-00-3",
"reference_number": "DO.MBU.574",
"transaction_type": "Penjualan",
"party": {
"id": 4789,
"name": "AJRIL HAYAT, SE",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "14-Sep-2025",
"created_at": "09-Aug-2025",
"payment_method": "Cash",
"bank": {
"id": 1,
"name": "Bank Central Asia",
"alias": "BCA",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "0541348513"
},
"expense_amount": 53206601,
"income_amount": 0,
"nominal": 53206601,
"note": ""
},
{
"id": 2,
"payment_code": "PAY-OUT-CUST-00-2",
"reference_number": "DO.MBU.581",
"transaction_type": "Penjualan",
"party": {
"id": 2834,
"name": "ADIN ARDIAN",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "28-Sep-2025",
"created_at": "24-Aug-2025",
"payment_method": "Cash",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 42584188,
"income_amount": 0,
"nominal": 42584188,
"note": ""
},
{
"id": 1,
"payment_code": "PAY-IN-SUPP-00-1",
"reference_number": "DO.MBU.498",
"transaction_type": "Penjualan",
"party": {
"id": 6937,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "038901000983305"
},
"payment_date": "15-Aug-2025",
"created_at": "05-Sep-2025",
"payment_method": "Transfer",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 0,
"income_amount": 73312519,
"nominal": 73312519,
"note": ""
},
{
"id": 9,
"payment_code": "PAY-OUT-SUPP-00-9",
"reference_number": "DO.MBU.496",
"transaction_type": "Penjualan",
"party": {
"id": 9268,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "038901000983305"
},
"payment_date": "07-Sep-2025",
"created_at": "25-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 27352139,
"income_amount": 0,
"nominal": 27352139,
"note": ""
},
{
"id": 8,
"payment_code": "PAY-OUT-SUPP-00-8",
"reference_number": "DO.MBU.534",
"transaction_type": "Penjualan",
"party": {
"id": 9805,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "123000888999"
},
"payment_date": "30-Aug-2025",
"created_at": "22-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 3,
"name": "Bank Mandiri",
"alias": "MANDIRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "123000888999"
},
"expense_amount": 70365908,
"income_amount": 0,
"nominal": 70365908,
"note": ""
},
{
"id": 7,
"payment_code": "PAY-OUT-CUST-00-7",
"reference_number": "DO.MBU.822",
"transaction_type": "Penjualan",
"party": {
"id": 1676,
"name": "ADIN ARDIAN",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "05-Aug-2025",
"created_at": "04-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 3,
"name": "Bank Mandiri",
"alias": "MANDIRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "123000888999"
},
"expense_amount": 57255311,
"income_amount": 0,
"nominal": 57255311,
"note": ""
},
{
"id": 6,
"payment_code": "PAY-OUT-SUPP-00-6",
"reference_number": "DO.MBU.900",
"transaction_type": "Penjualan",
"party": {
"id": 2615,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "0541348513"
},
"payment_date": "09-Aug-2025",
"created_at": "01-Aug-2025",
"payment_method": "Giro",
"bank": {
"id": 1,
"name": "Bank Central Asia",
"alias": "BCA",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "0541348513"
},
"expense_amount": 46143594,
"income_amount": 0,
"nominal": 46143594,
"note": ""
},
{
"id": 5,
"payment_code": "PAY-IN-CUST-00-5",
"reference_number": "DO.MBU.008",
"transaction_type": "Penjualan",
"party": {
"id": 5926,
"name": "AJRIL HAYAT, SE",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "07-Sep-2025",
"created_at": "15-Sep-2025",
"payment_method": "Transfer",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 0,
"income_amount": 57934816,
"nominal": 57934816,
"note": ""
},
{
"id": 4,
"payment_code": "PAY-OUT-CUST-00-4",
"reference_number": "DO.MBU.889",
"transaction_type": "Penjualan",
"party": {
"id": 105,
"name": "AMAT RAHMAT",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "01-Sep-2025",
"created_at": "08-Aug-2025",
"payment_method": "Cash",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 40208329,
"income_amount": 0,
"nominal": 40208329,
"note": ""
},
{
"id": 3,
"payment_code": "PAY-OUT-CUST-00-3",
"reference_number": "DO.MBU.574",
"transaction_type": "Penjualan",
"party": {
"id": 4789,
"name": "AJRIL HAYAT, SE",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "14-Sep-2025",
"created_at": "09-Aug-2025",
"payment_method": "Cash",
"bank": {
"id": 1,
"name": "Bank Central Asia",
"alias": "BCA",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "0541348513"
},
"expense_amount": 53206601,
"income_amount": 0,
"nominal": 53206601,
"note": ""
},
{
"id": 2,
"payment_code": "PAY-OUT-CUST-00-2",
"reference_number": "DO.MBU.581",
"transaction_type": "Penjualan",
"party": {
"id": 2834,
"name": "ADIN ARDIAN",
"type": "CUSTOMER",
"account_number": "038901000983305"
},
"payment_date": "28-Sep-2025",
"created_at": "24-Aug-2025",
"payment_method": "Cash",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 42584188,
"income_amount": 0,
"nominal": 42584188,
"note": ""
},
{
"id": 1,
"payment_code": "PAY-IN-SUPP-00-1",
"reference_number": "DO.MBU.498",
"transaction_type": "Penjualan",
"party": {
"id": 6937,
"name": "PT. PAKAN NUSANTARA JAYA",
"type": "SUPPLIER",
"account_number": "038901000983305"
},
"payment_date": "15-Aug-2025",
"created_at": "05-Sep-2025",
"payment_method": "Transfer",
"bank": {
"id": 2,
"name": "Bank Rakyat Indonesia",
"alias": "BRI",
"owner": "MITRA BERLIAN UNGGAS PT",
"account_number": "038901000983305"
},
"expense_amount": 0,
"income_amount": 73312519,
"nominal": 73312519,
"note": ""
}
]
-43
View File
@@ -1,43 +0,0 @@
/**
* Dummy data for Finance[]
* Generated from: finance_payments.json
*
* This file is auto-generated. Do not edit manually.
*/
import { FinanceBank, Finance } from '../../types/api/finance/finance';
import { BaseApiResponse } from '@/types/api/api-general';
import dummyData from './finance.dummy.json';
/**
* Get dummy Finance[] data
* @returns Promise with BaseApiResponse containing Finance[]
*/
export async function getAllFetcher(): Promise<BaseApiResponse<Finance[]>> {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
code: 200,
status: 'success',
message: 'Data retrieved successfully',
data: dummyData as unknown as Finance[],
});
}, 500);
});
}
export async function getFetcher(
id: number
): Promise<BaseApiResponse<Finance>> {
return new Promise((resolve) => {
setTimeout(() => {
const data = dummyData.find((item) => item.id === id);
resolve({
code: 200,
status: 'success',
message: 'Data retrieved successfully',
data: data as unknown as Finance,
});
}, 500);
});
}
@@ -1,341 +0,0 @@
[
{
"id": 1,
"name": "Standar Uniformity A",
"project_category": "LAYING",
"created_user": {
"id": 1,
"id_user": 1,
"email": "admin@mbugroup.id",
"name": "Super Admin"
},
"details": [
{
"week": 1,
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 55,
"max_depletion": 3,
"min_uniformity": 60,
"feed_intake": 25
},
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 1,
"target_hen_house_production": 1,
"target_egg_weight": 1,
"target_egg_mass": 1
}
}
]
},
{
"id": 3,
"name": "Standard Growing 2024",
"project_category": "GROWING",
"created_at": "Fri May 10 2024 19:22:41 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 13,
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1608,
"max_depletion": 2.217125905431294,
"min_uniformity": 82.53307938674605,
"max_cv": 10.755001233777175,
"week": 10,
"feed_intake": 106
}
}
]
},
{
"id": 1,
"name": "Standard Laying 2024",
"project_category": "LAYING",
"created_at": "Thu Jan 18 2024 05:55:37 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 7,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 88.75664879714013,
"target_hen_house_production": 88.14547241912292,
"target_egg_weight": 56.500738261325466,
"target_egg_mass": 51.3608296108157
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1630,
"max_depletion": 1.4984809075731345,
"min_uniformity": 89.58032440497733,
"max_cv": 10.088686692512729,
"week": 2,
"feed_intake": 109
}
}
]
},
{
"id": 18,
"name": "Standard Laying 2024",
"project_category": "LAYING",
"created_at": "Mon Mar 04 2024 08:29:01 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 5,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 96.61629851755295,
"target_hen_house_production": 92.28797293699245,
"target_egg_weight": 56.58098085770421,
"target_egg_mass": 52.43691607207049
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1879,
"max_depletion": 2.627489091697176,
"min_uniformity": 82.66289615405532,
"max_cv": 10.820852039399298,
"week": 20,
"feed_intake": 102
}
}
]
},
{
"id": 13,
"name": "Standard Laying 2024",
"project_category": "LAYING",
"created_at": "Wed Aug 21 2024 16:53:00 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 19,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 90.64987149673148,
"target_hen_house_production": 84.72381158749832,
"target_egg_weight": 52.66407930502588,
"target_egg_mass": 48.67508874158
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1640,
"max_depletion": 1.0327075188137618,
"min_uniformity": 81.06885977450052,
"max_cv": 10.554487690853291,
"week": 17,
"feed_intake": 103
}
}
]
},
{
"id": 15,
"name": "Standard Laying 2025",
"project_category": "LAYING",
"created_at": "Wed Jun 19 2024 22:53:30 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 18,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 93.92688146007806,
"target_hen_house_production": 88.99021279347687,
"target_egg_weight": 52.34548967695446,
"target_egg_mass": 47.022424468842786
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1613,
"max_depletion": 1.4131114163932998,
"min_uniformity": 87.70472314168066,
"max_cv": 10.854404697694157,
"week": 19,
"feed_intake": 113
}
}
]
},
{
"id": 4,
"name": "Standard Growing 2025",
"project_category": "GROWING",
"created_at": "Fri Aug 02 2024 20:01:03 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 10,
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1679,
"max_depletion": 1.6915361117048733,
"min_uniformity": 86.90679412785661,
"max_cv": 9.332617207000094,
"week": 17,
"feed_intake": 103
}
}
]
},
{
"id": 4,
"name": "Standard Laying 2024",
"project_category": "LAYING",
"created_at": "Wed Jun 12 2024 11:17:31 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 17,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 80.64302567936814,
"target_hen_house_production": 89.82086172466285,
"target_egg_weight": 55.226688911717915,
"target_egg_mass": 53.11072600271201
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1874,
"max_depletion": 2.438323895989795,
"min_uniformity": 84.30289784580617,
"max_cv": 8.222592209557122,
"week": 12,
"feed_intake": 105
}
}
]
},
{
"id": 6,
"name": "Standard Laying 2025",
"project_category": "LAYING",
"created_at": "Mon Mar 18 2024 10:48:49 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 13,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 82.2346989800578,
"target_hen_house_production": 90.75391628121226,
"target_egg_weight": 57.499497168597166,
"target_egg_mass": 47.20514521984387
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1831,
"max_depletion": 1.074492532699157,
"min_uniformity": 85.74444671505677,
"max_cv": 10.858199896316137,
"week": 7,
"feed_intake": 112
}
}
]
},
{
"id": 7,
"name": "Standard Laying 2024",
"project_category": "LAYING",
"created_at": "Sat Mar 30 2024 14:29:22 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 2,
"egg_production_standard_detail": {
"id": 1,
"target_hen_day_production": 90.49925722287992,
"target_hen_house_production": 89.55923007437376,
"target_egg_weight": 58.22187327861563,
"target_egg_mass": 54.45919757347778
},
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1809,
"max_depletion": 2.2870196905499673,
"min_uniformity": 83.61968975899043,
"max_cv": 10.012889742382296,
"week": 6,
"feed_intake": 115
}
}
]
},
{
"id": 11,
"name": "Standard Growing 2024",
"project_category": "GROWING",
"created_at": "Fri Jan 19 2024 06:05:53 GMT+0700 (Western Indonesia Time)",
"updated_at": "2025-12-26T23:13:21Z",
"created_user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@mbugroup.id"
},
"details": [
{
"week": 17,
"growth_standard_detail": {
"id": 1,
"target_mean_bw": 1803,
"max_depletion": 2.3862272943774725,
"min_uniformity": 88.37012562585544,
"max_cv": 9.948053043223062,
"week": 16,
"feed_intake": 114
}
}
]
}
]
@@ -1,46 +0,0 @@
/**
* Dummy data for ProductionStandard[]
* Generated from: master-data-standar-produksi.json
*
* This file is auto-generated. Do not edit manually.
*/
import { ProductionStandard } from '../../types/api/master-data/production-standard';
import { BaseApiResponse } from '@/types/api/api-general';
import dummyData from './production-standard.dummy.json';
/**
* Get dummy ProductionStandard[] data
* @returns Promise with BaseApiResponse containing ProductionStandard[]
*/
export async function getDummyAllFetcher(): Promise<
BaseApiResponse<ProductionStandard[]>
> {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
code: 200,
status: 'success',
message: 'Data retrieved successfully',
data: dummyData as unknown as ProductionStandard[],
});
}, 500);
});
}
export async function getDummySingleFetcher(
id: number
): Promise<BaseApiResponse<ProductionStandard>> {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
code: 200,
status: 'success',
message: 'Data retrieved successfully',
data: dummyData.find(
(item) => item.id === id
) as unknown as ProductionStandard,
});
}, 500);
});
}
-139
View File
@@ -1,139 +0,0 @@
import { BaseApiResponse } from '@/types/api/api-general';
import { DailyMarketingReport } from '@/types/api/report/marketing';
// TODO: delete this later
export const DAILY_MARKETING_DUMMY_DATA: BaseApiResponse<DailyMarketingReport> =
{
code: 200,
status: 'success',
message: 'Get daily marketing report successfully',
meta: {
page: 1,
limit: 10,
total_pages: 1,
total_results: 2,
},
data: {
rows: [
{
// metadata
created_user: {
id: 1,
id_user: 101,
email: 'admin@example.com',
name: 'Admin User',
},
created_at: '2025-12-01T08:00:00Z',
updated_at: '2025-12-01T08:00:00Z',
// row data
no: 1,
so_date: '2025-12-01',
do_date: '2025-12-08',
aging_days: 7,
warehouse: {
id: 1,
name: 'Warehouse Kandang A',
type: 'KANDANG',
area: {
id: 1,
name: 'Area Barat',
},
location: {
id: 1,
name: 'Farm Bandung',
address: 'Jl. Raya Farm No. 1',
area: null,
},
kandang: {
id: 1,
name: 'Kandang A1',
status: 'ACTIVE',
capacity: 5000,
location: null,
pic: null,
},
},
customer: {
id: 1,
name: 'PT Maju Jaya',
pic_id: 10,
pic: {
id: 10,
id_user: 210,
email: 'pic@majujaya.com',
name: 'Budi Santoso',
},
type: 'BROILER',
address: 'Jl. Industri No. 10',
phone: '08123456789',
email: 'contact@majujaya.com',
account_number: '1234567890',
},
sales: 'Andi Wijaya',
product: {
id: 1,
name: 'Live Chicken',
brand: 'LTI Farm',
sku: 'LC-001',
product_price: 18_000,
selling_price: 20_000,
tax: 0,
expiry_period: 0,
uom: {
id: 1,
name: 'Kg',
created_user: {
id: 1,
id_user: 101,
email: 'admin@example.com',
name: 'Admin User',
},
created_at: '2025-01-01T00:00:00Z',
updated_at: '2025-01-01T00:00:00Z',
},
product_category: {
id: 1,
code: 'BROILER',
name: 'Broiler Chicken',
created_user: {
id: 1,
id_user: 101,
email: 'admin@example.com',
name: 'Admin User',
},
created_at: '2025-01-01T00:00:00Z',
updated_at: '2025-01-01T00:00:00Z',
},
suppliers: [],
flags: ['LIVE'],
},
do_number: 'DO-2025-0001',
vehicle_number: 'B 1234 CD',
marketing_type: 'REGULAR',
qty: 1000,
average_weight_kg: 1.8,
total_weight_kg: 1800,
sales_price_per_kg: 20_000,
hpp_price_per_kg: 18_000,
sales_amount: 36_000_000,
hpp_amount: 32_400_000,
},
],
summary: {
total_qty: 1000,
total_weight_kg: 1800,
total_sales_amount: 36_000_000,
total_hpp_amount: 32_400_000,
},
},
};
-14
View File
@@ -15,20 +15,6 @@ import {
import { BaseApiResponse } from '@/types/api/api-general';
import { httpClient, httpClientFetcher } from '@/services/http/client';
import { ClosingSales } from '@/types/api/closing';
// TODO: delete these dummy data later
import {
dummyGetAllFetcher,
dummyGetSingle,
dummyGetAllIncomingSapronakFetcher,
dummyGetAllOutgoingSapronakFetcher,
dummyGetGeneralInfo,
dummyGetPerhitunganSapronak,
dummyGetOverhead,
dummyClosingProductionData,
} from '@/dummy/closing.dummy';
import { sleep } from '@/lib/helper';
export class ClosingApiService extends BaseApiService<Closing, null, null> {
constructor(basePath: string) {
super(basePath);
-4
View File
@@ -65,10 +65,6 @@ import {
UpdateFlockPayload,
} from '@/types/api/master-data/flock';
import { ProductionStandard } from '@/types/api/master-data/production-standard';
import {
getDummyAllFetcher,
getDummySingleFetcher,
} from '@/dummy/master-data/production-standard.dummy';
export const UomApi = new BaseApiService<
Uom,