mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
fix(FE): change datatype location in inventory products
This commit is contained in:
@@ -79,8 +79,8 @@ const InventoryProductDetail = ({
|
|||||||
<td className='font-semibold'>Harga Jual</td>
|
<td className='font-semibold'>Harga Jual</td>
|
||||||
<td>:</td>
|
<td>:</td>
|
||||||
<td>
|
<td>
|
||||||
{inventoryProduct?.product_price
|
{inventoryProduct?.selling_price
|
||||||
? formatCurrency(inventoryProduct.product_price)
|
? formatCurrency(inventoryProduct.selling_price)
|
||||||
: '-'}
|
: '-'}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -88,8 +88,8 @@ const InventoryProductDetail = ({
|
|||||||
<td className='font-semibold'>Harga Beli</td>
|
<td className='font-semibold'>Harga Beli</td>
|
||||||
<td>:</td>
|
<td>:</td>
|
||||||
<td>
|
<td>
|
||||||
{inventoryProduct?.selling_price
|
{inventoryProduct?.product_price
|
||||||
? formatCurrency(inventoryProduct?.selling_price)
|
? formatCurrency(inventoryProduct?.product_price)
|
||||||
: '-'}
|
: '-'}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const StockLogTable = ({ stockLogs }: { stockLogs: StockLog[] }) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Oleh',
|
header: 'Oleh',
|
||||||
accessorKey: 'created_by',
|
accessorKey: 'created_by.name',
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
className={{
|
className={{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export const MAIN_DRAWER_LINKS: MAIN_DRAWER_MENU[] = [
|
|||||||
icon: 'mdi:warehouse',
|
icon: 'mdi:warehouse',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
title: 'Product',
|
title: 'Produk',
|
||||||
link: '/inventory/product',
|
link: '/inventory/product',
|
||||||
icon: 'mdi:package-variant-closed',
|
icon: 'mdi:package-variant-closed',
|
||||||
},
|
},
|
||||||
|
|||||||
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
import { BaseMetadata } from '@/types/api/api-general';
|
import { BaseMetadata, CreatedUser } from '@/types/api/api-general';
|
||||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||||
import { ProductCategory } from '@/types/api/master-data/product-category';
|
import { ProductCategory } from '@/types/api/master-data/product-category';
|
||||||
import { Supplier } from '@/types/api/master-data/supplier';
|
import { Supplier } from '@/types/api/master-data/supplier';
|
||||||
@@ -25,7 +25,7 @@ export type ProductWarehouseStock = {
|
|||||||
product_id: number;
|
product_id: number;
|
||||||
warehouse_id: number;
|
warehouse_id: number;
|
||||||
warehouse_name: string;
|
warehouse_name: string;
|
||||||
location: Location | string;
|
location: Location | null;
|
||||||
current_stock: number;
|
current_stock: number;
|
||||||
stock_logs: StockLog[];
|
stock_logs: StockLog[];
|
||||||
};
|
};
|
||||||
@@ -38,7 +38,7 @@ export type StockLog = {
|
|||||||
loggable_id: number;
|
loggable_id: number;
|
||||||
notes: string;
|
notes: string;
|
||||||
product_warehouse_id: number;
|
product_warehouse_id: number;
|
||||||
created_by: number;
|
created_by: CreatedUser;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user