Skip to content

Commit e63347d

Browse files
committed
ACP2E-3403: Cart Price Rules Miscalculating Discount
1 parent 8bbc885 commit e63347d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Quote/Model/Quote/Item/AbstractItem.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* - custom_price - new price that can be declared by user and recalculated during calculation process
1919
* - original_custom_price - original defined value of custom price without any conversion
2020
*
21-
* @api
2221
* @method float getDiscountAmount()
2322
* @method \Magento\Quote\Model\Quote\Item\AbstractItem setDiscountAmount(float $amount)
2423
* @method float getBaseDiscountAmount()
@@ -255,7 +254,7 @@ public function setMessage($messages)
255254
/**
256255
* Add message of quote item to array of messages
257256
*
258-
* @param string $message
257+
* @param mixed $message
259258
* @return $this
260259
*/
261260
public function addMessage($message)

app/code/Magento/SalesRule/Model/Rule/Action/Discount/CartFixed.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public function calculate($rule, $item, $qty)
194194
* Set information about usage cart fixed rule by quote address
195195
*
196196
* @deprecated 101.2.0 should be removed as it is not longer used
197+
* @see Nothing
197198
* @param int $ruleId
198199
* @param int $itemId
199200
* @return void
@@ -207,6 +208,7 @@ protected function setCartFixedRuleUsedForAddress($ruleId, $itemId)
207208
* Retrieve information about usage cart fixed rule by quote address
208209
*
209210
* @deprecated 101.2.0 should be removed as it is not longer used
211+
* @see Nothing
210212
* @param int $ruleId
211213
* @return int|null
212214
*/

0 commit comments

Comments
 (0)