initial commit

This commit is contained in:
Lars Schröder 2024-08-15 21:55:12 +02:00
commit 7e89db7500
20 changed files with 4283 additions and 0 deletions

21
.gitignore vendored Normal file
View File

@ -0,0 +1,21 @@
node_modules
# Output
.output
.vercel
/.svelte-kit
/build
# OS
.DS_Store
Thumbs.db
# Env
.env
.env.*
!.env.example
!.env.test
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

1
.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

4
.prettierignore Normal file
View File

@ -0,0 +1,4 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock

8
.prettierrc Normal file
View File

@ -0,0 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}

38
README.md Normal file
View File

@ -0,0 +1,38 @@
# create-svelte
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Building
To create a production version of your app:
```bash
npm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

View File

@ -0,0 +1,218 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>RG100035</cbc:ID>
<cbc:IssueDate>2024-08-07</cbc:IssueDate>
<cbc:DueDate>2024-08-21</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:Note>geliefert benannter Ort</cbc:Note>
<cbc:TaxPointDate>2024-08-07</cbc:TaxPointDate>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>73928739879847</cbc:BuyerReference>
<cac:OrderReference>
<cbc:ID>EDI BAF 4711</cbc:ID>
<cbc:SalesOrderID>AU100271</cbc:SalesOrderID>
</cac:OrderReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="EM"></cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="0088">4250350500002</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Firmenname &amp; Co. KG</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Straßenname 777</cbc:StreetName>
<cbc:AdditionalStreetName />
<cbc:CityName>HAMBURG</cbc:CityName>
<cbc:PostalZone>22525</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>DE2655554496</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyTaxScheme>
<cbc:CompanyID>45/607/077777</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>FC</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:Contact>
<cbc:Name>Reseller Team</cbc:Name>
<cbc:Telephone></cbc:Telephone>
<cbc:ElectronicMail></cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="EM">wareneingang-baf@body-attack.com</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID></cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>BodyA&amp; Co. KG</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Streetname</cbc:StreetName>
<cbc:AdditionalStreetName />
<cbc:CityName>Ort</cbc:CityName>
<cbc:PostalZone>23456</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID></cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:Contact>
<cbc:Name></cbc:Name>
<cbc:Telephone></cbc:Telephone>
<cbc:ElectronicMail>wareneingang-baf@body-attack.com</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate></cbc:ActualDeliveryDate>
<cac:DeliveryLocation>
<cbc:ID></cbc:ID>
<cac:Address>
<cbc:StreetName>Waldhofstr. 19</cbc:StreetName>
<cbc:AdditionalStreetName />
<cbc:CityName>Ellerbek</cbc:CityName>
<cbc:PostalZone>25474</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
<cac:DeliveryParty>
<cac:PartyName>
<cbc:Name>Body Attack Franchise System GmbH &amp; Co. KG</cbc:Name>
</cac:PartyName>
</cac:DeliveryParty>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
<cac:PayeeFinancialAccount>
<cbc:ID>DE16200700240652379900</cbc:ID>
<cbc:Name>Body Attack Sports Nutrition GmbH &amp; Co. KG</cbc:Name>
<cac:FinancialInstitutionBranch>
<cbc:ID></cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:Note></cbc:Note>
</cac:PaymentTerms>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:AllowanceChargeReasonCode>79</cbc:AllowanceChargeReasonCode>
<cbc:AllowanceChargeReason>Frachtkosten</cbc:AllowanceChargeReason>
<cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID="EUR">9.98</cbc:Amount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">79.62</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">110.81</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">21.05</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">836.75</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">58.57</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>7</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">947.56</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">947.56</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1027.18</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="EUR">0</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID="EUR">0</cbc:ChargeTotalAmount>
<cbc:PrepaidAmount currencyID="EUR">0</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="EUR">0</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>10000</cbc:ID>
<cbc:Note />
<cbc:InvoicedQuantity unitCode="STÜCK">25</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">836.75</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>EXTREME WHEY DELUXE</cbc:Description>
<cbc:Name>EXTREME WHEY DELUXE</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>10882</cbc:ID>
</cac:SellersItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="EN">4250350534304</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>7</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">33.47</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>20000</cbc:ID>
<cbc:Note />
<cbc:InvoicedQuantity unitCode="STÜCK">3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">100.83</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>Sportsbag</cbc:Description>
<cbc:Name>Sportsbag</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>11689</cbc:ID>
</cac:SellersItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="EN">4250350540343</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">33.61</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>

218
XRECH_EDI2EDIFACT-6.xml Normal file
View File

@ -0,0 +1,218 @@
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>RG100035</cbc:ID>
<cbc:IssueDate>2024-08-07</cbc:IssueDate>
<cbc:DueDate>2024-08-21</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:Note>geliefert benannter Ort</cbc:Note>
<cbc:TaxPointDate>2024-08-07</cbc:TaxPointDate>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>73928739879847</cbc:BuyerReference>
<cac:OrderReference>
<cbc:ID>EDI BAF 4711</cbc:ID>
<cbc:SalesOrderID>AU100271</cbc:SalesOrderID>
</cac:OrderReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="EM"></cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="0088">4250350500002</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Body Attack Sports Nutrition GmbH &amp; Co. KG</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Schnackenburgallee 217-223</cbc:StreetName>
<cbc:AdditionalStreetName />
<cbc:CityName>HAMBURG</cbc:CityName>
<cbc:PostalZone>22525</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>DE268884496</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyTaxScheme>
<cbc:CompanyID>45/607/00593</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>FC</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:Contact>
<cbc:Name>Reseller Team</cbc:Name>
<cbc:Telephone></cbc:Telephone>
<cbc:ElectronicMail></cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="EM">wareneingang-baf@body-attack.com</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID></cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Body Attack Franchise System GmbH &amp; Co. KG</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Waldhofstr. 19</cbc:StreetName>
<cbc:AdditionalStreetName />
<cbc:CityName>Ellerbek</cbc:CityName>
<cbc:PostalZone>25474</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID></cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:Contact>
<cbc:Name></cbc:Name>
<cbc:Telephone></cbc:Telephone>
<cbc:ElectronicMail>wareneingang-baf@body-attack.com</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate></cbc:ActualDeliveryDate>
<cac:DeliveryLocation>
<cbc:ID></cbc:ID>
<cac:Address>
<cbc:StreetName>Waldhofstr. 19</cbc:StreetName>
<cbc:AdditionalStreetName />
<cbc:CityName>Ellerbek</cbc:CityName>
<cbc:PostalZone>25474</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
<cac:DeliveryParty>
<cac:PartyName>
<cbc:Name>Body Attack Franchise System GmbH &amp; Co. KG</cbc:Name>
</cac:PartyName>
</cac:DeliveryParty>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
<cac:PayeeFinancialAccount>
<cbc:ID>DE16200700240652379900</cbc:ID>
<cbc:Name>Body Attack Sports Nutrition GmbH &amp; Co. KG</cbc:Name>
<cac:FinancialInstitutionBranch>
<cbc:ID></cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:Note></cbc:Note>
</cac:PaymentTerms>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:AllowanceChargeReasonCode>79</cbc:AllowanceChargeReasonCode>
<cbc:AllowanceChargeReason>Frachtkosten</cbc:AllowanceChargeReason>
<cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID="EUR">9.98</cbc:Amount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">79.62</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">110.81</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">21.05</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">836.75</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">58.57</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>7</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">947.56</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">947.56</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1027.18</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="EUR">0</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID="EUR">0</cbc:ChargeTotalAmount>
<cbc:PrepaidAmount currencyID="EUR">0</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="EUR">0</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>10000</cbc:ID>
<cbc:Note />
<cbc:InvoicedQuantity unitCode="STÜCK">25</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">836.75</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>EXTREME WHEY DELUXE</cbc:Description>
<cbc:Name>EXTREME WHEY DELUXE</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>10882</cbc:ID>
</cac:SellersItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="EN">4250350534304</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>7</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">33.47</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>20000</cbc:ID>
<cbc:Note />
<cbc:InvoicedQuantity unitCode="STÜCK">3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">100.83</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>Sportsbag</cbc:Description>
<cbc:Name>Sportsbag</cbc:Name>
<cac:SellersItemIdentification>
<cbc:ID>11689</cbc:ID>
</cac:SellersItemIdentification>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="EN">4250350540343</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">33.61</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>

133
XRechnung-3.0.1.xml Normal file
View File

@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<!--XRechnung created by Invoice Portal powered by Webware Internet Solutions GmbH-->
<!--For more information visit our Website: https://invoice-portal.de -->
<!--Or contact us by E-Mail: info@invoice-portal.de-->
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>RE-2024-03</cbc:ID>
<cbc:IssueDate>2024-02-27</cbc:IssueDate>
<cbc:DueDate>2024-03-28</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>992-90009-96</cbc:BuyerReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="9918">DE16520503531004885412</cbc:EndpointID>
<cac:PostalAddress>
<cbc:StreetName>Teichstr. 15</cbc:StreetName>
<cbc:CityName>Berlin</cbc:CityName>
<cbc:PostalZone>10232</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>279247134</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>FC</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>PC Service GmbH</cbc:RegistrationName>
<cbc:CompanyID>279247134</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Name>Max Siebert</cbc:Name>
<cbc:Telephone>0312424323</cbc:Telephone>
<cbc:ElectronicMail>max.siebert@pc-service-berlin.de</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="9930">DE279247134</cbc:EndpointID>
<cac:PostalAddress>
<cbc:StreetName>Bergstr. 25</cbc:StreetName>
<cbc:CityName>Frankfurt</cbc:CityName>
<cbc:PostalZone>54632</cbc:PostalZone>
<cbc:CountrySubentity>Hessen</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>DE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyLegalEntity>
<cbc:RegistrationName>DB Service GmbH</cbc:RegistrationName>
<cbc:CompanyID>DE279247134</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2024-02-24</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
<cac:PayeeFinancialAccount>
<cbc:ID>DE13520503531004885466</cbc:ID>
<cbc:Name>Viktor Settel</cbc:Name>
<cac:FinancialInstitutionBranch>
<cbc:ID>HELADEF1KAS</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">204.06</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">1074.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">204.06</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">1074.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">1074.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1278.06</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="EUR">0.00</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID="EUR">0.00</cbc:ChargeTotalAmount>
<cbc:PrepaidAmount currencyID="EUR">0.00</cbc:PrepaidAmount>
<cbc:PayableRoundingAmount currencyID="EUR">0.00</cbc:PayableRoundingAmount>
<cbc:PayableAmount currencyID="EUR">1278.06</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">2.000000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">934.00</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>PC Fujitsu TX-23</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">467.000000</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">2.000000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">140.00</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>PC Installation</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">70.000000</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</ubl:Invoice>

23
eslint.config.js Normal file
View File

@ -0,0 +1,23 @@
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
];

19
jsconfig.json Normal file
View File

@ -0,0 +1,19 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler"
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}

3098
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

35
package.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "x-rechnung",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^9.6.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"typescript": "^5.0.0",
"vite": "^5.0.3"
},
"type": "module",
"dependencies": {
"fast-xml-parser": "^4.4.1",
"xml2js": "^0.6.2"
}
}

13
src/app.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};

12
src/app.html Normal file
View File

@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

1
src/lib/index.js Normal file
View File

@ -0,0 +1 @@
// place files you want to import through the `$lib` alias in this folder.

227
src/routes/+page.svelte Normal file
View File

@ -0,0 +1,227 @@
<script>
let invoiceData = null;
const handleFileUpload = async (event) => {
const file = event.target.files[0];
if (!file) return;
// FileReader to read the XML file
const reader = new FileReader();
reader.onload = (e) => {
const xmlText = e.target.result;
const parser = new DOMParser();
const xmlDoc = parser.parseFromString(xmlText, 'application/xml');
// Namespace Resolver
const nsResolver = (prefix) => {
const ns = {
'cbc': 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2',
'cac': 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'
};
return ns[prefix] || null;
};
// Extract Invoice details
const invoiceID = xmlDoc.evaluate('//cbc:ID', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const issueDate = xmlDoc.evaluate('//cbc:IssueDate', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const dueDate = xmlDoc.evaluate('//cbc:DueDate', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const currency = xmlDoc.evaluate('//cbc:DocumentCurrencyCode', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
// Extract Supplier details
const supplierName = xmlDoc.evaluate('//cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const supplierStreet = xmlDoc.evaluate('//cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:StreetName', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const supplierCity = xmlDoc.evaluate('//cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const supplierCountry = xmlDoc.evaluate('//cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
// Extract Customer details
const customerName = xmlDoc.evaluate('//cac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const customerStreet = xmlDoc.evaluate('//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const customerCity = xmlDoc.evaluate('//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const customerCountry = xmlDoc.evaluate('//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
// Extract Line Items
const lineItems = xmlDoc.evaluate('//cac:InvoiceLine', xmlDoc, nsResolver, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
let items = [];
for (let i = 0; i < lineItems.snapshotLength; i++) {
const itemNode = lineItems.snapshotItem(i);
const itemDescription = xmlDoc.evaluate('cac:Item/cbc:Description', itemNode, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const itemQuantity = xmlDoc.evaluate('cbc:InvoicedQuantity', itemNode, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const itemUnitCode = xmlDoc.evaluate('cbc:InvoicedQuantity/@unitCode', itemNode, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const itemPrice = xmlDoc.evaluate('cac:Price/cbc:PriceAmount', itemNode, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const itemLineExtensionAmount = xmlDoc.evaluate('cbc:LineExtensionAmount', itemNode, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
items.push({
description: itemDescription,
quantity: itemQuantity,
unitCode: itemUnitCode,
price: itemPrice,
lineExtensionAmount: itemLineExtensionAmount
});
}
// Extract Totals
const lineExtensionAmountTotal = xmlDoc.evaluate('//cac:LegalMonetaryTotal/cbc:LineExtensionAmount', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const taxExclusiveAmount = xmlDoc.evaluate('//cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const taxInclusiveAmount = xmlDoc.evaluate('//cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
const payableAmount = xmlDoc.evaluate('//cac:LegalMonetaryTotal/cbc:PayableAmount', xmlDoc, nsResolver, XPathResult.STRING_TYPE, null).stringValue;
// Set invoiceData
invoiceData = {
invoiceID,
issueDate,
dueDate,
currency,
supplier: {
name: supplierName,
street: supplierStreet,
city: supplierCity,
country: supplierCountry
},
customer: {
name: customerName,
street: customerStreet,
city: customerCity,
country: customerCountry
},
items,
totals: {
lineExtensionAmountTotal,
taxExclusiveAmount,
taxInclusiveAmount,
payableAmount
}
};
};
reader.readAsText(file); // Read the file
};
</script>
<input type="file" accept=".xml" on:change={handleFileUpload} />
{#if invoiceData}
<div class="invoice-container">
<div class="header">
<h1>Invoice</h1>
</div>
<div class="details">
<div class="section-title">Invoice Details</div>
<div><span class="label">Invoice ID:</span> <span class="value">{invoiceData.invoiceID}</span></div>
<div><span class="label">Issue Date:</span> <span class="value">{invoiceData.issueDate}</span></div>
<div><span class="label">Due Date:</span> <span class="value">{invoiceData.dueDate}</span></div>
<div><span class="label">Currency:</span> <span class="value">{invoiceData.currency}</span></div>
</div>
<div class="details">
<div class="section-title">Supplier Details</div>
<div><span class="label">Name:</span> <span class="value">{invoiceData.supplier.name}</span></div>
<div><span class="label">Street:</span> <span class="value">{invoiceData.supplier.street}</span></div>
<div><span class="label">City:</span> <span class="value">{invoiceData.supplier.city}</span></div>
<div><span class="label">Country:</span> <span class="value">{invoiceData.supplier.country}</span></div>
</div>
<div class="details">
<div class="section-title">Customer Details</div>
<div><span class="label">Name:</span> <span class="value">{invoiceData.customer.name}</span></div>
<div><span class="label">Street:</span> <span class="value">{invoiceData.customer.street}</span></div>
<div><span class="label">City:</span> <span class="value">{invoiceData.customer.city}</span></div>
<div><span class="label">Country:</span> <span class="value">{invoiceData.customer.country}</span></div>
</div>
<div class="items">
<div class="section-title">Invoice Items</div>
<table>
<thead>
<tr>
<th>Description</th>
<th>Quantity</th>
<th>Unit Code</th>
<th>Price (EUR)</th>
<th>Line Extension Amount (EUR)</th>
</tr>
</thead>
<tbody>
{#each invoiceData.items as item}
<tr>
<td>{item.description}</td>
<td>{item.quantity} {item.unitCode}</td>
<td>{item.unitCode}</td>
<td>{item.price}</td>
<td>{item.lineExtensionAmount}</td>
</tr>
{/each}
</tbody>
</table>
</div>
<div class="totals">
<div><span class="label">Line Extension Amount Total:</span> <span class="value">{invoiceData.totals.lineExtensionAmountTotal}</span></div>
<div><span class="label">Tax Exclusive Amount:</span> <span class="value">{invoiceData.totals.taxExclusiveAmount}</span></div>
<div><span class="label">Tax Inclusive Amount:</span> <span class="value">{invoiceData.totals.taxInclusiveAmount}</span></div>
<div><span class="label">Payable Amount:</span> <span class="value">{invoiceData.totals.payableAmount}</span></div>
</div>
</div>
{/if}
<style>
.invoice-container {
width: 70%;
margin: 50px auto;
background-color: #fff;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
font-size: 24px;
color: #333;
}
.section-title {
font-size: 18px;
color: #555;
margin-bottom: 10px;
border-bottom: 2px solid #e7e7e7;
padding-bottom: 5px;
}
.details, .items, .totals {
margin-bottom: 20px;
}
.details .label, .totals .label {
width: 30%;
display: inline-block;
color: #888;
}
.details .value, .totals .value {
width: 70%;
display: inline-block;
color: #333;
}
.items table {
width: 100%;
border-collapse: collapse;
}
.items table, .items th, .items td {
border: 1px solid #e7e7e7;
}
.items th, .items td {
padding: 10px;
text-align: left;
}
.items th {
background-color: #f8f8f8;
color: #555;
}
.totals {
text-align: right;
}
.totals .label {
font-weight: bold;
}
</style>

View File

@ -0,0 +1,195 @@
<script>
import { onMount } from 'svelte';
// Variables for storing extracted invoice data
let invoiceData = {
invoiceID: '',
issueDate: '',
dueDate: '',
currency: '',
supplier: {
name: '',
street: '',
city: '',
country: ''
},
customer: {
name: '',
street: '',
city: '',
country: ''
},
items: [],
totals: {
lineExtensionAmountTotal: '',
taxExclusiveAmount: '',
taxInclusiveAmount: '',
payableAmount: ''
}
};
// Simulating data extraction (normally from an API or file)
async function extractInvoiceData() {
// Simulating a delay as if we're fetching from an external source
await new Promise(resolve => setTimeout(resolve, 1000));
// Here you would normally extract or fetch data.
// For demonstration, we use hardcoded data.
invoiceData = {
invoiceID: "INV-12345",
issueDate: "2023-08-01",
dueDate: "2023-08-31",
currency: "EUR",
supplier: {
name: "ACME Corporation",
street: "123 Main St",
city: "Berlin",
country: "DE"
},
customer: {
name: "XYZ Ltd",
street: "456 Elm St",
city: "Munich",
country: "DE"
},
items: [
{ description: "Widget A", quantity: "10", unitCode: "EA", price: "50.00", lineExtensionAmount: "500.00" },
{ description: "Widget B", quantity: "5", unitCode: "EA", price: "30.00", lineExtensionAmount: "150.00" }
],
totals: {
lineExtensionAmountTotal: "650.00",
taxExclusiveAmount: "650.00",
taxInclusiveAmount: "773.50",
payableAmount: "773.50"
}
};
}
// On component mount, extract the data
onMount(() => {
extractInvoiceData();
});
</script>
<style>
.invoice-container {
width: 70%;
margin: 50px auto;
background-color: #fff;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
font-size: 24px;
color: #333;
}
.section-title {
font-size: 18px;
color: #555;
margin-bottom: 10px;
border-bottom: 2px solid #e7e7e7;
padding-bottom: 5px;
}
.details, .items, .totals {
margin-bottom: 20px;
}
.details .label, .totals .label {
width: 30%;
display: inline-block;
color: #888;
}
.details .value, .totals .value {
width: 70%;
display: inline-block;
color: #333;
}
.items table {
width: 100%;
border-collapse: collapse;
}
.items table, .items th, .items td {
border: 1px solid #e7e7e7;
}
.items th, .items td {
padding: 10px;
text-align: left;
}
.items th {
background-color: #f8f8f8;
color: #555;
}
.totals {
text-align: right;
}
.totals .label {
font-weight: bold;
}
</style>
<div class="invoice-container">
<div class="header">
<h1>Invoice</h1>
</div>
<div class="details">
<div class="section-title">Invoice Details</div>
<div><span class="label">Invoice ID:</span> <span class="value">{invoiceData.invoiceID}</span></div>
<div><span class="label">Issue Date:</span> <span class="value">{invoiceData.issueDate}</span></div>
<div><span class="label">Due Date:</span> <span class="value">{invoiceData.dueDate}</span></div>
<div><span class="label">Currency:</span> <span class="value">{invoiceData.currency}</span></div>
</div>
<div class="details">
<div class="section-title">Supplier Details</div>
<div><span class="label">Name:</span> <span class="value">{invoiceData.supplier.name}</span></div>
<div><span class="label">Street:</span> <span class="value">{invoiceData.supplier.street}</span></div>
<div><span class="label">City:</span> <span class="value">{invoiceData.supplier.city}</span></div>
<div><span class="label">Country:</span> <span class="value">{invoiceData.supplier.country}</span></div>
</div>
<div class="details">
<div class="section-title">Customer Details</div>
<div><span class="label">Name:</span> <span class="value">{invoiceData.customer.name}</span></div>
<div><span class="label">Street:</span> <span class="value">{invoiceData.customer.street}</span></div>
<div><span class="label">City:</span> <span class="value">{invoiceData.customer.city}</span></div>
<div><span class="label">Country:</span> <span class="value">{invoiceData.customer.country}</span></div>
</div>
<div class="items">
<div class="section-title">Invoice Items</div>
<table>
<thead>
<tr>
<th>Description</th>
<th>Quantity</th>
<th>Unit Code</th>
<th>Price (EUR)</th>
<th>Line Extension Amount (EUR)</th>
</tr>
</thead>
<tbody>
{#each invoiceData.items as item}
<tr>
<td>{item.description}</td>
<td>{item.quantity}</td>
<td>{item.unitCode}</td>
<td>{item.price}</td>
<td>{item.lineExtensionAmount}</td>
</tr>
{/each}
</tbody>
</table>
</div>
<div class="totals">
<div><span class="label">Line Extension Amount Total:</span> <span class="value">{invoiceData.totals.lineExtensionAmountTotal}</span></div>
<div><span class="label">Tax Exclusive Amount:</span> <span class="value">{invoiceData.totals.taxExclusiveAmount}</span></div>
<div><span class="label">Tax Inclusive Amount:</span> <span class="value">{invoiceData.totals.taxInclusiveAmount}</span></div>
<div><span class="label">Payable Amount:</span> <span class="value">{invoiceData.totals.payableAmount}</span></div>
</div>
</div>

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

13
svelte.config.js Normal file
View File

@ -0,0 +1,13 @@
import adapter from '@sveltejs/adapter-auto';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
};
export default config;

6
vite.config.js Normal file
View File

@ -0,0 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
});