order env

This commit is contained in:
Samandar Turgunboyev
2026-02-04 09:28:00 +05:00
parent 8a4682212f
commit 4d22e3441c
3 changed files with 3 additions and 5 deletions

View File

@@ -287,7 +287,7 @@ const OrderPage = () => {
mutate({
order: [
{
filial_code: 'dodge',
filial_code: process.env.NEXT_FILIAL_CODE!,
delivery_date: formatDate.format(deliveryDate, 'DD.MM.YYYY'),
room_code: process.env.NEXT_ROOM_CODE!,
deal_time: formatDate.format(deliveryDate, 'DD.MM.YYYY'),

View File

@@ -59,8 +59,6 @@ const ProductDetail = () => {
/* ---------------- DERIVED DATA ---------------- */
const price = Number(data?.prices?.[0]?.price || 0);
const category = 'Ichimliklar'; // default category
/* ---------------- SYNC CART QUANTITY ---------------- */
useEffect(() => {
if (!data || !cartItems) return;
@@ -226,7 +224,7 @@ const ProductDetail = () => {
<div className="grid grid-cols-2 gap-4 mb-6">
<div>
<span className="text-gray-500">Kategoriya:</span>
<p className="font-semibold">{category}</p>
<p className="font-semibold">{data?.groups[0].name}</p>
</div>
</div>

View File

@@ -55,7 +55,7 @@ export interface ProductDetail {
litr: null | string;
box_type_code: null | string;
box_quant: null | string;
groups: number[];
groups: { id: number; name: string }[];
state: 'A' | 'P';
barcodes: string;
article_code: null | string;