File size: 18,671 Bytes
0c59806
850d670
 
 
 
 
 
 
 
 
 
 
b172484
850d670
 
b172484
 
 
64aadf3
 
 
 
 
 
 
 
 
 
 
fd6732f
64aadf3
 
fd6732f
 
 
850d670
 
0a7c7bd
 
 
 
4d1c0d1
0a7c7bd
 
 
 
 
 
4d1c0d1
0bf31b8
 
 
 
31354d0
0bf31b8
 
 
 
 
 
31354d0
736f223
 
 
 
 
 
 
 
 
 
 
 
b411f4d
 
 
 
61da9c7
b411f4d
 
 
 
 
 
61da9c7
794cd2c
 
 
 
19dd820
794cd2c
 
 
 
 
 
19dd820
b87d164
 
 
 
 
 
 
 
 
 
 
 
db9b075
 
 
 
 
 
 
 
 
 
 
 
912cb8f
 
 
 
 
 
 
 
 
 
 
 
0c59806
 
 
3ebe1dc
 
 
 
 
 
 
 
accab79
3ebe1dc
accab79
3ebe1dc
 
4d1c0d1
 
 
 
 
 
 
 
2b74789
4d1c0d1
2b74789
4d1c0d1
 
31354d0
 
 
 
 
 
 
 
956aeb9
31354d0
956aeb9
31354d0
 
a7beaf8
 
 
 
 
 
 
 
c37a2f7
a7beaf8
c37a2f7
a7beaf8
 
19dd820
 
 
 
 
 
 
 
0e8e7e7
19dd820
0e8e7e7
19dd820
 
61da9c7
 
 
 
 
 
 
 
 
 
 
 
 
3ebe1dc
 
accab79
 
 
 
 
 
 
 
 
 
42c7a18
accab79
42c7a18
 
accab79
 
 
 
2b74789
 
 
 
 
 
 
 
 
 
25160ef
2b74789
25160ef
 
2b74789
 
 
 
956aeb9
 
 
 
 
 
 
 
 
 
21a6aed
956aeb9
21a6aed
 
956aeb9
 
 
 
c37a2f7
 
 
 
 
 
 
 
 
 
24a73c6
c37a2f7
24a73c6
 
c37a2f7
 
 
 
0e8e7e7
 
 
 
 
 
 
 
 
 
478a468
0e8e7e7
478a468
 
0e8e7e7
 
 
 
accab79
 
42c7a18
 
 
 
 
 
 
 
 
 
 
 
9933370
 
 
 
 
 
 
25160ef
 
 
 
 
 
 
 
 
 
 
 
5c53988
 
 
 
 
 
 
21a6aed
 
 
 
 
 
 
 
 
 
 
 
c56ee8a
 
 
 
 
 
 
24a73c6
 
 
 
 
 
 
 
 
 
 
 
09440dd
 
 
 
 
 
 
478a468
 
 
 
 
 
 
 
 
 
 
 
b97d701
 
 
 
 
 
42c7a18
 
0c59806
aa004b1
 
 
 
 
 
 
 
c435e63
 
 
 
 
 
81f9446
 
 
 
 
 
3614698
 
 
 
 
 
 
 
bc589f9
 
 
 
 
 
 
 
c435e63
 
b97d701
 
 
 
 
 
 
 
 
 
 
 
 
0c59806
 
9cbc071
 
 
 
