File tree 1 file changed +3
-3
lines changed
app/code/Magento/Tax/Model
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -831,20 +831,20 @@ public function getInfoUrl($store = null)
831
831
* If it necessary will be returned conversion type (minus or plus)
832
832
*
833
833
* @param null|int|string|Store $store
834
- * @return bool
834
+ * @return bool|int
835
835
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
836
836
*/
837
837
public function needPriceConversion ($ store = null )
838
838
{
839
- $ res = false ;
839
+ $ res = 0 ;
840
840
$ priceIncludesTax = $ this ->priceIncludesTax ($ store ) || $ this ->getNeedUseShippingExcludeTax ();
841
841
if ($ priceIncludesTax ) {
842
842
switch ($ this ->getPriceDisplayType ($ store )) {
843
843
case self ::DISPLAY_TYPE_EXCLUDING_TAX :
844
844
case self ::DISPLAY_TYPE_BOTH :
845
845
return self ::PRICE_CONVERSION_MINUS ;
846
846
case self ::DISPLAY_TYPE_INCLUDING_TAX :
847
- $ res = true ;
847
+ $ res = false ;
848
848
break ;
849
849
default :
850
850
break ;
You can’t perform that action at this time.
0 commit comments