Skip to content

Commit

Permalink
Merge pull request #84 in PLUG_OPEN/swagbackendorder from PT-8810/5.4…
Browse files Browse the repository at this point in the history
…/shopware-54-compatibility to master

* commit '4ab6fcb2b53244ba94f8b416e54f5c4c21dd1335':
  PT-8810 - Shopware 5.4 compatibility
  • Loading branch information
mitelg committed Feb 1, 2018
2 parents 8fb876f + 4ab6fcb commit 4c417ea
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Components/ConfirmationMail/ConfirmationMailRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getArticleDetailsByOrderNumber($ordernumber)
'details.purchaseunit',
'details.releasedate',
'details.unitID',
'article.laststock',
'details.laststock',
'article.mode as modus',
'article.main_detail_id as mainDetailId',
'article.taxID',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function isValid($inStock, $quantity)
private function isLastStockProduct($orderNumber)
{
$builder = $this->connection->createQueryBuilder();
$builder->select('article.laststock')
$builder->select('details.laststock')
->from('s_articles', 'article')
->leftJoin('article', 's_articles_details', 'details', 'details.articleID = article.id')
->where('ordernumber = :number')
Expand Down
2 changes: 1 addition & 1 deletion Resources/config.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../engine/Shopware/Components/Plugin/schema/config.xsd">
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/shopware/5.4/engine/Shopware/Components/Plugin/schema/config.xsd">

<elements>
<element required="true" type="text">
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "shopware/swag-backend-order",
"name": "shopwareLabs/swag-backend-order",
"type": "shopware-plugin",
"description": "Plugin which allows you to create orders via the backend orders module.",
"license": "MIT",
Expand Down
11 changes: 8 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../engine/Shopware/Components/Plugin/schema/plugin.xsd">
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/shopware/5.4/engine/Shopware/Components/Plugin/schema/plugin.xsd">

<label lang="de">Backend Bestellungen</label>
<label lang="en">Backend orders</label>

<version>2.1.0</version>
<version>2.2.0</version>
<copyright>(c) by shopware AG</copyright>
<license>proprietary</license>
<link>http://store.shopware.com</link>
<author>shopware AG</author>
<compatibility minVersion="5.2.0"/>
<compatibility minVersion="5.4.0"/>

<changelog version="2.2.0">
<changes lang="de">PT-8810 - Shopware 5.4 Kompatibilität;</changes>
<changes lang="en">PT-8810 - Shopware 5.4 compatibility;</changes>
</changelog>

<changelog version="2.1.0">
<changes lang="de">PT-8793 - Obsoleten Code entfernt; Composer Kompatibilität;</changes>
Expand Down

0 comments on commit 4c417ea

Please sign in to comment.