Skip to content

Commit 49e84cb

Browse files
Merge pull request #225 from magmodules/release/1.18.3
Release/1.18.3
2 parents a703a08 + bd789a2 commit 49e84cb

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

.github/workflows/setup-upgrade.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
MAGENTO_VERSION: 2.4.4
1717
- PHP_VERSION: php82-fpm
1818
MAGENTO_VERSION: 2.4.6
19+
- PHP_VERSION: php83-fpm
20+
MAGENTO_VERSION: 2.4.7
1921
runs-on: ubuntu-latest
2022
steps:
2123
- uses: actions/checkout@v2

Controller/Adminhtml/Log/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Stream extends Action
2323
*
2424
* @see _isAllowed()
2525
*/
26-
public const ADMIN_RESOURCE = 'Magmodules_Channable::config';
26+
public const ADMIN_RESOURCE = 'Magmodules_Channable::configuration';
2727

2828
/**
2929
* @var JsonFactory

Service/Order/Items/Add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function execute(Quote $quote, array $data, StoreInterface $store, bool $
125125
$product = $this->getProductById((int)$item['id'], (int)$store->getStoreId());
126126
$price = $this->getProductPrice($item, $product, $store, $quote, $isBusinessOrder);
127127
$product = $this->setProductData($product, $price, $store, $lvbOrder);
128-
if ($isBusinessOrder) {
128+
if ($isBusinessOrder && (isset($item['price_tax']) && $item['price_tax'] == 0)) {
129129
$product->setTaxClassId(0);
130130
}
131131

Service/Order/Process/CreateInvoice.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ public function execute(OrderInterface $order)
9393
$invoice = $this->invoiceService->prepareInvoice($order);
9494
$invoice->setRequestedCaptureCase(Invoice::CAPTURE_OFFLINE);
9595
$invoice->setTransactionFee($order->getTransactionFee());
96+
$invoice->setDiscountAmount($order->getDiscountAmount());
97+
$invoice->setBaseDiscountAmount($order->getDiscountAmount());
98+
$invoice->setDiscountDescription($order->getDiscountDescription());
99+
$invoice->setGrandTotal($order->getGrandTotal());
100+
$invoice->setBaseGrandTotal($order->getBaseGrandTotal());
96101
$invoice->register();
97102

98103
$this->transaction->addObject($invoice);

Service/Product/InventoryData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getReservations(array $skus, int $stockId): void
119119

120120
$reservations = $connection->fetchAll($select);
121121
foreach ($reservations as $reservation) {
122-
$this->reservation[$stockId][$reservation['sku']] = $reservation['quantity'];
122+
$this->reservation[$stockId][$reservation['sku']] = max(0, $reservation['quantity'] * -1);
123123
}
124124
}
125125

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magmodules/magento2-channable",
33
"description": "Channable integration for Magento 2",
44
"type": "magento2-module",
5-
"version": "1.18.2",
5+
"version": "1.18.3",
66
"license": "BSD-2-Clause",
77
"homepage": "https://github.com/magmodules/magento2-channable",
88
"require": {

etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<general>
1313
<enable>0</enable>
1414
<limit>250</limit>
15-
<version>v1.18.2</version>
15+
<version>v1.18.3</version>
1616
</general>
1717
<data>
1818
<name_attribute>name</name_attribute>

0 commit comments

Comments
 (0)