Porez u XML-u...

Oct 24, 2012 at 1:17 PM

Call me stupid, ali u ovom XML-u generiran od SAMPLE programa ne vidim porez...

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
<soapenv:Body>
<tns:RacunZahtjev xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="signXmlId" xmlns:tns="http://www.apis-it.hr/fin/2012/types/f73">
<tns:Zaglavlje>
<tns:IdPoruke>e1548edf-5614-43b9-b394-b3c01e8361c1</tns:IdPoruke>
<tns:DatumVrijeme>24.10.2012T14:09:34</tns:DatumVrijeme>
</tns:Zaglavlje>
<tns:Racun>
<tns:Oib>78780230928</tns:Oib>
<tns:USustPdv>true</tns:USustPdv>
<tns:DatVrijeme>24.10.2012T14:09:34</tns:DatVrijeme>
<tns:OznSlijed>P</tns:OznSlijed>
<tns:BrRac>
<tns:BrOznRac>1</tns:BrOznRac>
<tns:OznPosPr>1</tns:OznPosPr>
<tns:OznNapUr>1</tns:OznNapUr>
</tns:BrRac>
<tns:IznosUkupno>12500</tns:IznosUkupno>
<tns:NacinPlac>G</tns:NacinPlac>
<tns:OibOper>12345678901</tns:OibOper>
<tns:ZastKod>e4d909c290d0fb1ca068ffaddf22cbd0</tns:ZastKod>
<tns:NakDost>true</tns:NakDost>
</tns:Racun>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="#signXmlId">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>G3Bb8ukgquELlKOhFh+CrGjUyjQ=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>m5+DzlmHFQjjW+Xc+SP3u0H311z7hT5rA1Qb8jH4dc1eaqy2pgZwndwWZJwECKja3i33UA2pWSR4OoY+1MHt/VYSRR/mTBq5l5C03/lagzljl8w5Y9vc59tMghm2xJDHbaH1TsFkAinnrni/jI58XCz7TLAlLyzn6PGkKm0QUGBliJ59fSzZX70xleoNwXpNC8Jot9vAqM/9pY6PlZq0jNpWvQNeVb4BZXJQU5+IHCgRjAgBJL99oXq4sCsFLs3ezy40aA5E5MfqUBnB6mz+Sh2a5XByvo5g3fmZqAfShiNe8CU4D38OI3sRyqy+b6LVJQPzwPicqPH4MhL9MFpjnA==</SignatureValue>
<KeyInfo>
<X509Data>
<X509IssuerSerial>
<X509IssuerName>OU=DEMO, O=FINA, C=HR</X509IssuerName>
<X509SerialNumber>1053497167</X509SerialNumber>
</X509IssuerSerial>
<X509Certificate>MIIExjCCA66gAwIBAgIEPssXTzANBgkqhkiG9w0BAQUFADArMQswCQYDVQQGEwJIUjENMAsGA1UEChMERklOQTENMAsGA1UECxMEREVNTzAeFw0xMjEwMjIxMDI5MDVaFw0xNDEwMjIxMDU5MDVaMFcxCzAJBgNVBAYTAkhSMSUwIwYDVQQKExxNT05JVE9SIFNQTElULiBIUjc4NzgwMjMwOTI4MQ4wDAYDVQQHEwVTUExJVDERMA8GA1UEAxMIRklTS0FMIDEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCsou0T8LZ+oN5ZfmFJO6QfIWaYLT0m/2rgPwdZBFmcYW/bRmoiGt5zusgEmATfKJ8d+bqlujMp08/L5LT++urh3JilQUkERrngZgbxB/aj9LF/YYaw0wTe5r/ZwpDI8MBQAPc/LnMq5qyA8bvzJihV5bl7OXe4jYpVC5HcfE/iBTVxHq3y2xwsTyoz9GeHmDCpJgK+gt9Sn4q/V8ClRa2Cl9NyiY4Gv7JyxuuTfUqdmLFKD6rkwv52t0PTe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sk=</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</tns:RacunZahtjev>
</soapenv:Body>
</soapenv:Envelope>

Oct 24, 2012 at 1:22 PM

Našao... Falila linija

racun.Pdv.Add(porez);

 

 

 :)

Coordinator
Oct 24, 2012 at 1:23 PM

Da li imaš verziju 1.0 ili 1.1 - ovo sa porezom je bila greška u SAMPLE projektu u v1.0 (http://fiskalizacija.codeplex.com/workitem/622) i trebala bi biti ispravljena u v1.1. SAMPLE projekta. Napominjem da ovo nema veze sa samim FiskalizacijaDEV.DLL-om.

U svakom slučaju, pogledaj http://fiskalizacija.codeplex.com/wikipage?title=Primjeri%20iz%20prakse - Slanje računa a više stopa poreza

 

Coordinator
Oct 24, 2012 at 1:24 PM

OK :)

Oct 24, 2012 at 1:26 PM

Hvala na brzom odgovoru! Ali ima još jedna situacija:

 

<tns:Racun>
<tns:Oib>78780230928</tns:Oib>
<tns:USustPdv>true</tns:USustPdv>
<tns:DatVrijeme>24.10.2012T14:23:26</tns:DatVrijeme>
<tns:OznSlijed>P</tns:OznSlijed>
<tns:BrRac>
<tns:BrOznRac>1</tns:BrOznRac>
<tns:OznPosPr>1</tns:OznPosPr>
<tns:OznNapUr>1</tns:OznNapUr>
</tns:BrRac>
<tns:Pdv>
<tns:Porez>
<tns:Stopa>2500</tns:Stopa>
<tns:Osnovica>10000</tns:Osnovica>
<tns:Iznos>2500</tns:Iznos>
</tns:Porez>
</tns:Pdv>
<tns:IznosUkupno>2500</tns:IznosUkupno>
<tns:NacinPlac>G</tns:NacinPlac>
<tns:OibOper>12345678901</tns:OibOper>
<tns:ZastKod>e4d909c290d0fb1ca068ffaddf22cbd0</tns:ZastKod>
<tns:NakDost>true</tns:NakDost>
</tns:Racun>

 

Iznos računa manji od osnovice poreza... i to prolazi PU!!!! :)

Znam to je njihova greška...

Coordinator
Oct 24, 2012 at 1:29 PM

Koliko se čini, za sada u PU prolazi doslovno SVE, samo ako je XSD schema dobra, ako je sve u redu sa certifikatom, OIB-om i digitalnim potpisom: možeš slati datum i vrijeme kakvo želiš, ID poruke možeš ponavljati, ZKI može biti bilo što, iznosi mogu biti bilo kakvi, ...

Pretpostavljam da će u nekom trenutku to krenuti validirati - iako - to može predstavljati značajno opterećenje za cijeli sustav, pa je moguće da će sve to ostati na leđima obveznika, odnosno, onih koji čiji se software koristi :)

Coordinator
Oct 24, 2012 at 1:35 PM
nrasinec wrote:

Pretpostavljam da će u nekom trenutku to krenuti validirati - iako - to može predstavljati značajno opterećenje za cijeli sustav, pa je moguće da će sve to ostati na leđima obveznika, odnosno, onih koji čiji se software koristi :)

Ako ovakve stvari oni krenu validirati, možemo svi skupa zaboravit one famozne 2 sec max...