Metadata-Version: 2.1
Name: artd_siigo
Version: 1.0.2
Summary: ArtD SIIGO.
Home-page: https://www.artd.com.co/
Author: Jonathan Urzola
Author-email: jonathan@artd.com.co
License: BSD-3-Clause
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=4.2.10
Requires-Dist: artd-location>=1.0.6
Requires-Dist: artd-modules>=1.0.6
Requires-Dist: artd-order>=1.0.9
Requires-Dist: artd-partner>=1.0.13
Requires-Dist: artd-product>=1.0.22
Requires-Dist: artd-service>=1.0.8
Requires-Dist: artd-stock>=1.0.9
Requires-Dist: artd-urls>=1.0.6
Requires-Dist: artd_price_list>=1.0.13
Requires-Dist: artd_promotion>=1.0.17
Requires-Dist: asgiref>=3.8.1
Requires-Dist: asttokens>=2.4.1
Requires-Dist: backports.tarfile>=1.2.0
Requires-Dist: black>=24.8.0
Requires-Dist: certifi>=2024.8.30
Requires-Dist: cffi>=1.17.1
Requires-Dist: charset-normalizer>=3.3.2
Requires-Dist: click>=8.1.7
Requires-Dist: cryptography>=43.0.1
Requires-Dist: decorator>=5.1.1
Requires-Dist: django-admin>=2.0.2
Requires-Dist: django-autocomplete-light>=3.11.0
Requires-Dist: django-excel-response2>=3.0.6
Requires-Dist: django-extensions>=3.2.3
Requires-Dist: django-json-widget>=2.0.1
Requires-Dist: django-six>=1.0.5
Requires-Dist: docutils>=0.21.2
Requires-Dist: excel-base>=1.0.4
Requires-Dist: exceptiongroup>=1.2.2
Requires-Dist: executing>=2.1.0
Requires-Dist: idna>=3.10
Requires-Dist: importlib_metadata>=8.5.0
Requires-Dist: ipython>=8.28.0
Requires-Dist: isoweek>=1.3.3
Requires-Dist: jaraco.classes>=3.4.0
Requires-Dist: jaraco.context>=6.0.1
Requires-Dist: jaraco.functools>=4.1.0
Requires-Dist: jedi>=0.19.1
Requires-Dist: jeepney>=0.8.0
Requires-Dist: keyring>=25.4.1
Requires-Dist: markdown-it-py>=3.0.0
Requires-Dist: matplotlib-inline>=0.1.7
Requires-Dist: mdurl>=0.1.2
Requires-Dist: more-itertools>=10.5.0
Requires-Dist: mypy-extensions>=1.0.0
Requires-Dist: nh3>=0.2.18
Requires-Dist: packaging>=24.1
Requires-Dist: parso>=0.8.4
Requires-Dist: pathspec>=0.12.1
Requires-Dist: pexpect>=4.9.0
Requires-Dist: pillow>=10.4.0
Requires-Dist: pkginfo>=1.10.0
Requires-Dist: platformdirs>=4.3.6
Requires-Dist: prompt_toolkit>=3.0.48
Requires-Dist: ptyprocess>=0.7.0
Requires-Dist: pure_eval>=0.2.3
Requires-Dist: pycparser>=2.22
Requires-Dist: Pygments>=2.18.0
Requires-Dist: python-dateutil>=2.9.0.post0
Requires-Dist: readme_renderer>=44.0
Requires-Dist: requests>=2.32.3
Requires-Dist: requests-toolbelt>=1.0.0
Requires-Dist: rfc3986>=2.0.0
Requires-Dist: rich>=13.9.2
Requires-Dist: screen>=1.0.1
Requires-Dist: SecretStorage>=3.3.3
Requires-Dist: six>=1.16.0
Requires-Dist: sqlparse>=0.5.1
Requires-Dist: stack-data>=0.6.3
Requires-Dist: TimeConvert>=3.0.13
Requires-Dist: tomli>=2.0.2
Requires-Dist: traitlets>=5.14.3
Requires-Dist: twine>=5.1.1
Requires-Dist: types-requests>=2.32.0.20240914
Requires-Dist: typing_extensions>=4.12.2
Requires-Dist: tzlocal>=5.2
Requires-Dist: urllib3>=2.2.3
Requires-Dist: wcwidth>=0.2.13
Requires-Dist: xlwt>=1.3.0
Requires-Dist: zipp>=3.20.2

