From 1d0fac8e3e0efe1f323b688df552da128f156a1d Mon Sep 17 00:00:00 2001 From: androba Date: Wed, 10 Jun 2020 18:08:38 -0300 Subject: [PATCH] Add 0s to left of NUMBER to 8 characters --- l10n_ar_stock/models/stock_picking.py | 1 + 1 file changed, 1 insertion(+) diff --git a/l10n_ar_stock/models/stock_picking.py b/l10n_ar_stock/models/stock_picking.py index 2fea986..f547e89 100644 --- a/l10n_ar_stock/models/stock_picking.py +++ b/l10n_ar_stock/models/stock_picking.py @@ -145,6 +145,7 @@ def get_arba_file_data( PREFIJO = str(document_parts['point_of_sale']) NUMERO = str(document_parts['invoice_number']) PREFIJO = PREFIJO.rjust(5, '0') + NUMERO = NUMERO.rjust(8, '0') # rellenar y truncar a 2 # TIPO = '{:>2.2}'.format(letter.name)