mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE): Add Periode and Gudang columns and show week
This commit is contained in:
@@ -690,6 +690,10 @@ const RecordingTable = () => {
|
||||
cell: (props) =>
|
||||
props.row.original.project_flock?.flock_name || '-',
|
||||
},
|
||||
{
|
||||
header: 'Periode',
|
||||
cell: (props) => props.row.original.project_flock?.period || '-',
|
||||
},
|
||||
{
|
||||
header: 'Kategori',
|
||||
cell: (props) => {
|
||||
@@ -706,7 +710,21 @@ const RecordingTable = () => {
|
||||
},
|
||||
{
|
||||
header: 'Umur (hari)',
|
||||
cell: (props) => props.row.original.day,
|
||||
cell: (props) => {
|
||||
return (
|
||||
<>
|
||||
<span>
|
||||
{props.row.original.day} (Minggu ke-
|
||||
{props.row.original.project_flock.production_standart.week})
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'warehouse.name',
|
||||
header: 'Gudang',
|
||||
cell: (props) => props.row.original.warehouse?.name,
|
||||
},
|
||||
{
|
||||
accessorKey: 'record_date',
|
||||
@@ -715,7 +733,7 @@ const RecordingTable = () => {
|
||||
formatDate(props.row.original.record_datetime, 'DD MMMM YYYY'),
|
||||
},
|
||||
{
|
||||
header: 'Populasi Ayam',
|
||||
header: 'Populasi Akhir',
|
||||
cell: (props) =>
|
||||
props.row.original.project_flock?.total_chick_qty?.toLocaleString() ||
|
||||
'-',
|
||||
|
||||
Reference in New Issue
Block a user