Skip to content

Commit

Permalink
feat: properly includee volumetric weight on xml
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrospoljaric-luizalabs committed Jun 1, 2023
1 parent 93654f8 commit 008fe97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion correios/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,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(Decimal('0.00')).replace(".", ","))
xml_utils.SubElement(item, "cubagem", text=str(shipping_label.package.volumetric_weight).replace(".", ","))
xml_utils.SubElement(item, "peso", text=str(shipping_label.package.weight))
xml_utils.SubElement(item, "rt1")
xml_utils.SubElement(item, "rt2")
Expand Down

0 comments on commit 008fe97

Please sign in to comment.