order env
This commit is contained in:
@@ -287,7 +287,7 @@ const OrderPage = () => {
|
|||||||
mutate({
|
mutate({
|
||||||
order: [
|
order: [
|
||||||
{
|
{
|
||||||
filial_code: 'dodge',
|
filial_code: process.env.NEXT_FILIAL_CODE!,
|
||||||
delivery_date: formatDate.format(deliveryDate, 'DD.MM.YYYY'),
|
delivery_date: formatDate.format(deliveryDate, 'DD.MM.YYYY'),
|
||||||
room_code: process.env.NEXT_ROOM_CODE!,
|
room_code: process.env.NEXT_ROOM_CODE!,
|
||||||
deal_time: formatDate.format(deliveryDate, 'DD.MM.YYYY'),
|
deal_time: formatDate.format(deliveryDate, 'DD.MM.YYYY'),
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ const ProductDetail = () => {
|
|||||||
/* ---------------- DERIVED DATA ---------------- */
|
/* ---------------- DERIVED DATA ---------------- */
|
||||||
const price = Number(data?.prices?.[0]?.price || 0);
|
const price = Number(data?.prices?.[0]?.price || 0);
|
||||||
|
|
||||||
const category = 'Ichimliklar'; // default category
|
|
||||||
|
|
||||||
/* ---------------- SYNC CART QUANTITY ---------------- */
|
/* ---------------- SYNC CART QUANTITY ---------------- */
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!data || !cartItems) return;
|
if (!data || !cartItems) return;
|
||||||
@@ -226,7 +224,7 @@ const ProductDetail = () => {
|
|||||||
<div className="grid grid-cols-2 gap-4 mb-6">
|
<div className="grid grid-cols-2 gap-4 mb-6">
|
||||||
<div>
|
<div>
|
||||||
<span className="text-gray-500">Kategoriya:</span>
|
<span className="text-gray-500">Kategoriya:</span>
|
||||||
<p className="font-semibold">{category}</p>
|
<p className="font-semibold">{data?.groups[0].name}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export interface ProductDetail {
|
|||||||
litr: null | string;
|
litr: null | string;
|
||||||
box_type_code: null | string;
|
box_type_code: null | string;
|
||||||
box_quant: null | string;
|
box_quant: null | string;
|
||||||
groups: number[];
|
groups: { id: number; name: string }[];
|
||||||
state: 'A' | 'P';
|
state: 'A' | 'P';
|
||||||
barcodes: string;
|
barcodes: string;
|
||||||
article_code: null | string;
|
article_code: null | string;
|
||||||
|
|||||||
Reference in New Issue
Block a user