# ArtD SIIGO

The SIIGO package developed by ArtD, allows the integration of the Colombian ERP SIIGO, is responsible for importing the data to then be approved and the subsequent incorporation of data within SIIGO, data such as clients, products and accounting vouchers.

## How to use?

### 1. Install The package
```bash
pip install artd-siigo
```

### 2. Add the required on settings.py as follows
```python
INSTALLED_APPS = [
    "dal",
    "dal_select2",
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "django_extensions",
    "django_json_widget",
    "artd_location",
    "artd_modules",
    "artd_partner",
    "artd_service",
    "artd_urls",
    "artd_product",
    "artd_customer",
    "artd_promotion",
    "artd_order",
    "artd_siigo",
]

```
### 3. Run the migrations command
```bash
python manage.py migrate
```

### 4. Run the base commands
```bash
python manage.py create_countries
python manage.py create_colombian_regions
python manage.py create_colombian_cities
python manage.py create_taxes
python manage.py create_apps
python manage.py create_services
python manage.py insert_installed_apps_and_permissions
python manage.py populate_customer_types your_partner_slug
python manage.py populate_customer_person_types your_partner_slug
python manage.py populate_customer_document_types your_partner_slug
python manage.py map_locations
```

### 5. Create a superuser
```bash
python manage.py createsuperuser
```

### 6. Log in to your Django instance manager

### 7. Create a partner

### 8. Configure your SIIGO credencials

### 9. Configure SIIGO credentials in the SIIGO Credentials menu within the ArtD SIIGO app.
The required fields:

- Partner: Selector for Yopper company.
- Partner ID: Company ID in SIIGO.
- Is in sandbox: Set whether it is in test mode or not (recommended at the beginning).
- API URL: SIIGO API URL.
- Sandbox Username: The username for testing (provided by the SIIGO team upon request).
- Sandbox Access Key: The access key for testing (provided by the SIIGO team upon request).
- Production Username: The production username (obtained from the SIIGO Cloud interface).
- Production Access Key: The production access key (obtained from the SIIGO Cloud interface).
- Siigo Credential Data: Leave this field empty; the system will populate it automatically.

### 10. Run the following commands

```bash
python manage.py import_account_groups_from_siigo your_partner_slug
python manage.py import_taxes_from_siigo your_partner_slug
python manage.py import_price_lists_from_siigo your_partner_slug
python manage.py import_warehouses_from_siigo your_partner_slug
python manage.py import_users_from_siigo your_partner_slug
python manage.py import_document_types_from_siigo your_partner_slug
python manage.py import_payment_types_from_siigo your_partner_slug
python manage.py import_cost_center_from_siigo your_partner_slug
python manage.py import_fixed_assets_from_siigo your_partner_slug
python manage.py create_base_customer_groups
python manage.py create_tax_segments
python manage.py create_taxes
python manage.py populate_customer_document_types
python manage.py populate_customer_person_types
python manage.py populate_customer_document_types
python manage.py import_customers_from_siigo your_partner_slug
python manage.py import_product_types_from_siigo your_partner_slug
```

### 11. Before importing products, the following must be mapped:
- Product types
- Tax types
- Fiscal responsibilities by segment

### 12. Import products from SIIGO:
```bash
python manage.py import_products_form_siigo your_partner_slug
```

### 13. Update VAT data:
```bash
python manage.py create_vat_data
```

### 14. To integrate accounting vouchers, the following mappings must be made between Yop & Yop and SIIGO:
- Countries
- Regions
- Cities
- Customer document types
- Person types
- Customer types
- Fiscal responsibilities
