Skip to content

Commit

Permalink
1.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 20, 2017
1 parent 0f5cdde commit 2f5fbf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions LineItem/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function build() {return parent::build() + df_clean([
// «Quantity of the item passed in.
// (0-999, defaults to 1 if not passed in or incorrectly formatted.) Optional»
// https://www.2checkout.com/documentation/payment-api/create-sale
,'quantity' => df_oi_qty($this->oi())
,'quantity' => df_oqi_qty($this->oi())
]);}

/**
Expand Down Expand Up @@ -78,7 +78,7 @@ protected function nameRaw() {return $this->oi()->getName();}
/**
* 2016-05-29
* 2017-02-01
* @uses df_oi_price() использует
* @uses df_oqi_price() использует
* @see \Magento\Sales\Model\Order\Item::getPrice(),
* а не @see \Magento\Sales\Model\Order\Item::getPriceInclTax().
* Это именно то, что нам нужно: мы не размазываем налоги по товарам,
Expand All @@ -89,7 +89,7 @@ protected function nameRaw() {return $this->oi()->getName();}
* @used-by \Dfe\TwoCheckout\LineItem::build()
* @return string
*/
protected function price() {return $this->charge()->cFromDocF(df_oi_price($this->oi()));}
protected function price() {return $this->charge()->cFromDocF(df_oqi_price($this->oi()));}

/**
* 2016-05-23
Expand Down Expand Up @@ -157,7 +157,7 @@ private function p() {return $this->oi()->getProduct();}
* 2016-05-23
* @return OI
*/
private function top() {return dfc($this, function() {return df_oi_top($this->oi());});}
private function top() {return dfc($this, function() {return df_oqi_top($this->oi());});}

/**
* 2016-05-23
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/2checkout"
,"version": "1.4.7"
,"version": "1.4.8"
,"description": "The «2Checkout» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/2checkout"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.4.56", "2checkout/2checkout-php": "*"}
,"require": {"mage2pro/core": ">=2.5.10", "2checkout/2checkout-php": "*"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\TwoCheckout\\": ""}}
,"keywords": [
"2Checkout"
Expand Down

0 comments on commit 2f5fbf3

Please sign in to comment.