Spoje-NET /
php-flexibee
| 1 | #!/usr/bin/php -f |
||||
| 2 | <?php |
||||
| 3 | /** |
||||
| 4 | * FlexiPeeHP - Jak najít Daňový doklad vytvoření po zaplacení zálohové faktury |
||||
| 5 | * |
||||
| 6 | * @author Vítězslav Dvořák <[email protected]> |
||||
| 7 | * @copyright (G) 2017 Vitex Software |
||||
| 8 | */ |
||||
| 9 | |||||
| 10 | namespace Example\FlexiPeeHP; |
||||
| 11 | |||||
| 12 | include_once './config.php'; |
||||
| 13 | include_once '../vendor/autoload.php'; |
||||
| 14 | include_once './common.php'; |
||||
| 15 | |||||
| 16 | $invoiceID = askForFlexiBeeID(); |
||||
| 17 | |||||
| 18 | /* |
||||
| 19 | * FlexiPeeHP Classes accept this form of initial identifier: |
||||
| 20 | * |
||||
| 21 | * (int) 2588 |
||||
| 22 | * (string) ext:ESHOP:oi1978 |
||||
| 23 | * (array) ['varSym'=>'20080015'] |
||||
| 24 | */ |
||||
| 25 | |||||
| 26 | $invoice = new \FlexiPeeHP\FakturaVydana($invoiceID); |
||||
| 27 | |||||
| 28 | $vazby = $invoice->reindexArrayBy($invoice->getVazby(), 'typVazbyK'); |
||||
|
0 ignored issues
–
show
|
|||||
| 29 | |||||
| 30 | $polozka = new \FlexiPeeHP\FlexiBeeRO(intval($vazby['typVazbyDokl.odpocetZALOHY']['a']), |
||||
|
0 ignored issues
–
show
The class
FlexiPeeHP\FlexiBeeRO has been deprecated: since version 2.0
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 31 | ['evidence' => 'faktura-vydana-polozka']); |
||||
| 32 | |||||
| 33 | $faktura = new \FlexiPeeHP\FakturaVydana($polozka->getDataValue('doklFak')); |
||||
| 34 | |||||
| 35 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.