mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-64): add hatchery and npwp fields to MovementTable data structure
This commit is contained in:
@@ -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 = () => {
|
||||
<ConfirmationModal
|
||||
ref={deleteModal.ref}
|
||||
type='error'
|
||||
text={`Apakah anda yakin ingin menghapus data Movement ini (${selectedMovement?.name})?`}
|
||||
text={`Apakah anda yakin ingin menghapus data Movement ini (ID: ${selectedMovement?.id})?`}
|
||||
secondaryButton={{
|
||||
text: 'Tidak',
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user