diff --git a/models/shipcloud.py b/models/shipcloud.py index 26d4651..fb7816c 100644 --- a/models/shipcloud.py +++ b/models/shipcloud.py @@ -130,7 +130,7 @@ def gen_customs_item(origin, desc, hts, qty, value, net_weight): 'description': desc, 'hs_tariff_number': str(hts), 'quantity': qty, - 'value_amount': value, + 'value_amount': '%.2f' % value, 'net_weight': net_weight, #'gross_weight': , } @@ -144,7 +144,7 @@ def gen_customs_decl(currency, invoice_nr, net_total, items, importer_ref=None, #'contents_explanation': , 'currency' : currency, 'invoice_number': str(invoice_nr), - 'total_value_amount': net_total, + 'total_value_amount': int(net_total), 'items': customs_items, } if importer_ref: