-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
88 lines (86 loc) · 2.8 KB
/
main.py
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
import sys
from project.stage import Stage
def main()->int:
content = """
{
"codPrefijo": "00",
"numero": "string",
"fecha": "dd/MM/yyyy",
"codTercero": "00",
"codVendedor": "string",
"codDespachar": "string",
"codFormaPago": "string",
"codBanco": "00",
"fechaVence": "dd/MM/yyyy",
"plazoDias": 0,
"observacion": "string",
"itemsDescuentos":[
{
"codconcepto": "string",
"valordto": "string",
"baseretd": "0",
"porcretd": "0",
"porivad": "0",
"centrocostos": "00",
"codarea": "111"
},
{
"codconcepto": "string",
"valordto": "string",
"baseretd": "0",
"porcretd": "0",
"porivad": "0",
"centrocostos": "00",
"codarea": "222"
}
],
"itemsFormaPago":[
{
"codFormaPago": "string",
"plazoDias": "string",
"fechaVencimiento": "string",
"valor": "string"
},
{
"codFormaPago": "string",
"plazoDias": "string",
"fechaVencimiento": "string",
"valor": "string"
}
],
"itemsPedido":[
{
"codMat": "string",
"codBodega": "00",
"codTalla": "string",
"codColor": "string",
"cantidad": 0,
"tipoUnidad": "M ó D",
"descuento": 0,
"centrosCostos": "string",
"porcIva": 0,
"valor": 0,
"impConsumo": 0,
"observacion": "string"
},
{
"codMat": "string",
"codBodega": "00",
"codTalla": "string",
"codColor": "string",
"cantidad": 0,
"tipoUnidad": "M ó D",
"descuento": 0,
"centrosCostos": "string",
"porcIva": 0,
"valor": 0,
"impConsumo": 0,
"observacion": "string"
}
]
}
"""
stage = Stage()
stage.micro(content)
if __name__ == '__main__':
sys.exit(main())