Coder Social home page Coder Social logo

auler.gmbh.zugferdxinvoice's Introduction

ReadMe

Plugin-Name: ZugferdXInvoice for iDempiere (auler.gmbh.zugferdxinvoice)

Plug-in Version: 1.0

Status: Testing/Pre-Release

Licence: GPLv2

Author: Patric Massing (Hans Auler GmbH), Germany, p.massing(at)auler.gmbh

Date: 2022

Environment: iDempiere 10

Used libraries: mustangproject library (License Apache 2.0), mustangproject validator (License Apache 2.0)

This Plug-in is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Description This plugin provides a process in iDempiere to create a ZUGFeRD/X-Invoice PDF-file as attachment of Invoice-Record and provides the PDF-file as Download.

Detailed Dokumentation is on iDempiere Wiki

auler.gmbh.zugferdxinvoice's People

Contributors

pmassing avatar carlosruiz-globalqss avatar

Watchers

 avatar

auler.gmbh.zugferdxinvoice's Issues

Avoid error -> Document not posted

The auler.gmbh.zugferdxinvoice.process.ZUGFeRD.createInvoice is throwing error "Document not posted !" when the document is not posted.

The posting must not be an impediment to print the invoice as this usually happens later (or it doesn't happen at all in some implementations without accounting).

The only case where it would be required is when the invoice printout includes information from Fact_Acct.

For that we propose to create a SysConfig ZUGFERD_ERROR_IF_NOT_POSTED to enable that when required.

Generate ZUGFeRD invoices automatically

Proposal here is to implement some way to generate ZUGFeRD invoices automatically when generating an iDempiere invoice, this is, to avoid the need to run an additional process.

For this I think we can do the following changes:

  1. Use the default bank account for the invoice organization (there can be other possibilities here if needed, using the default is just the easiest)
  2. Add a flag in C_DocType.IsZUGFeRD to indicate that this document must be processed by the ZUGFeRD process
  3. On the core side we would need to add some sort of post-process, I think maybe an EventHandler for post-generate-pdf can be helpful, this EventHandler could pass as parameters AD_Table_ID, Record_ID and the PDF file, the handler post-processes the file (for example attaching the ZUGFeRD in this case, but it could be also used to add PDF signature for example) and returns the modified PDF IDEMPIERE-6069

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.