-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[FIX] several fixes for sales and tax module: not used imports, variables and legacy code #14106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,17 +8,14 @@ | |
| class Grand extends AbstractTotal | ||
| { | ||
| /** | ||
| * Collect invoice grand total | ||
| * | ||
| * @param \Magento\Sales\Model\Order\Invoice $invoice | ||
| * @return $this | ||
| * @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
| */ | ||
| public function collect(\Magento\Sales\Model\Order\Invoice $invoice) | ||
| { | ||
| /** | ||
| * Check order grand total and invoice amounts | ||
| */ | ||
| if ($invoice->isLast()) { | ||
| // | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same concern as https://github.com/magento/magento2/pull/14106/files#r174779579 - prior to removal we should understand the intention of code author.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @orlangur |
||
| } | ||
| return $this; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,6 @@ | |
| use Magento\Framework\Exception\NoSuchEntityException; | ||
| use Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxInterfaceFactory as TaxDetailsDataObjectFactory; | ||
| use Magento\Tax\Api\Data\OrderTaxDetailsAppliedTaxInterface as AppliedTax; | ||
| use Magento\Tax\Model\Sales\Order\Tax; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please avoid removal of unused imports, someday we will remove them all at once with |
||
| use Magento\Sales\Model\Order\Tax\Item; | ||
|
|
||
| class TaxManagement implements \Magento\Tax\Api\OrderTaxManagementInterface | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be really nice to analyze from git history when this was hardcoded to
return false, maybe a part of functionality is broken now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orlangur

As I can see this was from the very beginning.