
| Filename | |
| Version | 1.20 |
| Age in days | 2039 |
| Release date | 2021 04. 07. |
| Size | 107.13 KB |
| id | 2 |
| Name | abraflexi-digest |
| Package | |
| Appname | |
| Essential | |
| Vendor | |
| License | |
| Distribution | bionic |
| Suite | main |
| Source | |
| Architecture | binary-i386 |
| MultiArch | |
| Maintainer | Vítězslav Dvořák |
| InstalledSize | 3893 |
| Depends | debconf (>= 0.5) , debconf-2.0 , php-vitexsoftware-ease-bootstrap4-widgets , php-vitexsoftware-ease-bootstrap4-widgets-abraflexi , php-vitexsoftware-abraflexi-bricks , composer , php-cli , php-intl , locales-all |
| PreDepends | |
| Breaks | |
| Enhances | |
| Section | web |
| Priority | optional |
| Description | digest for AbraFlexi |
| LongDescription | Prepare digest with accounting state of AbraFlexi. Then save to file or send byemail. Daily, weekly, monthly, yearly and all time. |
| AutoBuiltPackage | |
| Filename | pool/bionic/main/a/abraflexi-digest/abraflexi-digest_1.20_all.deb |
| MD5sum | e03bb8a1b75d185f8c874d85acc1700e |
| SHA1 | b2acad13933e3720a3381b272cb332d1038834f8 |
| SHA256 | c23d74320df7be470c3a8e14b2e3adc5d2cc3543e52d97272071d040c00217dd |
| SHA512 | a33173a4a6e4a49334f2a4f2d213dd06fd4a5fd05da26dbc88b238166ec83ce3aaa57f380766c02dd546c4060d98650c69d7eef7077cfb2ce76eee74f440e8a6 |
| Size | 109704 |
| Auto-Built-Package | |
| Homepage | https://github.com/VitexSoftware/AbraFlexi-Digest |
| Provides | |
| Suggests | abraflexi-server , php-abraflexi-config |
| Existing | |
| fileMtime | 2021-04-07 21:15:55 |
| created | 2021-03-20 02:24:25 |
| updated | 2021-04-07 21:15:54 |

Periodical business digest for AbraFlexi accounting system. Collects data via the php-abraflexi library, runs analytics modules from vitexsoftware/digest-modules, and outputs Markdown, HTML, or PDF reports.
vitexsoftware/abraflexi-digest (this package)
src/Digest/Providers/AbraFlexiDataProvider.php — AbraFlexi → neutral schema
src/Digest/ModularDigestor.php — wires provider + modules + renderer
src/Digest/Mailer.php — sends digest by email
vitexsoftware/digest-modules
src/Modules/*.php — system-agnostic analytics modules
vitexsoftware/digest-renderer
src/ — Markdown/HTML/PDF rendering
AbraFlexiDataProvider (namespace AbraFlexi\Digest\Providers) implements DataProviderInterface from vitexsoftware/digest-modules. It translates the neutral FILTER_* / FIELD_* constants into AbraFlexi WQL queries and normalizes raw AbraFlexi records (including AbraFlexi\Relation objects for firma, mena, typDokl) into the neutral field schema.
vitexsoftware/digest-modules| File | Description | |------|-------------| | abraflexi-daydigest.php | Generate digest for one day | | abraflexi-weekdigest.php | Generate digest for one week | | abraflexi-monthdigest.php | Generate digest for one month | | abraflexi-yeardigest.php | Generate digest for one year | | abraflexi-alltimedigest.php | Generate digest for all time |
composer require vitexsoftware/abraflexi-digest
Or via Debian package:
wget -qO- https://repo.vitexsoftware.com/KEY.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/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-digest
After installation:
abraflexi-daydigest — digest for one dayabraflexi-weekdigest — digest for one weekabraflexi-monthdigest — digest for one monthabraflexi-yeardigest — digest for one yearabraflexi-alltimedigest — digest for all timeCreate /etc/abraflexi/.env (or pass path as first CLI argument):
ABRAFLEXI_URL="https://your-abraflexi.example.com"
ABRAFLEXI_LOGIN="username"
ABRAFLEXI_PASSWORD="password"
ABRAFLEXI_COMPANY="your-company-db"
EASE_LOGGER="syslog|mail|console"
DIGEST_MAILTO="info@yourdomain.net"
DIGEST_FROM="noreply@vitexsoftware.cz"
THEME="happy"
DIGEST_SAVETO="/var/tmp/"
DIGEST_ITEMS_LIMIT=0
DIGEST_LOCALE="cs_CZ.UTF-8"
DIGEST_LOCALE selects the language of the digest (system locale, must be installed on the server: locale -a).
DIGEST_ITEMS_LIMIT sets the default maximum number of items listed in each section
(0 = unlimited). Only the listing is shortened — totals and charts still use all data.
<?php
use AbraFlexi\Digest\ModularDigestor;
use AbraFlexi\Digest\Providers\AbraFlexiDataProvider;
use VitexSoftware\DigestModules\Core\ModuleRunner;
use VitexSoftware\DigestModules\Modules\Debtors;
use VitexSoftware\DigestModules\Modules\OutcomingInvoices;
$provider = new AbraFlexiDataProvider();
$runner = new ModuleRunner($provider);
$runner->addModule('outcoming_invoices', new OutcomingInvoices());
$runner->addModule('debtors', new Debtors());
$period = new \DatePeriod(
new \DateTime('first day of last month'),
new \DateInterval('P1M'),
new \DateTime('first day of this month'),
);
$result = $runner->run($period);
Modules live in vitexsoftware/digest-modules. All are supported by AbraFlexiDataProvider:
OutcomingInvoices — issued invoices in the periodIncomingInvoices — received invoices in the periodIncomingPayments — bank receipts in the periodOutcomingPayments — bank outflows in the periodDebtors — all overdue unpaid receivablesUnmatchedInvoices — issued invoices not matched to a paymentUnmatchedPayments — bank movements not matched to an invoiceWaitingIncome — proforma invoices awaiting settlementWaitingPayments — invoices awaiting paymentNewCustomers — contacts created in the periodReminds — invoices with pending payment remindersBestSellers — top products/services sold in the periodWithoutEmail — contacts missing an email addressWithoutTel — contacts missing a phone numberAllTime\PurchasePriceLowerThanSales — products sold below purchase priceDigest for AbraFlexi is ready to run as a MultiFlexi application.
This software would not be created without the support of:
MIT
>