Code Monkey home page Code Monkey logo

Comments (2)

filipsedivy avatar filipsedivy commented on August 17, 2024 1

Hello,

I checked your problem, and everything is fine. I have version 4.1.
Null values or blank values are not sent.

For testing I used the code:

use FilipSedivy\EET;

$receipt = new EET\Receipt;
$receipt->uuid_zpravy = \Ramsey\Uuid\Uuid::uuid4()->toString();
$receipt->id_provoz = '11';
$receipt->id_pokl = 'IP105';
$receipt->dic_popl = 'CZ00000019';
$receipt->porad_cis = '1';
$receipt->dat_trzby = new \DateTime;
$receipt->celk_trzba = 500;

$path = __DIR__ . '/vendor/filipsedivy/php-eet/tests/data/EET_CA1_Playground-CZ00000019.p12';
$certificate = new EET\Certificate($path, 'eet');
$dispatcher = new EET\Dispatcher($certificate, EET\Dispatcher::PLAYGROUND_SERVICE);

$dispatcher->test($receipt);

The assembled XML then looks like this:

<SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="pfx255be850-8b54-aec0-63de-0d623ba01540">

    <ns1:Trzba>

      <ns1:Hlavicka uuid_zpravy="281dcfb6-74c0-4e9d-ac46-3c38c62ddbfe" dat_odesl="2020-02-06T22:27:58+01:00" prvni_zaslani="true" overeni="true"/>

      <ns1:Data dic_popl="CZ00000019" id_provoz="11" id_pokl="IP105" porad_cis="1" dat_trzby="2020-02-06T21:27:58+00:00" celk_trzba="500.00" rezim="0"/>
    </ns1:Trzba>

  </SOAP-ENV:Body>

from php-eet.

Yerevanski avatar Yerevanski commented on August 17, 2024

Thank you, I will test too in 4.1.

from php-eet.

Related Issues (20)

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.