Skip to content

Commit

Permalink
Merge pull request #54 from luizalabs/feat/add-volumetric-weight-to-xml
Browse files Browse the repository at this point in the history
feat: properly includee volumetric weight on xml
  • Loading branch information
pedrospoljaric-luizalabs authored Jun 1, 2023
2 parents 93654f8 + 008fe97 commit 322a5f3
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 322a5f3

Please sign in to comment.