Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.1 - Add missing document types #6

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading