Skip to content

Commit

Permalink
Record changes obtainer #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Feb 24, 2022
1 parent 52a0450 commit 4719e04
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 2 deletions.
32 changes: 32 additions & 0 deletions Examples/ShowDocumentChanges.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/php -f
<?php
/**
* AbraFlexi - Example how to copy Invoice
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (G) 2017 Vitex Software
*/

namespace Example\AbraFlexi;

include_once './config.php';
include_once '../vendor/autoload.php';

include_once './common.php';

$invoiceID = askForFlexiBeeID();

/*
* AbraFlexi Classes accept this form of initial identifier:
*
* (int) 2588
* (string) ext:ESHOP:oi1978
* (array) ['varSym'=>'20080015']
*/

$invoice = new \AbraFlexi\FakturaVydana($invoiceID);
if ($invoice->getMyKey()) {
print_r($invoice->getChanges());
} else {
$originalInvoice->addStatusMessage('Source Invoice does not exists');
}
1 change: 1 addition & 0 deletions src/AbraFlexi/Adresar.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Adresar extends RW {
use Stitky;
use SubItems;
use Firma;
use GetChanges;

/**
* Evidence užitá objektem.
Expand Down
1 change: 1 addition & 0 deletions src/AbraFlexi/Banka.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Banka extends RW {
use Firma;
use Email;
use SubItems;
use GetChanges;

/**
* Evidence užitá objektem.
Expand Down
1 change: 1 addition & 0 deletions src/AbraFlexi/Cenik.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Cenik extends RW {

use Stitky;
use SubItems;
use GetChanges;

/**
* Evidence užitá objektem.
Expand Down
2 changes: 1 addition & 1 deletion src/AbraFlexi/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* From: https://vitexsoftware.abraflexi.eu:5434
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (C) 2021 Spoje.Net
* @copyright (C) 2021-2022 Spoje.Net
*/

namespace AbraFlexi;
Expand Down
1 change: 1 addition & 0 deletions src/AbraFlexi/FakturaPrijata.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class FakturaPrijata extends RW {
use Firma;
use Sum;
use SubItems;
use GetChanges;

/**
* Evidence použitá třídou.
Expand Down
3 changes: 2 additions & 1 deletion src/AbraFlexi/FakturaVydana.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class FakturaVydana extends RW {
use Sum;
use SubItems;
use Email;

use GetChanges;

/**
* Evidence užitá objektem.
*
Expand Down
1 change: 1 addition & 0 deletions src/AbraFlexi/InterniDoklad.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class InterniDoklad extends RW {
use Firma;
use Sum;
use Email;
use GetChanges;

/**
* Evidence použitá třídou.
Expand Down
1 change: 1 addition & 0 deletions src/AbraFlexi/ObjednavkaPrijata.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ObjednavkaPrijata extends RW {
use Firma;
use Sum;
use Email;
use GetChanges;

/**
* Evidence použitá třídou.
Expand Down
1 change: 1 addition & 0 deletions src/AbraFlexi/Pokladna.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class Pokladna extends RW {

use Stitky;
use GetChanges;

/**
* Evidence užitá objektem.
Expand Down

0 comments on commit 4719e04

Please sign in to comment.