Skip to content

Comandos com intervalo de datas

Comandos de sincronização por período chegam com argumentos.de e argumentos.ate como strings ISO 8601 UTC.

python
from datetime import datetime

de  = datetime.fromisoformat(cmd["argumentos"]["de"].replace("Z", "+00:00"))
ate = datetime.fromisoformat(cmd["argumentos"]["ate"].replace("Z", "+00:00"))

Comandos com intervalo de datas: ENVIAR_VENDAS_INTERVALO, ENVIAR_PRODUTOS_INTERVALO, ENVIAR_DEVOLUCOES_INTERVALO, ENVIAR_COMPRAS_INTERVALO, ENVIAR_CONTRAPROVA_VENDAS_INTERVALO, ENVIAR_CONTRAPROVA_DEVOLUCOES_INTERVALO.