order create
This commit is contained in:
@@ -58,8 +58,7 @@ export interface OrderCreateBody {
|
|||||||
currency_code: string;
|
currency_code: string;
|
||||||
owner_person_code: string;
|
owner_person_code: string;
|
||||||
note: string;
|
note: string;
|
||||||
order_products: [
|
order_products: {
|
||||||
{
|
|
||||||
inventory_kind: string;
|
inventory_kind: string;
|
||||||
product_code: string;
|
product_code: string;
|
||||||
on_balance: string;
|
on_balance: string;
|
||||||
@@ -67,8 +66,7 @@ export interface OrderCreateBody {
|
|||||||
price_type_code: string;
|
price_type_code: string;
|
||||||
product_price: string;
|
product_price: string;
|
||||||
warehouse_code: string;
|
warehouse_code: string;
|
||||||
},
|
}[];
|
||||||
];
|
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -549,21 +549,22 @@ const OrderPage = () => {
|
|||||||
<Image
|
<Image
|
||||||
width={500}
|
width={500}
|
||||||
height={500}
|
height={500}
|
||||||
src={BASE_URL + item.product_image}
|
src={BASE_URL + item.product.images}
|
||||||
alt={item.product_name}
|
alt={item.product.name}
|
||||||
className="w-16 h-16 object-contain bg-gray-100 rounded"
|
className="w-16 h-16 object-contain bg-gray-100 rounded"
|
||||||
/>
|
/>
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<h4 className="font-medium text-sm">
|
<h4 className="font-medium text-sm">
|
||||||
{item.product_name}
|
{item.product.name}
|
||||||
</h4>
|
</h4>
|
||||||
<p className="text-sm text-gray-500">
|
<p className="text-sm text-gray-500">
|
||||||
{item.quantity} x{' '}
|
{item.quantity} x{' '}
|
||||||
{formatPrice(item.product_price, true)}
|
{formatPrice(item.product.prices[0].price, true)}
|
||||||
</p>
|
</p>
|
||||||
<p className="font-semibold text-sm">
|
<p className="font-semibold text-sm">
|
||||||
{formatPrice(
|
{formatPrice(
|
||||||
item.product_price * item.quantity,
|
Number(item.product.prices[0].price) *
|
||||||
|
item.quantity,
|
||||||
true,
|
true,
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user