File size: 9,334 Bytes
e5982b6
5e9bd07
 
 
 
406a686
5e9bd07
 
 
 
 
6d15d81
5e9bd07
6d15d81
ae0aa86
 
 
 
e98e105
ae0aa86
 
 
 
 
6d15d81
ae0aa86
6d15d81
ae0aa86
 
 
 
e98e105
ae0aa86
 
 
 
 
6d15d81
ae0aa86
6d15d81
ae0aa86
 
 
 
e98e105
ae0aa86
 
 
 
 
 
 
e98e105
5e9bd07
 
6d15d81
406a686
 
 
 
 
 
 
 
e98e105
 
406a686
e98e105
406a686
 
 
 
e98e105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c9d47fa
 
e98e105
 
 
c9d47fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55aa5ac
 
 
 
 
 
e98e105
 
e5982b6
 
55aa5ac
 
 
 
 
 
 
 
 
 
 
 
 
e5982b6
d9088a0
 
 
 
 
 
 
 
 
 
 
a55a5ff
d9088a0
 
a55a5ff
d9088a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a55a5ff
 
d9088a0
 
e5982b6
 
 
 
 
 
 
 
852c4d8
 
 
 
 
 
 
 
9bf16b5
 
 
 
 
 
 
 
38f336f
 
 
 
 
 
 
 
6eb2a72
 
 
 
 
 
 
 
e5982b6
 
 
 
 
 
 
 
 
852c4d8
 
 
 
 
 
9bf16b5
 
 
 
 
 
38f336f
 
 
 
 
 
6eb2a72
 
 
 
 
 
