From 1665c4b09f44259beeee6ae5b37f85eb0eae6003 Mon Sep 17 00:00:00 2001 From: FabioSerrao Date: Mon, 28 Oct 2019 16:12:07 -0300 Subject: [PATCH] Fixa o valor de cubagem para zero --- correios/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/correios/client.py b/correios/client.py index dfbdd89..3415f24 100644 --- a/correios/client.py +++ b/correios/client.py @@ -436,7 +436,7 @@ def _get_shipping_label_element(self, shipping_label: ShippingLabel): xml_utils.SubElement(item, "numero_etiqueta", text=str(shipping_label.tracking_code)) xml_utils.SubElement(item, "codigo_objeto_cliente") xml_utils.SubElement(item, "codigo_servico_postagem", text=str(shipping_label.service)) - xml_utils.SubElement(item, "cubagem", text=str(shipping_label.posting_weight).replace(".", ",")) + xml_utils.SubElement(item, "cubagem", text=str(Decimal('0.00')).replace(".", ",")) xml_utils.SubElement(item, "peso", text=str(shipping_label.package.weight)) xml_utils.SubElement(item, "rt1") xml_utils.SubElement(item, "rt2")