KSA vat phase 2 requires sending xml ubl2.1 standard e-invoice to their system, i searched for ways to convert the invoice data to ubl standard what i was able to find is:
- a python package ublcii, i tried using this package but the python version i have doesnt support this package and I’m guessing this is what is causing this error:
Traceback (most recent call last): File "/usr/local/bin/cii2ubl", line 5, in <module> from ublcii.translate import cii2ubl File "/usr/local/lib/python3.8/dist-packages/ublcii/translate.py", line 8, in <module> from bots import botsinit File "/usr/local/lib/python3.8/dist-packages/bots/botsinit.py", line 15, in <module> from . import botslib File "/usr/local/lib/python3.8/dist-packages/bots/botslib.py", line 20, in <module> from django.utils.translation import ugettext as _ ImportError: cannot import name 'ugettext' from 'django.utils.translation' (/usr/local/lib/python3.8/dist-packages/django/utils/translation/__init__.py)
- after i searched some more for another solution i found npm ubl-builder i am still not sure if this one is a good solution or not as i am still trying to find out how to implement custom npm files to my app.
so any suggestions or references to where and what i should be looking for would be appreciated.