bf5f707
bc589f9
 
 
 
 
 
 
 
 
 
 
0c59806
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
{
    "orders": [
        {
            "id": "4eec6b47e1124ff5b8c7942941763cac",
            "client_id": "e41d742c4c8f4e948ab3fa5495d909ea",
            "client_name": "тестовый клиент",
            "model_name": "322213",
            "fabric_name": "тестовая ткань11",
            "fabric_quantity": "1000",
            "size_range": "M",
            "items_quantity": "1200",
            "prepayment": "0",
            "status": "pending",
            "timestamp_created": "2025-04-04T10:20:45.735979+06:00",
            "timestamp": "2025-04-04T10:20:45.735979+06:00",
            "is_procured": true,
            "fittings": [],
            "procurement_timestamp": "2025-04-04T10:24:23.287143+06:00"
        },
        {
            "id": "d64d046290fd4d05a437818794e07431",
            "client_id": "e41d742c4c8f4e948ab3fa5495d909ea",
            "client_name": "тестовый клиент",
            "model_name": "22321",
            "fabric_name": "тестовая ткань11",
            "fabric_quantity": "1000",
            "size_range": "M",
            "items_quantity": "1200",
            "prepayment": "0",
            "status": "pending",
            "timestamp_created": "2025-04-04T10:48:42.459990+06:00",
            "timestamp": "2025-04-04T10:48:42.459990+06:00",
            "is_procured": true,
            "fittings": [],
            "procurement_timestamp": "2025-04-04T10:54:53.924419+06:00"
        }
    ],
    "materials": [
        {
            "id": "03c6db217b3a4e1e9835cb60ee8ab3a4",
            "name": "тестовая ткань",
            "quantity": "0.00",
            "unit": "м",
            "price_per_unit": "100",
            "items_per_unit": 50,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-02T19:58:57.702732+06:00",
            "timestamp_last_updated": "2025-04-03T16:27:44.645272+06:00"
        },
        {
            "id": "839084e02dd74c3983dbceff5a1a0a12",
            "name": "тестовая ткань 1",
            "quantity": "0.00",
            "unit": "м",
            "price_per_unit": "100",
            "items_per_unit": 50,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-03T18:34:29.556151+06:00",
            "timestamp_last_updated": "2025-04-03T18:36:25.369269+06:00"
        },
        {
            "id": "b0ce964e517c4b628b416b30c7ad8690",
            "name": "тестовый закуп фурн",
            "quantity": "100",
            "unit": "кг",
            "price_per_unit": "100",
            "items_per_unit": 50,
            "type": "fittings",
            "category": "Без категории",
            "timestamp_added": "2025-04-03T18:34:49.333478+06:00",
            "timestamp_last_updated": "2025-04-03T18:34:49.333478+06:00"
        },
        {
            "id": "1323490fd04541228defa3334e66ca55",
            "name": "тестовый закуп фурнqqqq",
            "quantity": "0.00",
            "unit": "м",
            "price_per_unit": "100",
            "items_per_unit": 50,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-03T21:09:23.336081+06:00",
            "timestamp_last_updated": "2025-04-04T10:33:52.477548+06:00"
        },
        {
            "id": "e0004ccb179d41348a728cd6d541a4b8",
            "name": "Аоалал",
            "quantity": "0.00",
            "unit": "м",
            "price_per_unit": "100",
            "items_per_unit": 1000,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-03T21:35:11.299836+06:00",
            "timestamp_last_updated": "2025-04-03T21:35:28.269737+06:00"
        },
        {
            "id": "3b3919b3168c42e7bf44438454ea4fc7",
            "name": "Аоалал3838",
            "quantity": "1000",
            "unit": "м",
            "price_per_unit": "150",
            "items_per_unit": 100,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-04T09:00:45.774764+06:00",
            "timestamp_last_updated": "2025-04-04T09:00:45.774764+06:00"
        },
        {
            "id": "de18f7d4d45e46398815dde38ca2e47e",
            "name": "тестовый закуп 2",
            "quantity": "100",
            "unit": "м",
            "price_per_unit": "100",
            "items_per_unit": 10,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-04T10:42:28.786355+06:00",
            "timestamp_last_updated": "2025-04-04T10:42:28.786355+06:00"
        },
        {
            "id": "5377cdefb51b4b1eb0967525c042dd22",
            "name": "ткань 11",
            "quantity": "100",
            "unit": "м",
            "price_per_unit": "100",
            "items_per_unit": 50,
            "type": "fabric",
            "category": "Без категории",
            "timestamp_added": "2025-04-04T10:54:22.237617+06:00",
            "timestamp_last_updated": "2025-04-04T10:54:22.237617+06:00"
        }
    ],
    "categories": [],
    "cutting_tasks": [
        {
            "id": "65c397984d714182896733de6d998c99",
            "fabric_id": "03c6db217b3a4e1e9835cb60ee8ab3a4",
            "fabric_name": "тестовая ткань",
            "fabric_unit": "м",
            "cut_items_quantity": 50,
            "fabric_used": "100",
            "status": "completed",
            "timestamp_created": "2025-04-02T19:59:28.791018+06:00",
            "timestamp_completed": "2025-04-02T19:59:49.617254+06:00",
            "material_cost": "10000",
            "cutting_salary_cost": "0.00"
        },
        {
            "id": "a250301a331345619e82b96d1f29009b",
            "fabric_id": "03c6db217b3a4e1e9835cb60ee8ab3a4",
            "fabric_name": "тестовая ткань",
            "fabric_unit": "м",
            "cut_items_quantity": 50,
            "fabric_used": "100",
            "status": "completed",
            "timestamp_created": "2025-04-03T16:27:44.645272+06:00",
            "timestamp_completed": "2025-04-03T16:28:06.458641+06:00",
            "material_cost": "10000",
            "cutting_salary_cost": "1000"
        },
        {
            "id": "b3114c79b89c41cebcb53b734781c62d",
            "fabric_id": "839084e02dd74c3983dbceff5a1a0a12",
            "fabric_name": "тестовая ткань 1",
            "fabric_unit": "м",
            "cut_items_quantity": 50,
            "fabric_used": "100",
            "status": "completed",
            "timestamp_created": "2025-04-03T18:36:25.369269+06:00",
            "timestamp_completed": "2025-04-03T18:37:11.061264+06:00",
            "material_cost": "10000",
            "cutting_salary_cost": "1000"
        },
        {
            "id": "7e1ad56a561842759c0382a180c69c01",
            "fabric_id": "1323490fd04541228defa3334e66ca55",
            "fabric_name": "тестовый закуп фурнqqqq",
            "fabric_unit": "м",
            "cut_items_quantity": 50,
            "fabric_used": "100",
            "status": "completed",
            "timestamp_created": "2025-04-03T21:09:37.307480+06:00",
            "timestamp_completed": "2025-04-03T21:10:16.715682+06:00",
            "material_cost": "10000",
            "cutting_salary_cost": "1000"
        },
        {
            "id": "8d7b4fdb81f74212b5538a394d28b8ca",
            "fabric_id": "e0004ccb179d41348a728cd6d541a4b8",
            "fabric_name": "Аоалал",
            "fabric_unit": "м",
            "cut_items_quantity": 500,
            "fabric_used": "1000",
            "status": "completed",
            "timestamp_created": "2025-04-03T21:35:28.269737+06:00",
            "timestamp_completed": "2025-04-03T21:36:17.699912+06:00",
            "material_cost": "100000",
            "cutting_salary_cost": "10000"
        },
        {
            "id": "7f988b9ec2fd43b9b27e449889fa97b7",
            "fabric_id": "1323490fd04541228defa3334e66ca55",
            "fabric_name": "тестовый закуп фурнqqqq",
            "fabric_unit": "м",
            "cut_items_quantity": 5000,
            "fabric_used": "100",
            "status": "pending",
            "timestamp_created": "2025-04-04T10:33:52.477548+06:00",
            "timestamp_completed": null,
            "material_cost": "10000",
            "cutting_salary_cost": "100000"
        }
    ],
    "sewing_tasks": [
        {
            "id": "eefb395fa84f4f74b5189cecb0c40209",
            "cutting_task_id": "65c397984d714182896733de6d998c99",
            "product_name": "тестовая ткань",
            "sewn_quantity": 50,
            "fabric_id": "03c6db217b3a4e1e9835cb60ee8ab3a4",
            "fabric_name": "тестовая ткань",
            "fittings_consumed": [],
            "defects_reported": [],
            "status": "completed",
            "timestamp_created": "2025-04-02T19:59:49.617254+06:00",
            "timestamp_completed": "2025-04-02T20:00:08.754515+06:00",
            "qc_packed_quantity": 50,
            "qc_defective_quantity": 0,
            "fittings_cost": "0",
            "sewing_salary_cost": "0.00",
            "cutting_salary_cost": "0.00"
        },
        {
            "id": "be124c3f90f54e989f45715f124115f0",
            "cutting_task_id": "a250301a331345619e82b96d1f29009b",
            "product_name": "3w5324",
            "sewn_quantity": 50,
            "fabric_id": "03c6db217b3a4e1e9835cb60ee8ab3a4",
            "fabric_name": "тестовая ткань",
            "fittings_consumed": [],
            "defects_reported": [],
            "status": "completed",
            "timestamp_created": "2025-04-03T16:28:06.458641+06:00",
            "timestamp_completed": "2025-04-03T16:28:22.143341+06:00",
            "qc_packed_quantity": 50,
            "qc_defective_quantity": 0,
            "fittings_cost": "0",
            "sewing_salary_cost": "5000",
            "cutting_salary_cost": "1000"
        },
        {
            "id": "065005335f854baf8f745187cc9a808a",
            "cutting_task_id": "b3114c79b89c41cebcb53b734781c62d",
            "product_name": "34325324",
            "sewn_quantity": 50,
            "fabric_id": "839084e02dd74c3983dbceff5a1a0a12",
            "fabric_name": "тестовая ткань 1",
            "fittings_consumed": [],
            "defects_reported": [],
            "status": "completed",
            "timestamp_created": "2025-04-03T18:37:11.061264+06:00",
            "timestamp_completed": "2025-04-03T18:37:32.570100+06:00",
            "qc_packed_quantity": 50,
            "qc_defective_quantity": 0,
            "fittings_cost": "0",
            "sewing_salary_cost": "5000",
            "cutting_salary_cost": "1000"
        },
        {
            "id": "eefa50c90f084906a9f82320796b451c",
            "cutting_task_id": "7e1ad56a561842759c0382a180c69c01",
            "product_name": "332432",
            "sewn_quantity": 50,
            "fabric_id": "1323490fd04541228defa3334e66ca55",
            "fabric_name": "тестовый закуп фурнqqqq",
            "fittings_consumed": [],
            "defects_reported": [],
            "status": "completed",
            "timestamp_created": "2025-04-03T21:10:16.715682+06:00",
            "timestamp_completed": "2025-04-03T21:10:39.791372+06:00",
            "qc_packed_quantity": 50,
            "qc_defective_quantity": 0,
            "fittings_cost": "0",
            "sewing_salary_cost": "5000",
            "cutting_salary_cost": "1000"
        },
        {
            "id": "0b2bc37b0fc544749f6db44bbbe0545b",
            "cutting_task_id": "8d7b4fdb81f74212b5538a394d28b8ca",
            "product_name": "Аоалал",
            "sewn_quantity": 300,
            "fabric_id": "e0004ccb179d41348a728cd6d541a4b8",
            "fabric_name": "Аоалал",
            "fittings_consumed": [],
            "defects_reported": [],
            "status": "completed",
            "timestamp_created": "2025-04-03T21:36:17.699912+06:00",
            "timestamp_completed": "2025-04-03T21:36:42.605568+06:00",
            "qc_packed_quantity": 300,
            "qc_defective_quantity": 0,
            "fittings_cost": "0",
            "sewing_salary_cost": "30000",
            "cutting_salary_cost": "10000"
        }
    ],
    "qc_packing_items": [
        {
            "id": "5aa5056b66cf46fbabc2986d652a6260",
            "sewing_task_id": "eefb395fa84f4f74b5189cecb0c40209",
            "product_name": "тестовая ткань",
            "quantity": 50,
            "timestamp_packed": "2025-04-02T20:00:08.754515+06:00",
            "packed_material_cost": "10000",
            "packed_salary_cost": "0.00",
            "packed_total_cost": "10000.00",
            "packed_margin": "0.00",
            "packed_final_price": "10000.00",
            "status": "shipped_client",
            "shipment_details": {
                "type": "client",
                "timestamp": "2025-04-02T20:01:21.797028+06:00",
                "client_id": "e41d742c4c8f4e948ab3fa5495d909ea",
                "client_name": "тестовый клиент"
            }
        },
        {
            "id": "61f2f7dcdfe7450ab5dd8b01f94eded3",
            "sewing_task_id": "be124c3f90f54e989f45715f124115f0",
            "product_name": "3w5324",
            "quantity": 50,
            "timestamp_packed": "2025-04-03T16:28:22.143341+06:00",
            "packed_material_cost": "10000",
            "packed_salary_cost": "7000",
            "packed_total_cost": "17000",
            "packed_margin": "6000",
            "packed_final_price": "23000",
            "status": "shipped_client",
            "shipment_details": {
                "type": "client",
                "timestamp": "2025-04-03T16:36:17.737658+06:00",
                "client_id": "e41d742c4c8f4e948ab3fa5495d909ea",
                "client_name": "тестовый клиент"
            }
        },
        {
            "id": "e9b907fd523c4ceab17ff587867ebaa3",
            "sewing_task_id": "065005335f854baf8f745187cc9a808a",
            "product_name": "34325324",
            "quantity": 50,
            "timestamp_packed": "2025-04-03T18:37:32.570100+06:00",
            "packed_material_cost": "10000",
            "packed_salary_cost": "7000",
            "packed_total_cost": "17000",
            "packed_margin": "6000",
            "packed_final_price": "23000",
            "status": "shipped_client",
            "shipment_details": {
                "type": "client",
                "timestamp": "2025-04-03T18:37:51.941599+06:00",
                "client_id": "8334abcf4e3040ce8b0c44e4b913effc",
                "client_name": "jhklhjklj"
            }
        },
        {
            "id": "514551e6fe584da2aa9fb885846fbbeb",
            "sewing_task_id": "eefa50c90f084906a9f82320796b451c",
            "product_name": "332432",
            "quantity": 50,
            "timestamp_packed": "2025-04-03T21:10:39.791372+06:00",
            "packed_material_cost": "10000",
            "packed_salary_cost": "7000",
            "packed_total_cost": "17000",
            "packed_margin": "6000",
            "packed_final_price": "23000",
            "status": "shipped_client",
            "shipment_details": {
                "type": "client",
                "timestamp": "2025-04-03T21:11:08.731684+06:00",
                "client_id": "8334abcf4e3040ce8b0c44e4b913effc",
                "client_name": "jhklhjklj"
            }
        },
        {
            "id": "ae409ecfbf4844d1ad63a6513955d627",
            "sewing_task_id": "0b2bc37b0fc544749f6db44bbbe0545b",
            "product_name": "Аоалал",
            "quantity": 300,
            "timestamp_packed": "2025-04-03T21:36:42.605568+06:00",
            "packed_material_cost": "60000",
            "packed_salary_cost": "42000",
            "packed_total_cost": "102000",
            "packed_margin": "36000",
            "packed_final_price": "138000",
            "status": "shipped_dor_doi",
            "shipment_details": {
                "type": "dor_doi_point",
                "timestamp": "2025-04-03T21:37:10.149492+06:00",
                "destination": "Торговая точка Дордой"
            }
        }
    ],
    "defect_log": [],
    "expenses": [
        {
            "id": "02250ab3f7d94ce2a77be2617b976c4d",
            "description": "Test",
            "amount": "500",
            "timestamp": "2025-04-03T14:17:22.250751+06:00"
        }
    ],
    "advances": [
        {
            "id": "da94be39eb1849ae8b090adb7b51bdb5",
            "employee_type": "sewer",
            "amount": "500",
            "timestamp": "2025-04-03T08:30:36.376729+06:00"
        },
        {
            "id": "f3c963805cce4512b9ff74ee611f428d",
            "employee_type": "sewer",
            "amount": "3000",
            "timestamp": "2025-04-03T08:31:34.826280+06:00"
        },
        {
            "id": "e53842e0750e4412b860bedaa9692c09",
            "employee_name": "Ntcn",
            "role": "sewer",
            "amount": "100",
            "timestamp": "2025-04-03T20:59:16.595544+06:00",
            "is_processed": false
        },
        {
            "id": "95a225dae4374df083776f3dd6fdc94b",
            "employee_name": "Ntcn",
            "role": "cutter",
            "amount": "100",
            "timestamp": "2025-04-03T21:07:21.517474+06:00",
            "is_processed": false
        }
    ],
    "dordoi_shipments": [
        {
            "shipment_id": "950c67eb32bb4383b3717d5d7bdee151",
            "timestamp": "2025-04-03T21:37:10.149492+06:00",
            "items": [
                {
                    "product_name": "Аоалал",
                    "quantity": 300
                }
            ],
            "packed_item_id": "ae409ecfbf4844d1ad63a6513955d627"
        }
    ],
    "cloud_files": [],
    "config": {
        "salary_cutter_per_unit": "20",
        "salary_sewer_per_unit": "100",
        "salary_packer_per_unit": "20",
        "margin_per_item": "120"
    },
    "client_payments": [],
    "monthly_salaries": {
        "2025-04": {
            "Ntcn": {
                "role": "cutter",
                "earned": "0",
                "advances": "0",
                "final_payout": "0"
            }
        }
    }
}