user guide
×
Меню
Индекс

Raw material analysis on demand

 
Action: goods_stock_order
 
Separately, the order code for which the balances are needed is indicated
 
Conclusion
 
{
    "status""ok",
    "error""",
    "data": {
        "calc": [
            {
                "id"14799, Remains of material 14799 used in the project.
                "parts": [
                    {
                        "l""2800.0", rest width mm
                        "w""2070.0",высота остатка
                        "count""1",amount
                        "goods_stock_id"null, if greater than 0, then this is the id of a non-integer balance, if null, then a whole sheet from the warehouse has been used
                        "area"5.796 Residual area
                    }
                ]
            },
            {
                "id"15030, Remaining material 15030
                "parts": [
                    {
                        "l""510.0", ширина мм
                        "w""2070.0",height mm
                        "count""1", количество
                        "goods_stock_id""5205", id the rest of not whole sheet material
                        "area"1.0557 square
                    }
                ]
            },
           ...
        ],
        "all_source_in_reserve": {Сырьё в резерве по заказу
            "count"4,
            "data": [
                {
                    "goods""14799", id материала
                    "count""1.960995", количество
                    "sheet_calc_type""m" тип продажи (m-продажа в м2, sheet - продажа в листах)
                },
                {
                    "goods""15030",
                    "count""0.020786",
                    "sheet_calc_type""m"
                },
                {
                    "goods""14851",
                    "count""7.76501",
                    "sheet_calc_type""m"
                },
                {
                    "goods""15752",
                    "count""1.688246",
                    "sheet_calc_type""m"
                }
            ]
        },
        "source_in_reserve": { Detailed information on the remains of non-whole sheet materials used in the project (description of the fields in the previous section)
            "count"7,
            "data": [
                 {
                    "goods_stock_id""5205",
                    "goods""15030",
                    "order""9743",
                    "group_of_production"null,
                    "order_in""9088",
                    "firm""3",
                    "code1c"null,
                    "x""510",
                    "y""2070",
                    "in""1",
                    "foSale"null,
                    "user_in"null,
                    "worker_in""49",
                    "date_in""2021-08-18 17:14:42",
                    "user_out"null,
                    "worker_out"null,
                    "date_out"null,
                    "count""1.06",
                    "units""1",
                    "count_free"null,
                    "count_reserve"null,
                    "count_packed"null,
                    "count_production"null,
                    "count_order"null,
                    "d_update""2021-08-23 13:21:16"
                },
                ...
            ]
        },
        "fact_rest_to_stock": {Фактическое поступление остатков не целого листогого материала на склад после порезки сырья и отгрузки готовой продукции
            "count"5,
            "data": [
                {
                    "goods_stock_id""5708",
                    "goods""15752",
                    "order""10169",
                    "group_of_production"null,
                    "order_in""9743",
                    "firm""3",
                    "code1c"null,
                    "x""2800",
                    "y""1291",
                    "in""1",
                    "foSale"null,
                    "user_in"null,
                    "worker_in""43",
                    "date_in""2021-08-28 10:51:12",
                    "user_out"null,
                    "worker_out"null,
                    "date_out"null,
                    "count""3.61",
                    "units""1",
                    "count_free"null,
                    "count_reserve"null,
                    "count_packed"null,
                    "count_production"null,
                    "count_order"null,
                    "d_update""2021-08-28 09:53:34"
                },
               
            ]
        },
        "plan_for_rest_to_stock": {The plan for the receipt of residues of not whole sheet material after cutting. It is formed at the time of calculation of cutting and reservation of residues for the order.
            "count"4,
            "data": [
                {
                    "orders_goods_stock_rest_plan_id""67109",
                    "order""9743", Buyer's order
                    "goods""15752", id material iniFurn.pro
                    "x""2800",width mm
                    "y""1291",height mm
                    "area_plan""3.61",square
                    "reason_why_not"null, The reason why the balance was not capitalized in the warehouse. It is filled in by the responsible employee in the admin panel in a situation where the planned return of balances has not been carried out.
                    "d_update""2021-08-23 13:21:16"
                }
            ]
        }
    }
}