shipcloud: fix customs value representation
* per-item value_amount should be a string, not a float value * total_value_amount should be an integer, not a float value "Error in Shipment Data: Bitte geben Sie die Versandkosten für die Zollabfertigung an. Der eingegebene Wert ist zu lang und wurde gekürzt." Closes: SYS#5510
This commit is contained in:
parent
06ab659ff1
commit
cf9f30057f
|
@ -130,7 +130,7 @@ def gen_customs_item(origin, desc, hts, qty, value, net_weight):
|
||||||
'description': desc,
|
'description': desc,
|
||||||
'hs_tariff_number': str(hts),
|
'hs_tariff_number': str(hts),
|
||||||
'quantity': qty,
|
'quantity': qty,
|
||||||
'value_amount': value,
|
'value_amount': '%.2f' % value,
|
||||||
'net_weight': net_weight,
|
'net_weight': net_weight,
|
||||||
#'gross_weight': ,
|
#'gross_weight': ,
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ def gen_customs_decl(currency, invoice_nr, net_total, items, importer_ref=None,
|
||||||
#'contents_explanation': ,
|
#'contents_explanation': ,
|
||||||
'currency' : currency,
|
'currency' : currency,
|
||||||
'invoice_number': str(invoice_nr),
|
'invoice_number': str(invoice_nr),
|
||||||
'total_value_amount': net_total,
|
'total_value_amount': int(net_total),
|
||||||
'items': customs_items,
|
'items': customs_items,
|
||||||
}
|
}
|
||||||
if importer_ref:
|
if importer_ref:
|
||||||
|
|
Loading…
Reference in New Issue