Overview

Adds UI for selecting conditions for Product Tax Types.

Dependencies

commerce_product_tax:commerce_product_tax

Project page

https://www.drupal.org/project/commerce_product_tax_exempt

Git instructions

git clone --branch 2.0.x https://git.drupalcode.org/project/commerce_product_tax_exempt.git

Pareview checklist

https://pareview.sh/pareview/https-git.drupal.org-project-commerce_produ...

Comments

ozin created an issue. See original summary.

ozin’s picture

Status: Active » Needs review
avpaderno’s picture

Issue summary: View changes
Related issues: +#3120663: [D8] Role

Thank you for applying! I added the Git instructions for non-maintainer users. Reviewers will check the project and post comments to list what should be changed.

bunty badgujar’s picture

Hello,
Fix following issue

FILE: /app/web/modules/contrib/commerce_product_tax_exempt/tests/src/Functional/TaxTypeConditionsFormTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
51 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------

bunty badgujar’s picture

Status: Needs review » Needs work
ozin’s picture

Status: Needs work » Needs review

Fixed issues with new release.

abhijeet.kumar2107’s picture

Hi, please fix mentioned issue

../vendor/bin/drupal-check modules/contrib/commerce_product_tax_exempt/ -d

6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ----------------------------------------------------------------------------------------------------------------
Line src/Plugin/Commerce/Condition/CustomerRoleCondition.php
------ ----------------------------------------------------------------------------------------------------------------
Class Drupal\commerce_order\Plugin\Commerce\Condition\OrderCustomerRole not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
19 Class Drupal\commerce_order\Plugin\Commerce\Condition\OrderCustomerRole not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ ----------------------------------------------------------------------------------------------------------------

------ ---------------------------------------------------------------------------------------------------
Line src/Resolver/ConditionTaxRateResolver.php
------ ---------------------------------------------------------------------------------------------------
Class Drupal\commerce_product_tax\Resolver\TaxRateResolver not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
16 Class Drupal\commerce_product_tax\Resolver\TaxRateResolver not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ ---------------------------------------------------------------------------------------------------

------ -------------------------------------------------------------------------------------------------------
Line tests/src/Functional/TaxTypeConditionsFormTest.php
------ -------------------------------------------------------------------------------------------------------
Class Drupal\Tests\commerce\Functional\CommerceBrowserTestBase not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
14 Class Drupal\Tests\commerce\Functional\CommerceBrowserTestBase not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ -------------------------------------------------------------------------------------------------------

[ERROR] Found 6 errors

abhijeet.kumar2107’s picture

Hi, please fix mentioned issue

../vendor/bin/drupal-check modules/contrib/commerce_product_tax_exempt/ -d

6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ----------------------------------------------------------------------------------------------------------------
Line src/Plugin/Commerce/Condition/CustomerRoleCondition.php
------ ----------------------------------------------------------------------------------------------------------------
Class Drupal\commerce_order\Plugin\Commerce\Condition\OrderCustomerRole not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
19 Class Drupal\commerce_order\Plugin\Commerce\Condition\OrderCustomerRole not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ ----------------------------------------------------------------------------------------------------------------

------ ---------------------------------------------------------------------------------------------------
Line src/Resolver/ConditionTaxRateResolver.php
------ ---------------------------------------------------------------------------------------------------
Class Drupal\commerce_product_tax\Resolver\TaxRateResolver not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
16 Class Drupal\commerce_product_tax\Resolver\TaxRateResolver not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ ---------------------------------------------------------------------------------------------------

------ -------------------------------------------------------------------------------------------------------
Line tests/src/Functional/TaxTypeConditionsFormTest.php
------ -------------------------------------------------------------------------------------------------------
Class Drupal\Tests\commerce\Functional\CommerceBrowserTestBase not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
14 Class Drupal\Tests\commerce\Functional\CommerceBrowserTestBase not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ -------------------------------------------------------------------------------------------------------

[ERROR] Found 6 errors

ozin’s picture

Which tool did you use for generation these reports?

abhijeet.kumar2107’s picture

HI @ozin,

I used ../vendor/bin/drupal-check -d modules/contrib/commerce_product_tax_exempt/

shaktik’s picture

Hi ozin,

Thanks for your contribution!

See below url, hope this help you to install drupal check.

https://github.com/mglaman/drupal-check/wiki/Drupal-9-Readiness

avpaderno’s picture

Since this module declares its dependency from the commerce_product_tax module, I take that drupal-check was run before loading all the module dependencies.
It could be the module should declare more dependencies than it does, but given the false positives drupal-check gives in the reports I see in these applications, I would suggest to verify the instructions to use it are correctly followed, or use another tool to check a module declares all the dependencies correctly.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

ozin’s picture

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.