Initial: flux text FoxBin2Prg (git urmareste .??2 in-arbore, binarele VFP git-ignored)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 12:28:41 +03:00
commit 7d786c5d4e
128 changed files with 46775 additions and 0 deletions

205
Utile/TEST_FACTURA.tst Normal file
View File

@@ -0,0 +1,205 @@
PL/SQL Developer Test script 3.0
112
declare
gnIdUtil number(5) := 8;
gnAn number(4) := 2019;
gnLuna number(2) := 2;
gcS varchar2(100) := 'MARIUSM_AUTO';
gnIdSucursala number(20) := 167;
gnIdFirma number(20) := 173;
begin
pack_sesiune.set_Id_Util(gnIdUtil);
pack_sesiune.setluna(gnLuna);
pack_sesiune.setan(gnAn);
pack_sesiune.setlunabal(gnLuna);
pack_sesiune.setanbal(gnAn);
pack_contafin.SET_DATA_RON(gcS);
pack_sesiune.set_data_ron(gcS);
pack_contafin.set_id_sucursala(gnIdSucursala);
pack_contafin.set_id_firma(gnIdFirma);
pack_facturare.initializeaza_date_factura(to_date('20190205', 'YYYYMMDD'),
42,
to_date('20190205', 'YYYYMMDD'),
to_date('20190205', 'YYYYMMDD'),
'SSS',
126,
252,
0,
0,
NULL,
NULL,
NULL,
NULL,
'',
'',
1,
25010,
to_date('20190205', 'YYYYMMDD'),
0,
0,
1,
167,
8);
pack_facturare.adauga_articol_factura(1,
315554536,
'',
'',
2,
19,
100.0000,
0.0000,
0,
150.00,
3,
1,
1,
1.0000,
0.00,
'371',
0.000000,
1,
31,
NULL,
NULL,
150.00,
0,
NULL,
8);
pack_facturare.adauga_articol_factura(2,
3598545102,
'',
'',
36,
22,
100.0000,
0.0000,
3,
20.10,
3,
0,
1,
1.0000,
0.00,
'371',
0.000000,
1,
31,
NULL,
NULL,
168.07,
0,
NULL,
8);
pack_facturare.scrie_factura2(v_totftva => :v_totftva,
v_tottva => :v_tottva,
v_discount_factura => :v_discount_factura,
v_serie_act_incasare => :v_serie_act_incasare,
v_numar_act_incasare => :v_numar_act_incasare,
v_lista_incasare => :v_lista_incasare,
v_id_delegat => :v_id_delegat,
v_id_masina => :v_id_masina,
v_id_facturare => :v_id_facturare,
v_listare_detaliata => :v_listare_detaliata,
v_dataora_exp => :v_dataora_exp,
v_id_agent => :v_id_agent,
v_text_aditional => :v_text_aditional,
v_discount_evidentiat => :v_discount_evidentiat,
v_parametru_aditional => :v_parametru_aditional,
v_id_vanzare => :v_id_vanzare,
v_cursor_verificare => :v_cursor_verificare);
end;
23
v_totftva
1
146.15
4
v_tottva
1
27.77
4
v_discount_factura
1
0
4
v_serie_act_incasare
0
5
v_numar_act_incasare
1
0
4
v_lista_incasare
0
5
v_id_delegat
1
240
4
v_id_masina
0
4
v_id_facturare
0
4
v_listare_detaliata
1
0
4
v_dataora_exp
1
2/5/2019
12
v_id_agent
0
4
v_text_aditional
0
5
v_discount_evidentiat
1
1
4
v_parametru_aditional
1
0
4
v_id_vanzare
1
694
4
v_cursor_verificare
1
<Cursor>
116
gnIdUtil
1
8
-4
gnAn
1
2019
-4
gnLuna
1
2
-4
gcS
1
MARIUSM_AUTO
-5
gnIdSucursala
1
167
-4
gnIdFirma
1
173
-4
3
lnTotalFaraTVA
lnTotalTVA
lnTotalCuTVA

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,33 @@
EFACTURA:
romconstruct, sigma roaauto, printconcept, acn, abcval, argenta, utmidia instalare roafacturare?, rompetrol? - efactura
eFactura
8 ore 28.05.2022
8 ore 29.05.2022
4 ore 30.05.2022
4 ore 31.05.2022
4 ore 01.06.2022
1 ore 22.06.2022
3 ore 23.06.2022
6 ore 24.06.2022
1 ore 30.06.2022
https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5305.htm
eFactura
https://www.anaf.ro/CompletareFactura/faces/factura/generare.xhtml
IMA - initializare facturi din ROAFACTURARE
https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/
http://www.123coduri.ro/cauta-in-baza-de-date-coduri-cpv.php?vcodg1=72&vcodg2=722&vcodg3=7226&vcodg4=72268#S72268E
cod CPV
72590000-7 Servicii informatice profesionale (Rev.2)
48000000-8 Pachete software si sisteme informatice (Rev.2)
72267100-0 intretinerea resurselor logice de tehnologie a informatiei
72267200-1 Repararea resurselor logice de tehnologie a informatiei
72262 Servicii de dezvoltare software
72268 Servicii de furnizare de software

View File

