Compare commits

...

11 Commits

Author SHA1 Message Date
Rivaldi A N S e75f4aab82 Merge branch 'feat/recording-detail-used-product-total-price' into 'development'
[FEAT/FE] Recording Detail Used Product Total Price

See merge request mbugroup/lti-web-client!515
2026-06-11 04:19:48 +00:00
ValdiANS 6129e4ab1f Merge branch 'development' into feat/recording-detail-used-product-total-price 2026-06-11 11:19:11 +07:00
ValdiANS a7cdf0f785 fix: format total price 2026-06-11 11:14:31 +07:00
Giovanni Gabriel Septriadi 0085f69534 Merge branch 'feat/total-price-recording' into 'development'
adjust laporan depresiasi

See merge request mbugroup/lti-web-client!513
2026-06-10 15:20:54 +00:00
MacBook Air M1 89a6312761 adjust laporan depresiasi 2026-06-10 22:18:44 +07:00
Giovanni Gabriel Septriadi b756006c0a Merge branch 'feat/total-price-recording' into 'development'
show total price when pending is 0

See merge request mbugroup/lti-web-client!512
2026-06-10 14:17:38 +00:00
MacBook Air M1 7061031cd9 show total price when pending is 0 2026-06-10 21:15:59 +07:00
Giovanni Gabriel Septriadi 2e99a7b2f7 Merge branch 'feat/recording-detail-used-product-total-price' into 'development'
[FEA/FE] Recording Detail Used Product Total Price

See merge request mbugroup/lti-web-client!511
2026-06-10 13:20:35 +00:00
ValdiANS 61cd56be22 feat: add total_price to recording stock type and display it in recording detail form 2026-06-10 14:50:50 +07:00
Giovanni Gabriel Septriadi 76ee17abb4 Merge branch 'development' into 'production'
feat: add HPP Per Farm report tab with expandable flock rows

See merge request mbugroup/lti-web-client!510
2026-06-06 01:49:42 +00:00
Rivaldi A N S 2f604c9966 Merge branch 'feat/depreciation-report-v2' into 'development'
[FEAT/FE] Depreciation Report V2

See merge request mbugroup/lti-web-client!509
2026-06-05 09:41:53 +00:00
3 changed files with 19 additions and 7 deletions
@@ -72,7 +72,7 @@ import {
} from '@/components/pages/production/recording/form/RecordingForm.schema';
import { isResponseSuccess, isResponseError } from '@/lib/api-helper';
import { formatDate, formatNumber, cn } from '@/lib/helper';
import { formatDate, formatNumber, cn, formatCurrency } from '@/lib/helper';
import {
getProductWarehouseOptionLabel,
isProductWarehouseSelectableForKandang,
@@ -1509,6 +1509,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
const { pendingQty } = getStockPendingInfo(
stock.product_warehouse_id.value
);
const totalPrice = initialValues?.stocks?.[stockIdx]?.total_price;
const showTotalPrice =
type === 'detail' && typeof totalPrice === 'number';
if (isDetail) {
if (pendingQty > 0) {
@@ -1516,11 +1519,14 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
<span className='text-sm text-gray-600 whitespace-nowrap'>
(tersedia: {formatNumber(availableStock)} | pending:{' '}
<span className='text-error'>{formatNumber(pendingQty)}</span> |
pakai: {formatNumber(requestedUsage)})
pakai: {formatNumber(requestedUsage)}
{showTotalPrice && (
<> | total harga: {formatCurrency(totalPrice)}</>
)}
)
</span>
);
}
return null;
}
if (requestedUsage > 0) {
@@ -1529,13 +1535,18 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
(tersedia: {formatNumber(availableStock)} | pakai:{' '}
{formatNumber(requestedUsage)} | sisa:{' '}
{formatNumber(Math.max(remainingStock, 0))} | dipinjam:{' '}
{formatNumber(Math.max(-remainingStock, 0))})
{formatNumber(Math.max(-remainingStock, 0))}
{showTotalPrice && (
<> | total harga: {formatCurrency(totalPrice)}</>
)}
)
</span>
);
}
return (
<span className='text-sm text-gray-600 whitespace-nowrap'>
(tersedia: {formatNumber(availableStock)})
(tersedia: {formatNumber(availableStock)}
{showTotalPrice && <> | total harga: {formatCurrency(totalPrice)}</>})
</span>
);
},
@@ -120,7 +120,7 @@ const ReportDepreciationTab = ({ tabId }: ReportDepreciationTabProps) => {
'IDR',
'id-ID',
0,
10
2
),
},
{
@@ -143,7 +143,7 @@ const ReportDepreciationTab = ({ tabId }: ReportDepreciationTabProps) => {
'IDR',
'id-ID',
0,
10
2
),
},
],
+1
View File
@@ -67,6 +67,7 @@ export type RecordingStock = {
qty?: number;
usage_amount?: number;
pending_qty: number;
total_price?: number;
product_warehouse: ProductWarehouse;
};