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

fix: Fixed the example of generating XML (Standard Invoice) in README #10

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

sevaske
Copy link
Contributor

@sevaske sevaske commented Feb 18, 2025

  1. There was an error in generating the XML file. The corrected version:
    $generatorXml = GeneratorInvoice::invoice($invoice);
    $outputXML = $generatorXml->getXML();
  2. I checked the generated XML in the validator https://sandbox.zatca.gov.sa/TestXML, and it had one error and 2-3 warnings. With my changes, the XML is now fully valid.

@sevaske
Copy link
Contributor Author

sevaske commented Feb 18, 2025

screenshot of the xml validation

@Saleh7 Saleh7 merged commit e42d8c5 into Saleh7:main Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants