Skip to content

About

Customize and Print your AbraFlexi Contracts

Resources

Stars

1 star

Watchers

2 watching

Forks

Repository files navigation

License: MIT Packaging: deb

project logo

Customize and Print you AbraFlexi contracts

wakatime

Customize and Print your AbraFlexi Contracts

Usage

Command line: create contracts and manage their items

export ABRAFLEXI_URL=https://abraflexi.example.org:5434 ABRAFLEXI_COMPANY=firma \
       ABRAFLEXI_LOGIN=user ABRAFLEXI_PASSWORD=secret

# create a contract with two items (PRICELIST[:QTY[:PRICE]])
abraflexi-contractor create SMLOUVA-1 --firma=ZAKAZNIK --type=SAAS \
    --item=MULTIFLEXI:1 --item=NEXTCLOUD1:2:49

abraflexi-contractor add-item    SMLOUVA-1 --cenik=MAILBOX1 --qty=5
abraflexi-contractor remove-item SMLOUVA-1 --cenik=MAILBOX1      # or --id=ITEM_ID
abraflexi-contractor list-items  SMLOUVA-1

Output is JSON. Without --price the base price without VAT of the pricelist item is used. Exit code is 0 on success, 1 when AbraFlexi refuses the operation, 2 on invalid input. The package multiflexi-abraflexi-contractor provides the same tool as a MultiFlexi application.

Installation

In the browser, you need to manually open the install.php page.

Fill in the access credentials for your AbraFlexi in the form. If they are correct, a trigger button will be created in AbraFlexi's received invoices.

(If the server and port auto-detection fails, please copy the value from the address bar to the corresponding field)

The running application can be tested at contractor.vitexsoftware.com

Testing

If the page is not called with the $authSessionId && $companyUrl parameters, it will attempt to load the configuration file ../testing/.env

Deployment

K dispozici je Docker image: https://hub.docker.com/r/vitexsoftware/abraflexi-contractor/tags

docker run -d -p ${OUTPORT}:${INPORT} --name ${CONTNAME} vitexsoftware/abraflexi-contractor

Or a Debian package for installation on a server with Debian or Ubuntu system:

sudo apt install lsb-release wget apt-transport-https bzip2

sudo wget -O /usr/share/keyrings/vitexsoftware.gpg https://repo.vitexsoftware.cz/keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/vitexsoftware.gpg]  https://repo.vitexsoftware.com  $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo apt update

sudo apt install abraflexi-contractor

If you are using Apache, you need to activate its configuration:

a2enconf abraflexi-contractor
apache2ctl restart

After that, the application is available without any further configuration at http://0.0.0.0/abraflexi-contractor/

Installer

About

Customize and Print your AbraFlexi Contracts

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages