Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a0c731474c | |||
| cc4a3b0281 | |||
| 3d5a70f6e1 |
2
CHANGELOG.md
Normal file → Executable file
2
CHANGELOG.md
Normal file → Executable file
@@ -1,2 +1,2 @@
|
|||||||
# 1.0.0
|
# 1.0.0 - 1.0.1
|
||||||
- Development
|
- Development
|
||||||
|
|||||||
2
CHANGELOG_de-DE.md
Normal file → Executable file
2
CHANGELOG_de-DE.md
Normal file → Executable file
@@ -1,2 +1,2 @@
|
|||||||
# 1.0.0
|
# 1.0.0 - 1.0.1
|
||||||
- Entwicklung
|
- Entwicklung
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -6,7 +6,21 @@ For now, this implementation is in an early stage, quite basic and taylored for
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
Download the source as zip. You may choose a specific version marked by its label. Then upload the contents of the zip file to your Showpare6 `custom/plugins` folder, login into the backend. You should now find it under **Extensions|My Extensions** where you can install it.
|
Download the source as zip. You may choose a specific version marked by its label. Then upload the contents of the zip file to your Showpare6 `custom/plugins` folder. The structure should look like this:
|
||||||
|
```
|
||||||
|
custom/
|
||||||
|
plugins/
|
||||||
|
SwhXRechnung/
|
||||||
|
src/
|
||||||
|
Controller/
|
||||||
|
...
|
||||||
|
SwhXRechnung.php
|
||||||
|
CHANGELOG.md
|
||||||
|
CHANGELOG_de-DE.md
|
||||||
|
composer.json
|
||||||
|
```
|
||||||
|
|
||||||
|
Login into the backend. You should now find it under **Extensions|My Extensions** where you can install it.
|
||||||
|
|
||||||
Regarding the **LeitwegID**: This can be changed in the order at the addresses tab, or the customer already provides it via its given address.
|
Regarding the **LeitwegID**: This can be changed in the order at the addresses tab, or the customer already provides it via its given address.
|
||||||
|
|
||||||
|
|||||||
4
composer.json
Normal file → Executable file
4
composer.json
Normal file → Executable file
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "swh/xrechnung",
|
"name": "swh/xrechnung",
|
||||||
"description": "SwhXRechnung plugin for SW6",
|
"description": "SwhXRechnung plugin for SW6",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"type": "shopware-platform-plugin",
|
"type": "shopware-platform-plugin",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"shopware/core": "6.6.*",
|
"shopware/core": "6.7.*",
|
||||||
"horstoeko/zugferd": "^1.0",
|
"horstoeko/zugferd": "^1.0",
|
||||||
"maennchen/zipstream-php": "^3.1"
|
"maennchen/zipstream-php": "^3.1"
|
||||||
},
|
},
|
||||||
|
|||||||
0
src/Controller/SwhXRechnungController.php
Normal file → Executable file
0
src/Controller/SwhXRechnungController.php
Normal file → Executable file
0
src/Entity/InvoiceData.php
Normal file → Executable file
0
src/Entity/InvoiceData.php
Normal file → Executable file
0
src/Resources/app/administration/src/component/swh-xrechnung/default-config/index.js
Normal file → Executable file
0
src/Resources/app/administration/src/component/swh-xrechnung/default-config/index.js
Normal file → Executable file
0
src/Resources/app/administration/src/extensions/sw-bulk-edit-order/sw-bulk-edit-order.html.twig
Normal file → Executable file
0
src/Resources/app/administration/src/extensions/sw-bulk-edit-order/sw-bulk-edit-order.html.twig
Normal file → Executable file
0
src/Resources/app/administration/src/init/http-service.init.js
Normal file → Executable file
0
src/Resources/app/administration/src/init/http-service.init.js
Normal file → Executable file
0
src/Resources/app/administration/src/main.js
Normal file → Executable file
0
src/Resources/app/administration/src/main.js
Normal file → Executable file
0
src/Resources/app/administration/src/module/swh-xrechnung/index.js
Normal file → Executable file
0
src/Resources/app/administration/src/module/swh-xrechnung/index.js
Normal file → Executable file
0
src/Resources/app/administration/src/module/swh-xrechnung/snippet/de-DE.json
Normal file → Executable file
0
src/Resources/app/administration/src/module/swh-xrechnung/snippet/de-DE.json
Normal file → Executable file
0
src/Resources/app/administration/src/module/swh-xrechnung/snippet/en-GB.json
Normal file → Executable file
0
src/Resources/app/administration/src/module/swh-xrechnung/snippet/en-GB.json
Normal file → Executable file
0
src/Resources/app/administration/src/services/http.service.js
Normal file → Executable file
0
src/Resources/app/administration/src/services/http.service.js
Normal file → Executable file
0
src/Resources/config/plugin.png
Normal file → Executable file
0
src/Resources/config/plugin.png
Normal file → Executable file
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
0
src/Resources/config/routes.xml
Normal file → Executable file
0
src/Resources/config/routes.xml
Normal file → Executable file
0
src/Resources/config/services.xml
Normal file → Executable file
0
src/Resources/config/services.xml
Normal file → Executable file
23
src/Resources/public/administration/.vite/entrypoints.json
Executable file
23
src/Resources/public/administration/.vite/entrypoints.json
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"base": "/bundles/swhxrechnung/administration/",
|
||||||
|
"entryPoints": {
|
||||||
|
"swh-x-rechnung": {
|
||||||
|
"css": [],
|
||||||
|
"dynamic": [],
|
||||||
|
"js": [
|
||||||
|
"/bundles/swhxrechnung/administration/assets/swh-x-rechnung-Dqn5Hkes.js"
|
||||||
|
],
|
||||||
|
"legacy": false,
|
||||||
|
"preload": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"legacy": false,
|
||||||
|
"metadatas": {},
|
||||||
|
"version": [
|
||||||
|
"7.1.0",
|
||||||
|
7,
|
||||||
|
1,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"viteServer": null
|
||||||
|
}
|
||||||
8
src/Resources/public/administration/.vite/manifest.json
Executable file
8
src/Resources/public/administration/.vite/manifest.json
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"main.js": {
|
||||||
|
"file": "assets/swh-x-rechnung-Dqn5Hkes.js",
|
||||||
|
"name": "swh-x-rechnung",
|
||||||
|
"src": "main.js",
|
||||||
|
"isEntry": true
|
||||||
|
}
|
||||||
|
}
|
||||||
2
src/Resources/public/administration/assets/swh-x-rechnung-Dqn5Hkes.js
Executable file
2
src/Resources/public/administration/assets/swh-x-rechnung-Dqn5Hkes.js
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
Shopware.Component.register("default-config",{template:"<h2>SWH XRechnung Default Config</h2>"});const n={"swh-xrechnung":{general:{title:"SWH XRechnung",desc:"XRechnung erstellen","default-config":"SWH XRechnung Einstellungen",documents:"Dokumente","create-xrechnung-btn":"XRechnung","create-xgutschrift-btn":"XGutschrift"}}},i={"swh-xrechnung":{general:{title:"SWH XRechnung",desc:"Create XRechnung","default-config":"SWH XRechnung settings",documents:"Documents","create-xrechnung-btn":"XRechnung","create-xgutschrift-btn":"XGutschrift"}}};Shopware.Module.register("swh-xrechnung",{type:"plugin",name:"SwhXRechnung",title:"swh-xrechnung.general.title",description:"swh-xrechnung.general.desc",color:"#38d460",icon:"default-action-bulk-edit",snippets:{"de-DE":n,"en-GB":i},routes:{swhXRechnungDefaultConfig:{component:"default-config",path:"swhXRechnungDefaultConfig"}},settingsItem:[{to:"swh.xrechnung.swhXRechnungDefaultConfig",group:"plugins",icon:"default-action-bulk-edit"}],navigation:[{label:"swh-xrechnung.general.default-config",color:"#38d460",path:"swh.xrechnung.swhXRechnungDefaultConfig",icon:"default-action-bulk-edit",parent:"sw-order",position:500}]});class s{constructor(t){this.httpClient=t}client(){return this.httpClient}}Shopware.Service().register("swhXRechnungHttpService",e=>{const t=Shopware.Application.getContainer("init");return new s(t.httpClient)});const c=`{% block sw_bulk_edit_order_content_order_status_card %} {% parent %} <sw-card class="sw-bulk-edit-order-base__status" :title="$tc('swh-xrechnung.general.title')" :is-loading="isLoading"> <div class="sw-form-field-renderer"> <sw-button-process style="margin:10px;" class="sw-bulk-edit-order__swh-bulk-xrechnung-action" variant="primary" :is-loading="isLoading" :process-success="false" :disabled="isLoading" @click="createXRechnung()" > {{ $tc('swh-xrechnung.general.create-xrechnung-btn') }} </sw-button-process> <sw-button-process style="margin:10px;" class="sw-bulk-edit-order__swh-bulk-xrechnung-action" variant="primary" :is-loading="isLoading" :process-success="false" :disabled="isLoading" @click="createXGutschrift()" > {{ $tc('swh-xrechnung.general.create-xgutschrift-btn') }} </sw-button-process> </div> </sw-card> {% endblock %}`;Shopware.Component.override("sw-bulk-edit-order",{inject:{swhHttpService:"swhHttpService",loginService:"loginService"},template:c,methods:{createXRechnung:function(){this.swhHttpService.client().post("/swh/xrechnung/createXRechnung/",{ids:this.selectedIds},{headers:this.basicHeaders(),version:3}).then(e=>{e.data.fileUrl?window.open(e.data.fileUrl,"_blank"):alert("Failed to generate the XRechnung")}).catch(e=>{alert(e),console.error("Failed to call POST: "+e)})},createXGutschrift:function(){this.swhHttpService.client().post("/swh/xrechnung/createXGutschrift/",{ids:this.selectedIds},{headers:this.basicHeaders(),version:3}).then(e=>{e.data.fileUrl?window.open(e.data.fileUrl,"_blank"):alert("Failed to generate the XGutschrift")}).catch(e=>{alert(e),console.error("Failed to call POST: "+e)})},basicHeaders(e=null){const t={"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${this.loginService.getToken()}`};return e&&e.languageId&&(t["sw-language-id"]=e.languageId),t}}});
|
||||||
|
//# sourceMappingURL=swh-x-rechnung-Dqn5Hkes.js.map
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
!function(){var e={410:function(){Shopware.Component.register("default-config",{template:"<h2>SWH XRechnung Default Config</h2>"})}},n={};function t(s){var r=n[s];if(void 0!==r)return r.exports;var i=n[s]={exports:{}};return e[s](i,i.exports,t),i.exports}t.p="bundles/swhxrechnung/",window?.__sw__?.assetPath&&(t.p=window.__sw__.assetPath+"/bundles/swhxrechnung/"),function(){"use strict";t(410);var e=JSON.parse('{"swh-xrechnung":{"general":{"title":"SWH XRechnung","desc":"XRechnung erstellen","default-config":"SWH XRechnung Einstellungen","documents":"Dokumente","create-xrechnung-btn":"XRechnung","create-xgutschrift-btn":"XGutschrift"}}}'),n=JSON.parse('{"swh-xrechnung":{"general":{"title":"SWH XRechnung","desc":"Create XRechnung","default-config":"SWH XRechnung settings","documents":"Documents","create-xrechnung-btn":"XRechnung","create-xgutschrift-btn":"XGutschrift"}}}');Shopware.Module.register("swh-xrechnung",{type:"plugin",name:"SwhXRechnung",title:"swh-xrechnung.general.title",description:"swh-xrechnung.general.desc",color:"#38d460",icon:"default-action-bulk-edit",snippets:{"de-DE":e,"en-GB":n},routes:{swhXRechnungDefaultConfig:{component:"default-config",path:"swhXRechnungDefaultConfig"}},settingsItem:[{to:"swh.xrechnung.swhXRechnungDefaultConfig",group:"plugins",icon:"default-action-bulk-edit"}],navigation:[{label:"swh-xrechnung.general.default-config",color:"#38d460",path:"swh.xrechnung.swhXRechnungDefaultConfig",icon:"default-action-bulk-edit",parent:"sw-order",position:500}]});class s{constructor(e){this.httpClient=e}client(){return this.httpClient}}Shopware.Service().register("swhXRechnungHttpService",e=>new s(Shopware.Application.getContainer("init").httpClient)),Shopware.Component.override("sw-bulk-edit-order",{inject:{swhHttpService:"swhHttpService",loginService:"loginService"},template:'{% block sw_bulk_edit_order_content_order_status_card %}\n {% parent %}\n\n \n\n <sw-card\n class="sw-bulk-edit-order-base__status"\n :title="$tc(\'swh-xrechnung.general.title\')"\n :is-loading="isLoading">\n <div class="sw-form-field-renderer">\n <sw-button-process style="margin:10px;"\n class="sw-bulk-edit-order__swh-bulk-xrechnung-action"\n variant="primary"\n :is-loading="isLoading"\n :process-success="false"\n :disabled="isLoading"\n @click="createXRechnung()"\n >\n {{ $tc(\'swh-xrechnung.general.create-xrechnung-btn\') }}\n </sw-button-process>\n <sw-button-process style="margin:10px;"\n class="sw-bulk-edit-order__swh-bulk-xrechnung-action"\n variant="primary"\n :is-loading="isLoading"\n :process-success="false"\n :disabled="isLoading"\n @click="createXGutschrift()"\n >\n {{ $tc(\'swh-xrechnung.general.create-xgutschrift-btn\') }}\n </sw-button-process>\n </div>\n </sw-card>\n{% endblock %}',methods:{createXRechnung:function(){this.swhHttpService.client().post("/swh/xrechnung/createXRechnung/",{ids:this.selectedIds},{headers:this.basicHeaders(),version:3}).then(e=>{e.data.fileUrl?window.open(e.data.fileUrl,"_blank"):alert("Failed to generate the XRechnung")}).catch(e=>{alert(e),console.error("Failed to call POST: "+e)})},createXGutschrift:function(){this.swhHttpService.client().post("/swh/xrechnung/createXGutschrift/",{ids:this.selectedIds},{headers:this.basicHeaders(),version:3}).then(e=>{e.data.fileUrl?window.open(e.data.fileUrl,"_blank"):alert("Failed to generate the XGutschrift")}).catch(e=>{alert(e),console.error("Failed to call POST: "+e)})},basicHeaders(e=null){let n={"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${this.loginService.getToken()}`};return e&&e.languageId&&(n["sw-language-id"]=e.languageId),n}}})}()}();
|
|
||||||
0
src/Resources/views/storefront/component/address/address-form.html.twig
Normal file → Executable file
0
src/Resources/views/storefront/component/address/address-form.html.twig
Normal file → Executable file
0
src/Service/CustomerService.php
Normal file → Executable file
0
src/Service/CustomerService.php
Normal file → Executable file
0
src/Service/FileHandler.php
Normal file → Executable file
0
src/Service/FileHandler.php
Normal file → Executable file
0
src/Service/Result.php
Normal file → Executable file
0
src/Service/Result.php
Normal file → Executable file
0
src/Service/XRechnungFieldsInstaller.php
Normal file → Executable file
0
src/Service/XRechnungFieldsInstaller.php
Normal file → Executable file
0
src/Service/XRechnungService.php
Normal file → Executable file
0
src/Service/XRechnungService.php
Normal file → Executable file
0
src/Subscriber/CustomerSubscriber.php
Normal file → Executable file
0
src/Subscriber/CustomerSubscriber.php
Normal file → Executable file
0
src/SwhXRechnung.php
Normal file → Executable file
0
src/SwhXRechnung.php
Normal file → Executable file
Reference in New Issue
Block a user