mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
chore: adjust closing data type
This commit is contained in:
@@ -25,9 +25,9 @@ const ClosingGeneralInformationTable = ({
|
|||||||
<td>{initialValue?.period}</td>
|
<td>{initialValue?.period}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Kategori</td>
|
<td>Project Flock</td>
|
||||||
<td>:</td>
|
<td>:</td>
|
||||||
<td>{initialValue?.project_category}</td>
|
<td>{initialValue?.project_flock?.name}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Populasi</td>
|
<td>Populasi</td>
|
||||||
|
|||||||
@@ -126,28 +126,6 @@ const ClosingsTable = () => {
|
|||||||
accessorKey: 'shed_label',
|
accessorKey: 'shed_label',
|
||||||
header: 'Jumlah Kandang',
|
header: 'Jumlah Kandang',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
accessorKey: 'sales_paid_amount',
|
|
||||||
header: 'Jumlah Sudah Bayar',
|
|
||||||
cell: (props) => (
|
|
||||||
<span className='text-success'>
|
|
||||||
{formatCurrency(props.row.original.sales_paid_amount)}
|
|
||||||
</span>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
accessorKey: 'sales_remaining_amount',
|
|
||||||
header: 'Jumlah Sisa Bayar',
|
|
||||||
cell: (props) => (
|
|
||||||
<span className='text-error'>
|
|
||||||
{formatCurrency(props.row.original.sales_remaining_amount)}
|
|
||||||
</span>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
accessorKey: 'sales_payment_status',
|
|
||||||
header: 'Status Pembayaran',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
accessorKey: 'project_status',
|
accessorKey: 'project_status',
|
||||||
header: 'Status',
|
header: 'Status',
|
||||||
|
|||||||
Vendored
+6
-7
@@ -6,6 +6,11 @@ import { Kandang } from '@/types/api/master-data/kandang';
|
|||||||
import { Product } from '@type/api/master-data/product';
|
import { Product } from '@type/api/master-data/product';
|
||||||
import { Customer } from '@type/api/master-data/customer';
|
import { Customer } from '@type/api/master-data/customer';
|
||||||
import { BaseMetadata } from '@/types/api/api-general';
|
import { BaseMetadata } from '@/types/api/api-general';
|
||||||
|
import { Kandang } from '@/types/api/master-data/kandang';
|
||||||
|
import { Product } from '@type/api/master-data/product';
|
||||||
|
import { Customer } from '@type/api/master-data/customer';
|
||||||
|
import { BaseMetadata } from '@/types/api/api-general';
|
||||||
|
import { ProjectFlock } from '@/types/api/production/project-flock';
|
||||||
|
|
||||||
export type BaseSales = {
|
export type BaseSales = {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -29,10 +34,6 @@ export type BaseClosingSales = {
|
|||||||
period: number;
|
period: number;
|
||||||
sales: BaseSales[];
|
sales: BaseSales[];
|
||||||
};
|
};
|
||||||
import { Kandang } from '@/types/api/master-data/kandang';
|
|
||||||
import { Product } from '@type/api/master-data/product';
|
|
||||||
import { Customer } from '@type/api/master-data/customer';
|
|
||||||
import { BaseMetadata } from '@/types/api/api-general';
|
|
||||||
|
|
||||||
export type BaseSales = {
|
export type BaseSales = {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -66,9 +67,6 @@ export type BaseClosing = {
|
|||||||
closing_date?: string;
|
closing_date?: string;
|
||||||
shed_label: string;
|
shed_label: string;
|
||||||
shed_count: number;
|
shed_count: number;
|
||||||
sales_paid_amount: number;
|
|
||||||
sales_remaining_amount: number;
|
|
||||||
sales_payment_status: string;
|
|
||||||
project_status: 'Pengajuan' | 'Aktif' | 'Selesai';
|
project_status: 'Pengajuan' | 'Aktif' | 'Selesai';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -83,6 +81,7 @@ export type BaseClosingGeneralInformation = BaseClosing & {
|
|||||||
sales_payment_status: string;
|
sales_payment_status: string;
|
||||||
project_status: 'Pengajuan' | 'Aktif' | 'Selesai';
|
project_status: 'Pengajuan' | 'Aktif' | 'Selesai';
|
||||||
closing_status: string;
|
closing_status: string;
|
||||||
|
project_flock: ProjectFlock;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ClosingGeneralInformation = BaseMetadata &
|
export type ClosingGeneralInformation = BaseMetadata &
|
||||||
|
|||||||
Reference in New Issue
Block a user