Skip to content

Commit

Permalink
0.2.1 - Add missing document types (#6)
Browse files Browse the repository at this point in the history
* Add missing document types for DocumentType
* Change version to 0.2.1
  • Loading branch information
BolZer authored Aug 22, 2024
1 parent c9aa27c commit d420205
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# e-invoicing
[![Generic badge](https://img.shields.io/badge/Version-0.2.0-important.svg)]()
[![Generic badge](https://img.shields.io/badge/Version-0.2.1-important.svg)]()
[![Generic badge](https://img.shields.io/badge/License-MIT-blue.svg)]()

## Introduction
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easybill/e-invoicing",
"version": "0.2.0",
"version": "0.2.1",
"description": "A package to read and create the formats: factur-x, Peppol BIS Billing, XRechnung (CII/UBL)",
"type": "library",
"license": "MIT",
Expand Down
10 changes: 10 additions & 0 deletions src/Enums/DocumentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

enum DocumentType: int
{
/**
* Applicable for Additional document.
*/
case VALIDATED_PRICE_TENDER = 50;

/**
* Applicable for Invoice.
*/
Expand Down Expand Up @@ -221,6 +226,11 @@ enum DocumentType: int
*/
case FREIGHT_INVOICE = 780;

/**
* Applicable for Additional document.
*/
case RELATED_DOCUMENT = 916;

/**
* Applicable for Invoice.
*/
Expand Down
6 changes: 4 additions & 2 deletions tools/Generators/Input/DocumentTypes.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
71;Request for payment;Invoice
50;Validated price tender;Additional document
71;Request for payment;Invoice
80;Debit note related to goods or services;Invoice
81;Credit note related to goods or services;Credit Note
82;Metered services invoice;Invoice
Expand Down Expand Up @@ -41,4 +42,5 @@
633;Port charges documents;Invoice
751;Invoice information for accounting purposes;Invoice
780;Freight invoice;Invoice
935;Customs invoice;Invoice
916;Related document;Additional document
935;Customs invoice;Invoice

0 comments on commit d420205

Please sign in to comment.