@@ -0,0 +1,90 @@
Valori pentru obținerea tokenului Oauth pentru aplicația ROA
Grant Type Authorization Code
Callback URL ["https://oauth.pstmn.io/v1/callback"]
Auth URL https://logincert.anaf.ro/anaf-oauth2/v1/authorize
https://logincert.anaf.ro/anaf-oauth2/v1/token
https://logincert.anaf.ro/anaf-oauth2/v1/revoke
Client ID fa4b103cc97928453a346427fb380023e996dd8299190663
Client Secret 9bd2428add6f480a1bd626a2a376d354ef20b580ef340023e996dd8299190663
------------------------
Valori pentru obținerea tokenului Oauth pentru aplicația ROA2
Grant Type Authorization Code
Callback URL ["https://romfast.ro/oauth2/","https://oauth.pstmn.io/v1/callback"]
Auth URL https://logincert.anaf.ro/anaf-oauth2/v1/authorize
https://logincert.anaf.ro/anaf-oauth2/v1/token
https://logincert.anaf.ro/anaf-oauth2/v1/revoke
Client ID f4c59081e488ac326f32f8ab52620023e996dd82d7d01163
Client Secret e65b9127acac254c5b9bfbbe68b9a6ca07b0d6df6dbb0023e996dd82d7d01163
https://logincert.anaf.ro/anaf-oauth2/v1/authorize?client_id=f4c59081e488ac326f32f8ab52620023e996dd82d7d01163&client_secret=e65b9127acac254c5b9bfbbe68b9a6ca07b0d6df6dbb0023e996dd82d7d01163&response_type=code&redirect_uri=https://romfast.ro/oauth2/
---------------------------------------
Copiati ANAF Access Token de pe linia urmatoare si completati-l in aplicatia eFactura
9c38ee4f4d40e743cf1ecc4e1721710c203b2c37011a481959bf0a9aeaae9136
refresh_token: 63141bba21a1a27d63d5d3b6b10432808db6db8672c2956e914476bff245c0be
---------------------------------------
-------------------
Token Details
Token Name: ROA ANAF
Access Token: 9b1f44af738c16aa10c78347b9a064857f034b03a20704a03c131b99f019cee5
Token Type: Bearer
expires_in: 7776000
scope: clientappid info issuer role serial
refresh_token: 2efe39577382e2e31b42cfc1b772c737fe108c67390d463a7e2bb9f7b4bed3ae
-------------
Copiati ANAF Access Token de pe linia urmatoare si completati-l in aplicatia eFactura
afcd8053b27c04b361375b6f2e8a5ccae022c5b8409fe21907081eb831ad325f
refresh_token: a14a7d02b48a86fa0feae6cf0d5d936a61476cd3c5115d07e58ab22749679104
-----------------
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=authorization_code&code=362ad374-735c-4f69-aa8e-bf384f8602de&redirect_uri=http://example.com/oauth&client_id=myClientID&client_secret=myClientPassword" http://host1.example.com:8080/openam/oauth2/access_token
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&refresh_token=534310ab-570b-4eb4-0ed7-d01d243fae21&client_id=myClientID&client_secret=myClientPassword" http://host1.example.com:8080/openam/oauth2/access_token
curl -k -v -X POST -H 'Content-type: application/x-www-form-urlencoded' -d "client_id=mytestclient&scope=read&grant_type=password&username=testuser1&password=passw0rd" https://<reverse_proxy_hostname>/mga/sps/oauth/oauth20/token
---------------
lcFile = GETFILE()
lcSend = FILETOSTR(m.lcfile)
lcServer =[https://api.anaf.ro/test/FCTEL/rest/upload?standard=UBL&cif=1879855]
loHTTP = Createobject('winHTTP.winHTTPrequest.5.1')
loHTTP.Open('POST', lcServer, .F.)
loHTTP.setRequestHeader("Content-Type", "application/xml;")
loHttp.SetRequestHeader('Authorization', 'Bearer 9b1f44af738c16aa10c78347b9a064857f034b03a20704a03c131b99f019cee5')
loHttp.Send(m.lcSend)
MESSAGEBOX(loHttp.Status)
MESSAGEBOX(loHttp.ResponseText)
-----------
factura acn 30.09.2022
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<header xmlns="mfp:anaf:dgti:spv:respUploadFisier:v1" dateResponse="202209301429" ExecutionStatus="0" index_incarcare="4010894328"/>
factura directia 03.10.2022
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<header xmlns="mfp:anaf:dgti:spv:respUploadFisier:v1" dateResponse="202210040014" ExecutionStatus="0" index_incarcare="4011246826"/>
-----------------
https://api.anaf.ro/prod/FCTEL/rest/stareMesaj?id_incarcare=4010894328
-----------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<header xmlns="mfp:anaf:dgti:efactura:stareMesajFactura:v1" stare="ok" id_descarcare="3019427541"/>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<header xmlns="mfp:anaf:dgti:efactura:stareMesajFactura:v1" stare="in prelucrare"/>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<header xmlns="mfp:anaf:dgti:efactura:stareMesajFactura:v1" stare="ok" id_descarcare="3020001158"/>

View File

@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:udt="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:UBLVersionID>2.1</cbc:UBLVersionID>
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1</cbc:CustomizationID>
<cbc:ID>CB nr. 495</cbc:ID><!--BT-1-->
<cbc:IssueDate>2023-12-04</cbc:IssueDate><!--BT-2-->
<cbc:DueDate>2024-01-03</cbc:DueDate><!--BT-9-->
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode><!--BT-3-->
<cbc:Note>RO23BACX0000009200456014</cbc:Note><!--BT-22-->
<cbc:TaxPointDate>2023-12-04</cbc:TaxPointDate><!--BT-7-->
<cbc:DocumentCurrencyCode>RON</cbc:DocumentCurrencyCode><!--BT-5-->
<cac:AccountingSupplierParty><!--BG-4-->
<cac:Party>
<cac:PostalAddress><!--BG-5-->
<cbc:StreetName>Str. Muncel, Nr.42a</cbc:StreetName><!--BT-35-->
<cbc:CityName>Constanta</cbc:CityName><!--BT-37-->
<cbc:CountrySubentity>RO-CT</cbc:CountrySubentity><!--BT-39-->
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode><!--BT-40-->
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO30529373</cbc:CompanyID><!--BT-31-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>C&amp;B TRAINING SOLUTIONS SRL</cbc:RegistrationName><!--BT-27-->
<cbc:CompanyID>J13/1692/2012</cbc:CompanyID><!--BT-30-->
<cbc:CompanyLegalForm>Capital social: 210 lei</cbc:CompanyLegalForm><!--BT-33-->
</cac:PartyLegalEntity>
<cac:Contact><!--BG-6-->
<cbc:Name>Bragaru Silvia</cbc:Name><!--BT-41-->
<cbc:Telephone>0736039718</cbc:Telephone><!--BT-42-->
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty><!--BG-7-->
<cac:Party>
<cac:PostalAddress><!--BG-8-->
<cbc:StreetName>Sat Agigea Com. Agigea, Str. Ecluzei, Nr.1</cbc:StreetName><!--BT-50-->
<cbc:CityName>Agigea</cbc:CityName><!--BT-52-->
<cbc:CountrySubentity>RO-CT</cbc:CountrySubentity><!--BT-54-->
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode><!--BT-55-->
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO11087755</cbc:CompanyID><!--BT-48-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>COMPANIA NATIONALA ADMINISTRATIA CANALELOR NAVIGABILE SA</cbc:RegistrationName><!--BT-44-->
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans><!--BG-16-->
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode><!--BT-81-->
<cbc:PaymentID>CB nr. 495</cbc:PaymentID><!--BT-83-->
<cac:PayeeFinancialAccount><!--BG-17-->
<cbc:ID>RO22BACX0000000781494001</cbc:ID><!--BT-84-->
<cbc:Name>CONT UNICREDIT BANK SA IN RON</cbc:Name><!--BT-85-->
<cac:FinancialInstitutionBranch>
<cbc:ID>BACXROBU</cbc:ID><!--BT-86-->
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentMeans><!--BG-16-->
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode><!--BT-81-->
<cbc:PaymentID>CB nr. 495</cbc:PaymentID><!--BT-83-->
<cac:PayeeFinancialAccount><!--BG-17-->
<cbc:ID>RO70TREZ2315069XXX031184</cbc:ID><!--BT-84-->
<cbc:Name>CONT TREZORERIA STATULUI IN RON</cbc:Name><!--BT-85-->
<cac:FinancialInstitutionBranch>
<cbc:ID>TREZROBU</cbc:ID><!--BT-86-->
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="RON">152.00</cbc:TaxAmount><!--BT-110-->
<cac:TaxSubtotal><!--BG-23-->
<cbc:TaxableAmount currencyID="RON">800.00</cbc:TaxableAmount><!--BT-116-->
<cbc:TaxAmount currencyID="RON">152.00</cbc:TaxAmount><!--BT-117-->
<cac:TaxCategory>
<cbc:ID>S</cbc:ID><!--BT-118-->
<cbc:Percent>19.00</cbc:Percent><!--BT-119-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal><!--BG-22-->
<cbc:LineExtensionAmount currencyID="RON">800.00</cbc:LineExtensionAmount><!--BT-106-->
<cbc:TaxExclusiveAmount currencyID="RON">800.00</cbc:TaxExclusiveAmount><!--BT-109-->
<cbc:TaxInclusiveAmount currencyID="RON">952.00</cbc:TaxInclusiveAmount><!--BT-112-->
<cbc:AllowanceTotalAmount currencyID="RON">0.00</cbc:AllowanceTotalAmount><!--BT-107-->
<cbc:ChargeTotalAmount currencyID="RON">0</cbc:ChargeTotalAmount><!--BT-108-->
<cbc:PrepaidAmount currencyID="RON">0</cbc:PrepaidAmount><!--BT-113-->
<cbc:PayableRoundingAmount currencyID="RON">0.00</cbc:PayableRoundingAmount><!--BT-114-->
<cbc:PayableAmount currencyID="RON">952.00</cbc:PayableAmount><!--BT-115-->
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID><!--BT-126-->
<cbc:InvoicedQuantity unitCode="MON">1.0000</cbc:InvoicedQuantity><!--BT-129 BT-130-->
<cbc:LineExtensionAmount currencyID="RON">800.00</cbc:LineExtensionAmount><!--BT-131-->
<cac:Item><!--BG-31-->
<cbc:Name>Prestari servicii training online conform contract nr. 1760/31.01.2023 (noiembrie 2023)</cbc:Name><!--BT-153-->
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID><!--BT-151-->
<cbc:Percent>19.00</cbc:Percent><!--BT-152-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price><!--BG-29-->
<cbc:PriceAmount currencyID="RON">800.00</cbc:PriceAmount><!--BT-146-->
<cbc:BaseQuantity unitCode="MON">1.0000</cbc:BaseQuantity><!--BT-149 BT-150-->
</cac:Price>
</cac:InvoiceLine>
</Invoice>

View File

@@ -0,0 +1,165 @@
Sintaxa eFactura
https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/tree/
* Serie si sumar factura
<cbc:ID>CB 495</cbc:ID><!--BT-1-->
https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cbc-ID/
* Data factura
<cbc:IssueDate>2023-12-04</cbc:IssueDate><!--BT-2-->
* Data scadenta
<cbc:DueDate>2024-01-03</cbc:DueDate><!--BT-9-->
* Tip factura: 380 Initiala, 381 Stornare, 384 Finala/Rectificativa, 389 Autofactura
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode><!--BT-3-->
* Mentiuni factura (Taxare inversa, TVA la incasare etc.)
<cbc:Note>RO23BACX0000009200456014</cbc:Note><!--BT-22-->
* Data TVA, optional, doar daca evenimentul generator TVA diferit de data facturii
<cbc:TaxPointDate>2023-12-04</cbc:TaxPointDate><!--BT-7-->
* Valuta facturii
<cbc:DocumentCurrencyCode>RON</cbc:DocumentCurrencyCode><!--BT-5-->
* Informatii Furnizor
<cac:AccountingSupplierParty><!--BG-4-->
</cac:AccountingSupplierParty>
* Informatii Client
<cac:AccountingCustomerParty><!--BG-7-->
</cac:AccountingCustomerParty>
* Cod judet (ex: RO-CT, RO-B)
<cbc:CountrySubentity>RO-CT</cbc:CountrySubentity><!--BT-54-->
* Cod Tara (ex: RO)
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode><!--BT-55-->
</cac:Country>
<cac:PartyTaxScheme>
* ID Companie: Cod tara + CUI numeric (ex: RO123456)
<cbc:CompanyID>RO11087755</cbc:CompanyID><!--BT-48-->
* Element obligatoriu
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
* Informatii despre modalitatile de plata (ex: conturile bancare ale vanzatorului)
<cac:PaymentMeans><!--BG-16-->
* 42 = Transfer bancar
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode><!--BT-81-->
<cbc:PaymentID>CB nr. 495</cbc:PaymentID><!--BT-83-->
<cac:PayeeFinancialAccount><!--BG-17-->
* Contul bancar
<cbc:ID>RO22BACX0000000781494001</cbc:ID><!--BT-84-->
* Numele bancii (optional)
<cbc:Name>CONT UNICREDIT BANK SA IN RON</cbc:Name><!--BT-85-->
* Cod SWIFT (optional)
<cac:FinancialInstitutionBranch>
<cbc:ID>BACXROBU</cbc:ID><!--BT-86-->
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
* Totaluri TVA
<cac:TaxTotal>
* TOTAL TVA
<cbc:TaxAmount currencyID="RON">152.00</cbc:TaxAmount><!--BT-110-->
* Valoare TVA pe cote TVA. Se repeta sectiunea cac:TaxSubtotal pentru fiecare cota TVA
<cac:TaxSubtotal><!--BG-23-->
* Valoare fara TVA (baza)
<cbc:TaxableAmount currencyID="RON">800.00</cbc:TaxableAmount><!--BT-116-->
* Valoare TVA
<cbc:TaxAmount currencyID="RON">152.00</cbc:TaxAmount><!--BT-117-->
* Categoria TVA. S = standard 19/9/5
<cac:TaxCategory>
<cbc:ID>S</cbc:ID><!--BT-118-->
<cbc:Percent>19.00</cbc:Percent><!--BT-119-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
* Totaluri factura . Toate valorile sunt cu 2 zecimale
<cac:LegalMonetaryTotal><!--BG-22-->
* Valoare fara TVA
<cbc:LineExtensionAmount currencyID="RON">800.00</cbc:LineExtensionAmount><!--BT-106-->
* Total TVA
<cbc:TaxExclusiveAmount currencyID="RON">800.00</cbc:TaxExclusiveAmount><!--BT-109-->
* Total cu TVA ( Valoarea fara TVA - Reduceri/Discount + Alte Taxe + TVA)
<cbc:TaxInclusiveAmount currencyID="RON">952.00</cbc:TaxInclusiveAmount><!--BT-112-->
* Valoare Reducere/Discount fara TVA
<cbc:AllowanceTotalAmount currencyID="RON">0.00</cbc:AllowanceTotalAmount><!--BT-107-->
* Valoare alte taxe fara TVA (ex: cheltuieli transport)
<cbc:ChargeTotalAmount currencyID="RON">0</cbc:ChargeTotalAmount><!--BT-108-->
* Valoare platita in avans
<cbc:PrepaidAmount currencyID="RON">0</cbc:PrepaidAmount><!--BT-113-->
* Valoare pentru rotunjire (optional)
<cbc:PayableRoundingAmount currencyID="RON">0.00</cbc:PayableRoundingAmount><!--BT-114-->
* Valoarea de plata
<cbc:PayableAmount currencyID="RON">952.00</cbc:PayableAmount><!--BT-115-->
</cac:LegalMonetaryTotal>
* Linii factura. Se repeta pentru fiecare linie din factura
https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-InvoiceLine/
<cac:InvoiceLine>
* Identificator linie (ex: Nr. crt.: 1,2,3...)
<cbc:ID>1</cbc:ID><!--BT-126-->
* Cantitate 4 zecimale
* unitCode "H87" = bucata, "MON" = month/luna
<cbc:InvoicedQuantity unitCode="MON">1.0000</cbc:InvoicedQuantity><!--BT-129 BT-130-->
* Valoarea neta fara TVA (inclusiv reduceri, alte taxe)
<cbc:LineExtensionAmount currencyID="RON">800.00</cbc:LineExtensionAmount><!--BT-131-->
<cac:Item><!--BG-31-->
* Denumire articol
<cbc:Name>Prestari servicii training online conform contract nr. 1760/31.01.2023 (noiembrie 2023)</cbc:Name><!--BT-153-->
* TVA articol
<cac:ClassifiedTaxCategory>
* S = cota standarda 19/9/5, AE = Taxare inversa, E = Scutit
<cbc:ID>S</cbc:ID><!--BT-151-->
* Procent TVA 19/9/5
<cbc:Percent>19.00</cbc:Percent><!--BT-152-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price><!--BG-29-->
* Pretul unitar
<cbc:PriceAmount currencyID="RON">800.00</cbc:PriceAmount><!--BT-146-->
* Optional
<cbc:BaseQuantity unitCode="MON">1.0000</cbc:BaseQuantity><!--BT-149 BT-150-->
</cac:Price>
</cac:InvoiceLine>

View File

@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:udt="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:UBLVersionID>2.1</cbc:UBLVersionID>
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1</cbc:CustomizationID>
<cbc:ID>MM nr. 92784</cbc:ID><!--BT-1-->
<cbc:IssueDate>2024-01-08</cbc:IssueDate><!--BT-2-->
<cbc:DueDate>2024-01-08</cbc:DueDate><!--BT-9-->
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode><!--BT-3-->
<cbc:Note>Proforma recurenta emisa pentru abonamentul nr. cafeabunaro.gomag.ro_increment</cbc:Note><!--BT-22-->
<cbc:TaxPointDate>2024-01-08</cbc:TaxPointDate><!--BT-7-->
<cbc:DocumentCurrencyCode>RON</cbc:DocumentCurrencyCode><!--BT-5-->
<cac:AccountingSupplierParty><!--BG-4-->
<cac:Party>
<cac:PostalAddress><!--BG-5-->
<cbc:StreetName>str. George Cosbuc, nr. 25A, ap. 50</cbc:StreetName><!--BT-35-->
<cbc:CityName>Baia Mare</cbc:CityName><!--BT-37-->
<cbc:CountrySubentity>RO-MM</cbc:CountrySubentity><!--BT-39-->
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode><!--BT-40-->
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO18067119</cbc:CompanyID><!--BT-31-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SC SILKWEB SA</cbc:RegistrationName><!--BT-27-->
<cbc:CompanyID>J24/1748/2005</cbc:CompanyID><!--BT-30-->
<cbc:CompanyLegalForm>Capital social: 90000 lei</cbc:CompanyLegalForm><!--BT-33-->
</cac:PartyLegalEntity>
<cac:Contact><!--BG-6-->
<cbc:Name>Gomag 2</cbc:Name><!--BT-41-->
<cbc:Telephone>0721334992</cbc:Telephone><!--BT-42-->
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty><!--BG-7-->
<cac:Party>
<cbc:EndpointID schemeID="EM">petrica.coticeru@gmail.com</cbc:EndpointID><!--BT-49-->
<cac:PostalAddress><!--BG-8-->
<cbc:StreetName>Ors. Popesti-Leordeni, Sos. Oltenitei, Nr.247, Hala Nr. 3</cbc:StreetName><!--BT-50-->
<cbc:CityName>Popesti Leordeni</cbc:CityName><!--BT-52-->
<cbc:CountrySubentity>RO-IF</cbc:CountrySubentity><!--BT-54-->
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode><!--BT-55-->
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO33137200</cbc:CompanyID><!--BT-48-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>VENDING MASTER SRL</cbc:RegistrationName><!--BT-44-->
</cac:PartyLegalEntity>
<cac:Contact><!--BG-9-->
<cbc:ElectronicMail>petrica.coticeru@gmail.com</cbc:ElectronicMail><!--BT-58-->
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans><!--BG-16-->
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode><!--BT-81-->
<cbc:PaymentID>MM nr. 92784</cbc:PaymentID><!--BT-83-->
<cac:PayeeFinancialAccount><!--BG-17-->
<cbc:ID>RO32BTRLRONCRT0656782201</cbc:ID><!--BT-84-->
<cbc:Name>CONT BANCA TRANSILVANIA IN RON</cbc:Name><!--BT-85-->
<cac:FinancialInstitutionBranch>
<cbc:ID>BTRLRO22</cbc:ID><!--BT-86-->
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentMeans><!--BG-16-->
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode><!--BT-81-->
<cbc:PaymentID>MM nr. 92784</cbc:PaymentID><!--BT-83-->
<cac:PayeeFinancialAccount><!--BG-17-->
<cbc:ID>RO79BTRLEURCRT0656782201</cbc:ID><!--BT-84-->
<cbc:Name>CONT BANCA TRANSILVANIA IN EUR</cbc:Name><!--BT-85-->
<cac:FinancialInstitutionBranch>
<cbc:ID>BTRLRO22</cbc:ID><!--BT-86-->
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="RON">271.87</cbc:TaxAmount><!--BT-110-->
<cac:TaxSubtotal><!--BG-23-->
<cbc:TaxableAmount currencyID="RON">1430.88</cbc:TaxableAmount><!--BT-116-->
<cbc:TaxAmount currencyID="RON">271.87</cbc:TaxAmount><!--BT-117-->
<cac:TaxCategory>
<cbc:ID>S</cbc:ID><!--BT-118-->
<cbc:Percent>19.00</cbc:Percent><!--BT-119-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal><!--BG-22-->
<cbc:LineExtensionAmount currencyID="RON">1430.88</cbc:LineExtensionAmount><!--BT-106-->
<cbc:TaxExclusiveAmount currencyID="RON">1430.88</cbc:TaxExclusiveAmount><!--BT-109-->
<cbc:TaxInclusiveAmount currencyID="RON">1702.75</cbc:TaxInclusiveAmount><!--BT-112-->
<cbc:AllowanceTotalAmount currencyID="RON">0.00</cbc:AllowanceTotalAmount><!--BT-107-->
<cbc:ChargeTotalAmount currencyID="RON">0</cbc:ChargeTotalAmount><!--BT-108-->
<cbc:PrepaidAmount currencyID="RON">0</cbc:PrepaidAmount><!--BT-113-->
<cbc:PayableRoundingAmount currencyID="RON">0.00</cbc:PayableRoundingAmount><!--BT-114-->
<cbc:PayableAmount currencyID="RON">1702.75</cbc:PayableAmount><!--BT-115-->
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID><!--BT-126-->
<cbc:InvoicedQuantity unitCode="H87">4.0000</cbc:InvoicedQuantity><!--BT-129 BT-130-->
<cbc:LineExtensionAmount currencyID="RON">1359.84</cbc:LineExtensionAmount><!--BT-131-->
<cac:Item><!--BG-31-->
<cbc:Description>4 x increment resurse
- conform https://www.gomag.ro/termeni-si-conditii pct. 4.3</cbc:Description><!--BT-154-->
<cbc:Name>Abonament Platforma Gomag - increment</cbc:Name><!--BT-153-->
<cac:SellersItemIdentification>
<cbc:ID>22</cbc:ID><!--BT-155-->
</cac:SellersItemIdentification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID><!--BT-151-->
<cbc:Percent>19.00</cbc:Percent><!--BT-152-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price><!--BG-29-->
<cbc:PriceAmount currencyID="RON">339.96</cbc:PriceAmount><!--BT-146-->
<cbc:BaseQuantity unitCode="H87">4.0000</cbc:BaseQuantity><!--BT-149 BT-150-->
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID><!--BT-126-->
<cbc:InvoicedQuantity unitCode="H87">1.0000</cbc:InvoicedQuantity><!--BT-129 BT-130-->
<cbc:LineExtensionAmount currencyID="RON">71.04</cbc:LineExtensionAmount><!--BT-131-->
<cac:Item><!--BG-31-->
<cbc:Description>SEO avansat</cbc:Description><!--BT-154-->
<cbc:Name>Aplicatii</cbc:Name><!--BT-153-->
<cac:SellersItemIdentification>
<cbc:ID>24</cbc:ID><!--BT-155-->
</cac:SellersItemIdentification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID><!--BT-151-->
<cbc:Percent>19.00</cbc:Percent><!--BT-152-->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price><!--BG-29-->
<cbc:PriceAmount currencyID="RON">71.04</cbc:PriceAmount><!--BT-146-->
<cbc:BaseQuantity unitCode="H87">1.0000</cbc:BaseQuantity><!--BT-149 BT-150-->
</cac:Price>
</cac:InvoiceLine>
</Invoice>

View File

@@ -0,0 +1,34 @@
<cac:InvoiceLine>
<cbc:ID>7</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">19.80</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>PERLA MOL.APA PH8,8PLATA1,0</cbc:Name>
* Cod identificare articol al vanzatorului (optional)
<cac:SellersItemIdentification>
<cbc:ID>6422797000133</cbc:ID>
</cac:SellersItemIdentification>
* Cod standard de identificare (cod bare) (optional)
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">6422797000133</cbc:ID>
</cac:StandardItemIdentification>
* Cod identificare CPV (optional, pentru articolele din contractele de achizitii publice)
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">22019000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>9.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">19.800</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>

View File

@@ -0,0 +1,548 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1</cbc:CustomizationID>
<cbc:ID>SLG593338005691</cbc:ID>
<cbc:IssueDate>2023-12-04</cbc:IssueDate>
<cbc:DueDate>2023-12-04</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>RON</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>RON</cbc:TaxCurrencyCode>
<cac:AccountingSupplierParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeID="0088">5948556999995</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>SELGROS CASH &amp; CARRY SRL</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Calea Bucuresti, nr. 231</cbc:StreetName>
<cbc:CityName>Brasov</cbc:CityName>
<cbc:PostalZone>500299</cbc:PostalZone>
<cbc:CountrySubentity>RO-BV</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO11805367</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SELGROS CASH &amp; CARRY SRL</cbc:RegistrationName>
<cbc:CompanyID>J08/464/2001</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeID="0088">5940005199932</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>EDUARD PUBLISHING SRL</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>STR DACILOR NR 9 ET P</cbc:StreetName>
<cbc:CityName>LUMINA</cbc:CityName>
<cbc:PostalZone>907175</cbc:PostalZone>
<cbc:CountrySubentity>RO-CT</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO25629015</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>EDUARD PUBLISHING SRL</cbc:RegistrationName>
<cbc:CompanyID>J13/1356/2009</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cac:DeliveryLocation>
<cbc:ID schemeID="0088">5948556999803</cbc:ID>
<cac:Address>
<cbc:StreetName>STR DACILOR NR 9 ET P</cbc:StreetName>
<cbc:CityName>LUMINA</cbc:CityName>
<cbc:PostalZone>907175</cbc:PostalZone>
<cbc:CountrySubentity>RO-CT</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>10</cbc:PaymentMeansCode>
</cac:PaymentMeans>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="RON">60.99</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="RON">311.58</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="RON">59.21</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="RON">19.80</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="RON">1.78</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>9.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="RON">331.38</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="RON">331.38</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="RON">392.37</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="RON">392.37</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">5.90</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>B.DOVE SAPUN CREMA 90G/100G</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>8720182264664</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">8720182264664</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">34011100</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">5.900</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">2</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">27.56</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>ALUFIX PROF.SACI MEN.280L 5BUC</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>4823071655162</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">4823071655162</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">39232100</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">13.780</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>3</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">23.57</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>ALUFIX SACI MENAJ 240L 10BUC</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>4823071655148</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">4823071655148</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">39232100</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">23.570</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>4</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">1.15</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>SACOSA SARBATORI ECOTAXA 0.15</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>2040078636006</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">2040078636006</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">39232100</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">1.150</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>5</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">18.49</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>REGINA PROS.HAR.XXL 2ROL.2STR.</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>8004260487696</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">8004260487696</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">48182091</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">18.490</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>6</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">5.90</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>DOVE SAPUN CREMA PINK 90G</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>8720182259813</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">8720182259813</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">34011100</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">5.900</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>7</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">19.80</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>PERLA MOL.APA PH8,8PLATA1,0</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>6422797000133</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">6422797000133</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">22019000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>9.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">19.800</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>8</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">25.20</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>ENERGIZER MAX ALKALINE LR14</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>7638900426809</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">7638900426809</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">85061011</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">25.200</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>9</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">15.06</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>VARTA ALC.LLE BELT R6 X6</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>4008496661978</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">4008496661978</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">85061011</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">15.060</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>10</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">3.35</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>RTC INDEX AUTOAD HARTIE 4 CUL</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>5948511330368</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">5948511330368</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">48201030</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">3.350</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>11</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">25.10</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>ICO CAPSE METAL 24/6</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>5997072190119</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">5997072190119</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">83052000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">25.100</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>12</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">71.40</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>TRAFFIC H.COP A4 80 GR/CUTIE</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>5948906000029</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">5948906000029</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">48025620</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">71.400</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>13</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">15.09</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>ICO MARKER NEGRU 1-1,5 LIA</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>5997072148530</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">5997072148530</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">96085000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">15.090</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>14</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">2</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">33.52</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>SCH MARKER 1_3MM/NEGRU</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>6524898741660</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">6524898741660</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">96082000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">16.760</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>15</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">25.17</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>PGN BIBL UNIBLACK RADO/7,5CM</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>6420387005711</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">6420387005711</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">48203000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">8.390</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>16</cbc:ID>
<cbc:InvoicedQuantity unitCode="XPA">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">15.12</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>NUSA FILE PROTECTIE 50 MCR/100</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>5901503615430</cbc:ID>
</cac:SellersItemIdentification>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0160">5901503615430</cbc:ID>
</cac:StandardItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="TSP">39261000</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">15.120</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>

133
Utile/efactura/index.php Normal file
View File

@@ -0,0 +1,133 @@
<?php
// oAuth2
$get = $_REQUEST;
$query_string = '';
foreach ($get as $key => $value) {
$query_string .= $key . '=' . $value . '&';
}
// echo($query_string);
parse_str($query_string);
$client_id = 'f4c59081e488ac326f32f8ab52620023e996dd82d7d01163';
$client_secret = 'e65b9127acac254c5b9bfbbe68b9a6ca07b0d6df6dbb0023e996dd82d7d01163';
$redirect_uri = 'https://romfast.ro/oauth2/';
// REFRESH TOKEN se apeleaza din ROA cu parametrul ?refresh_token=REFRESH_TOKEN pentru prelungirea valabilitatii tokenului
if (!empty($refresh_token)){
$url = 'https://logincert.anaf.ro/anaf-oauth2/v1/token';
//The data you want to send via POST
$fields = [
'client_id' => $client_id,
'client_secret' => $client_secret,
'refresh_token' => $refresh_token,
'redirect_uri' => $redirect_uri,
'grant_type' => 'refresh_token'
];
//url-ify the data for the POST
$fields_string = http_build_query($fields);
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
//So that curl_exec returns the contents of the cURL; rather than echoing it
curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
//execute post
$jsonobj = curl_exec($ch);
// $arr = json_decode($jsonobj, true);
/* $json = json_encode($jsonobj, JSON_UNESCAPED_SLASHES);
if ($json === false) {
// Avoid echo of empty string (which is invalid JSON), and
// JSONify the error message instead:
$json = json_encode(["error" => json_last_error_msg()]);
if ($json === false) {
// This should not happen, but we go all the way now:
$json = '{"error":"unknown"}';
}
// Set HTTP response status code to: 500 - Internal Server Error
http_response_code(500);
}
*/
header("Content-Type: application/json");
echo $jsonobj;
// Close handle
//curl_close($ch);
exit();
}
// COD AUTORIZARE se apeleaza din ROA fara parametri pentru obtinerea codului de autorizare de la ANAF. ANAF apeleaza aceasta pagina (callback) cu codul de autorizare
if (empty($code)) {
// Obtinere cod autorizare
$url = 'https://logincert.anaf.ro/anaf-oauth2/v1/authorize';
$url .='?client_id='.$client_id;
$url .='&client_secret='.$client_secret;
$url .='&response_type=code';
$url .='&redirect_uri='.$redirect_uri;
// Redirectionez la pagina de autorizare ANAF pentru obtinerea codului de autorizare
// echo $url;
header('Location: '.$url);
exit();
}
else {
// NEW TOKEN
// callback ANAF: https://romfast.ro/oauth2/?code=COD_AUTORIZARE
// Obtinere token pe baza codului de autorizare
// print_r('Codul de autorizare este: '.$code);
$url = 'https://logincert.anaf.ro/anaf-oauth2/v1/token';
//The data you want to send via POST
$fields = [
'client_id' => $client_id,
'client_secret' => $client_secret,
'code' => $code,
'redirect_uri' => $redirect_uri,
'grant_type' => 'authorization_code'
];
//url-ify the data for the POST
$fields_string = http_build_query($fields);
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
//So that curl_exec returns the contents of the cURL; rather than echoing it
curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
//execute post
$jsonobj = curl_exec($ch);
//echo $jsonobj;
$arr = json_decode($jsonobj, true);
echo '<p>Copiati ANAF Access Token si Refresh Token de pe liniile urmatoare si completati-le in aplicatie</p>';
echo '<p><b>'.$arr["access_token"].'</b></p>';
echo 'refresh_token: '.$arr["refresh_token"];
// Close handle
curl_close($ch);
}
?>

Binary file not shown.

Binary file not shown.

24
Utile/efactura/token.bat Normal file
View File

@@ -0,0 +1,24 @@
@rem https://stackoverflow.com/questions/53357741/how-to-perform-oauth-2-0-using-the-curl-cli
@rem https://www.jhanley.com/google-oauth-2-0-testing-with-curl/
set CLIENT_ID=fa4b103cc97928453a346427fb380023e996dd8299190663
set CLIENT_SECRET=9bd2428add6f480a1bd626a2a376d354ef20b580ef340023e996dd8299190663
set SCOPE=
set ENDPOINT=https://logincert.anaf.ro/anaf-oauth2/v1/authorize
@rem set URL="%ENDPOINT%?client_id=%CLIENT_ID%&client_secret=%CLIENT_SECRET%&response_type=code&scope=%SCOPE%&access_type=offline&redirect_uri=https://oauth.pstmn.io/v1/callback"
set URL="%ENDPOINT%?client_id=%CLIENT_ID%&client_secret=%CLIENT_SECRET%&response_type=code&redirect_uri=https://oauth.pstmn.io/v1/callback"
@REM start iexplore %URL%
@REM start microsoft-edge:%URL%
start chrome %URL%
set /p AUTH_CODE="Enter Code displayed in browser: "
curl ^
--data client_id=%CLIENT_ID% ^
--data client_secret=%CLIENT_SECRET% ^
--data code=%AUTH_CODE% ^
--data redirect_uri=https://oauth.pstmn.io/v1/callback ^
--data grant_type=authorization_code ^
https://logincert.anaf.ro/anaf-oauth2/v1/token

64
Utile/proceduri.txt Normal file
View File

@@ -0,0 +1,64 @@
Initializari
Clienti
Do vizualizare_clienti In onomenclatoare.prg
Agenti
Do vizualizare_agenti In onomenclatoare.prg
Delegati
Do vizualizare_delegati In onomenclatoare.prg
Masini
Do vizualizare_masini In onomenclatoare2.prg
Model factura / aviz
Do model.mpr
Serii numere
DO viz_config_serii_complet IN oserii_numere.prg
Curs valutar
DO vizualizeaza_curs IN oproceduri_curs.prg
Optiuni
Do vizualizare_optiuni_facturare In oproceduri_facturare.prg
Facturare
Pe baza de lista de preturi
DO facturare_lista_de_preturi IN oproceduri_facturare.prg
DO politica.mpr
factureaza(1)
factureaza(5)
Pe baza de contract
DO facturare_contracte IN oproceduri_facturare.prg
Pe baza de comanda
DO facturare_comenzi IN oproceduri_facturare.prg
Din aviz
DO facturare_avize IN oproceduri_facturare.prg
Materii prime si materiale
Do vanzare_materii_prime In oproceduri_facturare.prg
Produse
DO vanzare_produse IN oproceduri_facturare.prg
Marfuri la pret de achizitie
DO vanzare_marfa_pret_achi IN oproceduri_facturare.prg
Marfuri la pret de vanzare
Do vanzare_marfa_pret_vanz In oproceduri_facturare.prg
Avize de expeditie
Catre clienti
DO aviz_clienti.mpr
Transfer intre subunitati
DO aviz_subunitati.mpr
Rapoarte
Lista facturi si avize
Do vizualizare_facturi In oproceduri_facturare.prg
Lista proforme
Do vizualizare_proforme In oproceduri_facturare.prg
Avize
DO rap_avize IN oproceduri_rapoarte_fact.prg
Avize de transfer
DO rap_avize_transfer IN oproceduri_rapoarte_fact.prg
Facturi
DO rap_facturi IN oproceduri_rapoarte_fact.prg
Incasari
DO rap_incasari IN oproceduri_rapoarte_fact.prg
Articole
DO rap_articole IN oproceduri_rapoarte_fact.prg
Centralizator
DO rap_centralizator IN oproceduri_rapoarte_fact.prg
Dispozitii de livrare
Do emitere_dispozitii_livrare In oproceduri_facturare.prg