e5982b6
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
{
    "materials": [
        {
            "id": "b3cbff25c59a4475b05f86c95439f350",
            "name": "103",
            "quantity": "10.00",
            "unit": "м",
            "price_per_unit": "2.4",
            "material_per_unit": "1.25",
            "items_per_unit": 0,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-10-09T14:59:45.376512+06:00",
            "timestamp_last_updated": "2025-10-09T15:08:59.233907+06:00"
        },
        {
            "id": "549a4d0e621a4ef3bdbcffec500fe790",
            "name": "нитка",
            "quantity": "4",
            "unit": "пач",
            "price_per_unit": "230",
            "material_per_unit": "0",
            "items_per_unit": 0,
            "type": "fittings",
            "category": "Без категории",
            "timestamp_added": "2025-10-09T15:05:30.062550+06:00",
            "timestamp_last_updated": "2025-10-09T15:08:59.233907+06:00"
        },
        {
            "id": "399e1d2a2f7f4274b8d8ff9dcd53e842",
            "name": "пуговицы",
            "quantity": "150",
            "unit": "шт",
            "price_per_unit": "600",
            "material_per_unit": "0",
            "items_per_unit": 0,
            "type": "fittings",
            "category": "Без категории",
            "timestamp_added": "2025-10-09T15:05:30.062550+06:00",
            "timestamp_last_updated": "2025-10-09T15:08:59.233907+06:00"
        },
        {
            "id": "a3a6ac00006540e2838dafe3df897620",
            "name": "замок",
            "quantity": "50",
            "unit": "шт",
            "price_per_unit": "2550",
            "material_per_unit": "0",
            "items_per_unit": 0,
            "type": "fittings",
            "category": "Без категории",
            "timestamp_added": "2025-10-09T15:05:30.062550+06:00",
            "timestamp_last_updated": "2025-10-09T15:06:25.853755+06:00"
        }
    ],
    "categories": [],
    "cutting_tasks": [
        {
            "id": "c0226357642446a9928c20bb129c28f0",
            "fabric_id": "b3cbff25c59a4475b05f86c95439f350",
            "fabric_name": "103",
            "fabric_unit": "м",
            "cut_items_quantity": 450,
            "fabric_used": "550",
            "status": "completed",
            "sewn_quantity": 450,
            "timestamp_created": "2025-10-09T15:00:07.352682+06:00",
            "timestamp_completed": "2025-10-09T15:06:25.853755+06:00",
            "material_cost": "1320.0",
            "cutting_salary_cost": "0.00"
        }
    ],
    "sewing_tasks": [
        {
            "id": "ccad68d85d104f058eee371ca0e9fe7c",
            "cutting_task_id": "c0226357642446a9928c20bb129c28f0",
            "product_name": "103 Костя",
            "sewn_quantity": 450,
            "fittings_consumed": [
                {
                    "fitting_id": "a3a6ac00006540e2838dafe3df897620",
                    "fitting_name": "замок",
                    "quantity_used": 450,
                    "cost": "1147500"
                },
                {
                    "fitting_id": "549a4d0e621a4ef3bdbcffec500fe790",
                    "fitting_name": "нитка",
                    "quantity_used": 6,
                    "cost": "1380"
                },
                {
                    "fitting_id": "399e1d2a2f7f4274b8d8ff9dcd53e842",
                    "fitting_name": "пуговицы",
                    "quantity_used": 450,
                    "cost": "270000"
                }
            ],
            "fittings_cost": "1418880.00",
            "sewing_salary_cost": "0.00",
            "status": "completed",
            "qc_packed_quantity": 450,
            "qc_defective_quantity": 0,
            "defects_reported": [],
            "timestamp_created": "2025-10-09T15:06:25.853755+06:00",
            "timestamp_completed": "2025-10-09T15:06:59.558037+06:00",
            "remaining_quantity": 450
        }
    ],
    "qc_packing_items": [
        {
            "id": "7b8431b2f5854b188e1a7bdfb1a3c62a",
            "sewing_task_id": "ccad68d85d104f058eee371ca0e9fe7c",
            "product_name": "103 Костя",
            "quantity": 450,
            "timestamp_packed": "2025-10-09T15:06:59.558037+06:00",
            "packed_material_cost": "1420200.000000000000000000000",
            "packed_salary_cost": "0.00",
            "packed_total_cost": "1420200.000000000000000000000",
            "packed_margin": "0.00",
            "packed_final_price": "1420200.000000000000000000000",
            "status": "shipped_dor_doi",
            "shipment_details": {
                "type": "dor_doi_point",
                "timestamp": "2025-10-09T15:16:01.412103+06:00",
                "destination": "Торговая точка Дордой"
            }
        }
    ],
    "defect_log": [],
    "expenses": [],
    "dordoi_shipments": [
        {
            "shipment_id": "bb7baa2ec3f4488f81290e9016583287",
            "timestamp": "2025-10-09T15:16:01.412103+06:00",
            "items": [
                {
                    "product_name": "103 Костя",
                    "quantity": 450
                }
            ],
            "packed_item_id": "7b8431b2f5854b188e1a7bdfb1a3c62a"
        }
    ],
    "cloud_files": [],
    "orders": [
        {
            "id": "8ab9a0cf74a54f0fb01b17d914e283c5",
            "client_id": "5a4f0cb57e344492a6d0b0c9b4aea106",
            "client_name": "Костя",
            "model_name": "103",
            "fabric_name": "босс",
            "fabric_quantity": "550",
            "size_range": "42/44/46/54",
            "items_quantity": "450",
            "prepayment": "0",
            "status": "pending",
            "timestamp_created": "2025-10-09T14:57:19.369790+06:00",
            "timestamp": "2025-10-09T14:57:19.369790+06:00",
            "is_procured": true,
            "fittings": [
                {
                    "fitting_name": "нитки",
                    "quantity": "10"
                },
                {
                    "fitting_name": "пуговицы",
                    "quantity": "450"
                },
                {
                    "fitting_name": "замок",
                    "quantity": "450"
                },
                {
                    "fitting_name": "вискоза",
                    "quantity": "6"
                },
                {
                    "fitting_name": "оконтовка",
                    "quantity": "5"
                }
            ],
            "procurement_timestamp": "2025-10-09T14:57:34.375334+06:00"
        }
    ],
    "advances": [
        {
            "id": "de14cbbc4c8b46ed92951ef360063c11",
            "employee_name": "Абдулазиз",
            "role": "sewer",
            "amount": "2000",
            "timestamp": "2025-05-07T17:02:38.543526+06:00",
            "is_processed": false
        },
        {
            "id": "aa62dc14ecbf43eba8f565c1aaad5b66",
            "employee_name": "илхом",
            "role": "sewer",
            "amount": "550",
            "timestamp": "2025-05-07T17:03:01.050948+06:00",
            "is_processed": false
        },
        {
            "id": "eedb468931644b9da8b59bd92a52ab64",
            "employee_name": "жанна",
            "role": "packer",
            "amount": "2500",
            "timestamp": "2025-05-07T17:03:15.621530+06:00",
            "is_processed": false
        },
        {
            "id": "c9c7ca22d5bb4c17a06254b05dd2517a",
            "employee_name": "механик Леща",
            "role": "sewer",
            "amount": "1300",
            "timestamp": "2025-05-07T17:03:55.920788+06:00",
            "is_processed": false
        },
        {
            "id": "490c739d7af446d3b725e26f19e8a523",
            "employee_name": "утюжник",
            "role": "cutter",
            "amount": "2800",
            "timestamp": "2025-05-07T17:04:58.009307+06:00",
            "is_processed": false
        }
    ],
    "monthly_salaries": {
        "2025-05": {
            "Абдулазиз": {
                "role": "sewer",
                "earned": "0",
                "advances": "0",
                "final_payout": "0"
            },
            "илхом": {
                "role": "sewer",
                "earned": "0",
                "advances": "0",
                "final_payout": "0"
            },
            "жанна": {
                "role": "packer",
                "earned": "0",
                "advances": "0",
                "final_payout": "0"
            },
            "механик Леща": {
                "role": "sewer",
                "earned": "0",
                "advances": "0",
                "final_payout": "0"
            },
            "утюжник": {
                "role": "cutter",
                "earned": "0",
                "advances": "0",
                "final_payout": "0"
            }
        }
    },
    "config": {
        "salary_cutter_per_unit": "0.00",
        "salary_sewer_per_unit": "0.00",
        "salary_packer_per_unit": "0.00",
        "margin_per_item": "0.00"
    }
}