-<?
-include_once("startup.php");
-include_once("inc/db.php");
-include_once("inc/base_new.php");
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
+
+global $orderId, $products, $productsColorsArray;
if(!empty($_REQUEST["id"])) {
-$orderId=(int)$_REQUEST["id"];
+$orderId=(int)$_REQUEST["id"];
-include"modul/shipment/functionsShipment.php";
+include_once(__DIR__. "/functionsShipment.php");
$FiledsData=getDataFiledsData($orderId);
$storeOrderArray=getRelationshipCityStore();
-<?
+<?php
+global $orderId,
+ $orderStoresArrayRelation_in,
+ $orderStoresArrayRelation,
+ $products,
+ $productsColorsArray
+
+ ;
+
$FiledsDataArray=[];
order_id=?
AND store_id=''
AND field_name IN ('division_store_ratio','min_lot')
-AND value!=0 group by field_name, product_id ",[$orderId]);
+AND value!=0 group by field_name, product_id, store_id, value,color ",[$orderId]);
foreach($dataF as $row) {
if(empty($row["color"])) $row["color"]=0;
$FiledsDataArray[$row["field_name"]][$row["product_id"]][0][$row["color"]]=$row["value"];