Git Product home page Git Product logo

flexipeehp's People

Contributors

blahasoft avatar fatmattsvk avatar martinvenus avatar onsta avatar scrutinizer-auto-fixer avatar vitexus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flexipeehp's Issues

Strict standards FlexiPeeHP/Formats

Ve třídě FlexiPeeHP/Formats způsobí volání metody \Ease\Sand::reindexArrayBy metodami byContentType() a bySuffix() vyvolání chyby

Non-static method should not be called statically

  • E_STRICT v PHP 5
  • E_DEPRECATED v PHP 7

Undefined index notice v FlexiBeeRO

Od nové verze 1.28 nastává při zavolání metody Banka::automatickeParovani na řádku 1044 v třídě FlexiBeeRO notice o undefined indexu.
PHP Notice: Undefined index: banka in /var/www/html/vendor/spoje.net/flexipeehp/src/FlexiPeeHP/FlexiBeeRO.php:1044

Práce s externími identifikátory

Tento kód sice funguje (kupodivu - haluz vs úmysl? :-) ) ale háže warning pro rawurlencode protože je předána array namisto stringu.

$save = array(
	'id' => array(
		$addr->id, // timto identifikujeme co se ma upravovat
		// pridany externi identifikator 
		$external_id
	),
	'eanKod' => $member_id
);
$adresar = new \FlexiPeeHP\Adresar($save, $this->make_conf());
$savedata = $adresar->insertToFlexiBee();

samozřejmě já to řešil raději takto

$ids = array(
	$addr->id, // timto identifikujeme co se ma upravovat
	// pridany externi identifikator 
	$external_id
);
$ids = json_encode($ids);
$save = array(
	'id' => $ids,
	'eanKod' => $member_id
);
$adresar = new \FlexiPeeHP\Adresar($save, $this->make_conf());
$savedata = $adresar->insertToFlexiBee();

Chvíli jsem nad tím musel přemýšlet jak to správně vložit protože jsem nenašel žádnou dokumentaci ani příklad a metoda/funce setMyKey ve FlexiBeeRO evidentně není určená k přiřazování externích identifikátorů - resp. je nefunkční v mém pojetí.
Nebo je na toto nějaký jiný přístup?

Jinak díky za tuto library.

[Insight] Object parameters should be type hinted - in Examples/InvoiceCopy.php, line 22

in Examples/InvoiceCopy.php, line 22

The parameter invoice, which is an object, should be typehinted.

 *
 * @param \FlexiPeeHP\FakturaVydana $invoice
 * @param array                     $extraValues Extra values for invoice Copy
 *
 * @return \FlexiPeeHP\FakturaVydana
 */
function invoiceCopy($invoice, $extraValues = [])
{
    $invoice2 = new \FlexiPeeHP\FakturaVydana(array_merge(
            $extraValues, $invoice->getData()));
    $invoice2->unsetDataValue('id');

Posted from SensioLabsInsight

PHP 7.3

Bylo by prosím možné upravit požadovanou verzi PHP tak, aby bylo možné použít i PHP 7.3?

[Insight] PHP debug statements found - in Examples/InvoiceLastChanges.php, line 30

in Examples/InvoiceLastChanges.php, line 30

var_export() should only be used for debug, and not committed to the source code repository.

 */

$invoice = new \FlexiPeeHP\FakturaVydana($invoiceID);
if ($invoice->getMyKey()) {
    $journaler = new \FlexiPeeHP\Zurnal();
    $changes   = $journaler->getLastChange($invoice);
    echo var_export($changes);
} else {
    $invoice->addStatusMessage('Source Invoice does not exists');
}

Posted from SensioLabsInsight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.