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 @@ -832,20 +832,20 @@ public function getInfoUrl($store = null)
832
832
* If it necessary will be returned conversion type (minus or plus)
833
833
*
834
834
* @param null|int|string|Store $store
835
- * @return bool
835
+ * @return bool|int
836
836
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
837
837
*/
838
838
public function needPriceConversion ($ store = null )
839
839
{
840
- $ res = false ;
840
+ $ res = 0 ;
841
841
$ priceIncludesTax = $ this ->priceIncludesTax ($ store ) || $ this ->getNeedUseShippingExcludeTax ();
842
842
if ($ priceIncludesTax ) {
843
843
switch ($ this ->getPriceDisplayType ($ store )) {
844
844
case self ::DISPLAY_TYPE_EXCLUDING_TAX :
845
845
case self ::DISPLAY_TYPE_BOTH :
846
846
return self ::PRICE_CONVERSION_MINUS ;
847
847
case self ::DISPLAY_TYPE_INCLUDING_TAX :
848
- $ res = true ;
848
+ $ res = false ;
849
849
break ;
850
850
default :
851
851
break ;
You can’t perform that action at this time.
0 commit comments