Download the PHP package spojenet/pohoda-sql without Composer
On this page you can find all versions of the php package spojenet/pohoda-sql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pohoda-sql
PohodaSQL
This is a PHP Library for direct access to Pohoda SQL database tables.
Struct definitions are kept in sync with a live Pohoda SQL database (StwPh_12345678_2026 on SQL Server Express).
Use at your own risk!
Available Classes
| Class | Table | Description |
|---|---|---|
Adresar |
AD |
Address book |
BankovniVypis |
BV |
Bank statement |
BankovniVypisPol |
BVpol |
Bank statement line item |
CasoveRozliseni |
CasRoz |
Time resolution |
CasoveRozliseniPol |
CasRozPol |
Time resolution line item |
CiselnaRada |
sCRady |
Number series |
DOC |
DOC |
Document attachments |
Faktura |
FA |
Issued/received invoices |
FakturaPolozka |
FApol |
Invoice line items |
HotovostniOperace |
HO |
Cash document |
HotovostniOperacePol |
HOpol |
Cash document line item |
Majetek |
IM |
Fixed assets |
MajetkoveOperace |
IMpohyb |
Asset movements |
Nabidka |
NAB |
Offer |
NabidkaPol |
NABpol |
Offer line item |
ObjednavkaPrijata |
OBJ |
Received order |
ObjednavkaPrijataPol |
OBJpol |
Received order line item |
OdpisovyPlan |
sIMO |
Depreciation plans |
Pokladna |
PH |
Cash register document |
PokladnaPol |
PHpol |
Cash register line item |
Predkontace |
pPK |
Pre-accounting |
Predmet |
IMpredm |
Asset subjects |
Uhrada |
Uhrady |
Payment |
Zamestnanec |
ZAM |
Employee |
Zasilka |
Zasilky |
Shipment |
ZasilkaPol |
ZasilkyPol |
Shipment line item |
Requirements
- PHP 7.2+
- php-sqlsrv
- php-ease-fluentpdo
Composer
Configuration
Please set up this constants or environment variables:
DB_TYPEWe use sqlsrvDB_HOSTIP or Hostname machine with SQL ServerDB_PORTdefault is 1433DB_DATABASEsomething like StwPh_01234567_2019DB_USERNAMEsqlserver loginDB_PASSWORDsqlserver passDB_SETTINGSeg. encrypt=false
Usage
Load a record by ID
Load by a field value
Override the database at instantiation
Read invoice header and its line items
List all addresses with a credit limit
Work with bank statements
Iterate shipments
Access employees
Attach a URL link to a Pohoda document
The DOC table stores document attachments for every agenda. Use urlAttachment() to link
an external URL (e.g. a SharePoint file, a web invoice, a tracking page) to an existing record.
The second argument is the Pohoda internal document ID; the agenda type is identified by one of
the Agenda::* constants.
Available Agenda::* constants mirror the RelCrAg values from sCRady:
| Constant | Value | Agenda |
|---|---|---|
Agenda::ISSUED_INVOICES |
2 | Issued invoices |
Agenda::RECEIVED_INVOICES |
3 | Received invoices |
Agenda::ORDERS_RECEIVED |
11 | Received orders |
Agenda::CASH_REGISTER |
27 | Cash register |
Agenda::BANK |
28 | Bank statements |
See https://github.com/VitexSoftware/php-ease-fluentpdo for more information.
Debian Package
also package for debian/ubuntu is availble:
`