Giter VIP home page Giter VIP logo

Comments (4)

josemmo avatar josemmo commented on June 10, 2024

Hello @jw7712,

"cbc:SupplierAssignedAccountID" doesn't appear to be part of the EN 16931 standard nor PEPPOL BIS 3.0.

from einvoicing.

jw7712 avatar jw7712 commented on June 10, 2024

@josemmo
Thanks for your reply. I see that indeed it's not part of the standard, but some accounting packages make use of it to match a contact by id.

When searching for it i see that exact online is also using this:
https://support.exactonline.com/community/s/knowledge-base#All-All-HNO-Concept-general-importexport-gen-impexp-ublineolc

from einvoicing.

josemmo avatar josemmo commented on June 10, 2024

Adding this feature is not feasible because is non-standard and, in some cases, not allowed.

But if you need to add the field to a document, you can do it manually after generating the XML:

use Einvoicing\Invoice;
use Einvoicing\Presets;
use Einvoicing\Writers\UblWriter;
use UXML\UXML;

// Generate invoice
$inv = new Invoice(Presets\Peppol::class);
// [...]

// Export invoice
$writer = new UblWriter();
$xml = UXML::fromString($writer->export($inv));
$xml->get('cac:AccountingCustomerParty')->add('cbc:SupplierAssignedAccountID', '0011223344'); // <---
echo $xml->asXML();

from einvoicing.

jw7712 avatar jw7712 commented on June 10, 2024

Great, thanks for the great support!
I will try it!

The issue can be closed.

from einvoicing.

Related Issues (17)

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.