Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
- Fixed : sale price set if the tax is not provided
  • Loading branch information
Blair2004 committed May 6, 2021
1 parent d8c9221 commit 92506a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Services/ProductService.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ private function __computeUnitQuantities( $fields, $product )
* available on the group variable, that's why we define
* explicitely how everything is saved here.
*/
$unitQuantity->sale_price = $this->currency->define( $group[ 'sale_price_edit' ] )->getRaw();
$unitQuantity->sale_price_edit = $this->currency->define( $group[ 'sale_price_edit' ] )->getRaw();
$unitQuantity->wholesale_price_edit = $this->currency->define( $group[ 'wholesale_price_edit' ] )->getRaw();
$unitQuantity->preview_url = $group[ 'preview_url' ] ?? '';
Expand Down

0 comments on commit 92506a3

Please sign in to comment.