From 754e3d526b61585d603dea9593c4ce064b1c3606 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Sun, 12 Oct 2025 19:15:14 +0700 Subject: [PATCH] feat(FE-64): add hatchery and npwp fields to MovementTable data structure --- .../inventory/movement/MovementTable.tsx | 91 ++----------------- 1 file changed, 10 insertions(+), 81 deletions(-) diff --git a/src/components/pages/inventory/movement/MovementTable.tsx b/src/components/pages/inventory/movement/MovementTable.tsx index 288cb2a6..c863a1a9 100644 --- a/src/components/pages/inventory/movement/MovementTable.tsx +++ b/src/components/pages/inventory/movement/MovementTable.tsx @@ -89,9 +89,11 @@ const dummyMovements: Movement[] = [ category: 'General', pic: 'PIC 1', type: 'Type 1', + hatchery: 'Hatchery 1', phone: '08123456789', email: 'supplier1@example.com', address: 'Address 1', + npwp: '1234567890123456', account_number: '1234567890', balance: 0, due_date: 30, @@ -103,7 +105,6 @@ const dummyMovements: Movement[] = [ nama_sopir: 'Andi', }, ], - name: 'Movement 1', }, { ...baseMetadata, @@ -165,9 +166,11 @@ const dummyMovements: Movement[] = [ category: 'Special', pic: 'PIC 2', type: 'Type 2', + hatchery: 'Hatchery 2', phone: '08123456780', email: 'supplier2@example.com', address: 'Address 2', + npwp: '1234567890123457', account_number: '1234567891', balance: 1000, due_date: 15, @@ -179,7 +182,6 @@ const dummyMovements: Movement[] = [ nama_sopir: 'Budi', }, ], - name: 'Movement 2', }, { ...baseMetadata, @@ -241,9 +243,11 @@ const dummyMovements: Movement[] = [ category: 'Return', pic: 'PIC 3', type: 'Type 3', + hatchery: 'Hatchery 3', phone: '08123456781', email: 'supplier3@example.com', address: 'Address 3', + npwp: '1234567890123458', account_number: '1234567892', balance: 500, due_date: 10, @@ -255,7 +259,6 @@ const dummyMovements: Movement[] = [ nama_sopir: 'Cici', }, ], - name: 'Movement 3', }, { ...baseMetadata, @@ -317,9 +320,11 @@ const dummyMovements: Movement[] = [ category: 'Internal', pic: 'PIC 4', type: 'Type 4', + hatchery: 'Hatchery 4', phone: '08123456782', email: 'supplier4@example.com', address: 'Address 4', + npwp: '1234567890123459', account_number: '1234567893', balance: 200, due_date: 20, @@ -331,86 +336,10 @@ const dummyMovements: Movement[] = [ nama_sopir: 'Dedi', }, ], - name: 'Movement 4', - }, - { - ...baseMetadata, - id: 5, - alasan_transfer: 'Distribusi', - tanggal_transfer: '2024-06-05', - warehouse_asal: { - ...baseMetadata, - id: 5, - name: 'Warehouse E', - type: 'AREA', - area: { id: 5, name: 'Area 5' }, - }, - warehouse_tujuan: { - ...baseMetadata, - id: 1, - name: 'Warehouse A', - type: 'AREA', - area: { id: 1, name: 'Area 1' }, - }, - product: [ - { - product: { - ...baseMetadata, - id: 5, - name: 'Product B', - brand: 'Brand B', - sku: 'SKU-B', - product_price: 8000, - selling_price: 9500, - tax: 2, - expiry_period: 120, - uom: { - ...baseMetadata, - id: 5, - name: 'PAK', - }, - product_category: { - ...baseMetadata, - id: 5, - code: 'CAT-5', - name: 'Category 5', - }, - suppliers: [], - flags: [], - }, - qty_product: 15, - }, - ], - ekspedisi: [ - { - product_id: 5, - qty: 15, - supplier: { - ...baseMetadata, - id: 5, - name: 'Supplier 5', - alias: 'S5', - category: 'Distribusi', - pic: 'PIC 5', - type: 'Type 5', - phone: '08123456783', - email: 'supplier5@example.com', - address: 'Address 5', - account_number: '1234567894', - balance: 300, - due_date: 25, - }, - plat_nomor: 'K 6789 KL', - no_surat_jalan: 'SJ-005', - dokumen: 'doc5.pdf', - biaya_ekspedisi: 70000, - nama_sopir: 'Eka', - }, - ], - name: 'Movement 5', }, ]; + const RowOptionsMenu = ({ type = 'dropdown', props, @@ -633,7 +562,7 @@ const MovementTable = () => {