Skip to content

Fix Tax Error Thrown in Luma Checkout#101

Merged
JosephLeedy merged 1 commit intorelease-1.4from
5-fix-frontend-error
Dec 29, 2025
Merged

Fix Tax Error Thrown in Luma Checkout#101
JosephLeedy merged 1 commit intorelease-1.4from
5-fix-frontend-error

Conversation

@JosephLeedy
Copy link
Owner

Fixes #5

@JosephLeedy JosephLeedy self-assigned this Dec 29, 2025
@JosephLeedy JosephLeedy added the bug Something isn't working label Dec 29, 2025
@JosephLeedy JosephLeedy moved this from Backlog to In progress in Custom Fees for Magento 2 Dec 29, 2025
@JosephLeedy JosephLeedy moved this from In progress to In review in Custom Fees for Magento 2 Dec 29, 2025
@github-actions
Copy link

Code Coverage Report:
  2025-12-29 22:34:50

 Summary:
  Classes: 25.97% (20/77)
  Methods: 55.48% (162/292)
  Lines:   79.81% (2325/2913)

JosephLeedy\CustomFees\Block\Adminhtml\CustomOrderFees\Report
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 16/ 16)
JosephLeedy\CustomFees\Block\Adminhtml\CustomOrderFees\Report\Filter\Form\CustomOrderFees
  Methods:   0.00% ( 0/ 1)   Lines:  97.73% ( 43/ 44)
JosephLeedy\CustomFees\Block\Adminhtml\CustomOrderFees\Report\Grid
  Methods: 100.00% ( 4/ 4)   Lines: 100.00% (201/201)
JosephLeedy\CustomFees\Block\Adminhtml\CustomOrderFees\Report\Grid\Column\Renderer\Currency\LocalizedFeeAmount
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 20/ 20)
JosephLeedy\CustomFees\Block\Adminhtml\Sales\Order\Creditmemo\Create\Totals
  Methods:  60.00% ( 3/ 5)   Lines:  72.73% ( 32/ 44)
JosephLeedy\CustomFees\Block\Sales\Order\Creditmemo\Totals
  Methods:  80.00% ( 4/ 5)   Lines:  97.73% ( 43/ 44)
JosephLeedy\CustomFees\Block\Sales\Order\Invoice\Totals
  Methods:  60.00% ( 3/ 5)   Lines:  95.92% ( 47/ 49)
JosephLeedy\CustomFees\Block\Sales\Order\Totals
  Methods:  80.00% ( 4/ 5)   Lines:  97.62% ( 41/ 42)
JosephLeedy\CustomFees\Block\System\Config\Form\Field\CustomFees\Advanced\Form
  Methods:  50.00% ( 3/ 6)   Lines:  84.62% ( 77/ 91)
JosephLeedy\CustomFees\Controller\Adminhtml\Config\Export\ExampleCsv
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 16/ 16)
JosephLeedy\CustomFees\Controller\Adminhtml\Report\CustomOrderFees
  Methods:  75.00% ( 3/ 4)   Lines:  80.56% ( 29/ 36)
JosephLeedy\CustomFees\Controller\Adminhtml\Report\CustomOrderFees\Export\Csv
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  4/  4)
JosephLeedy\CustomFees\Controller\Adminhtml\Report\CustomOrderFees\Export\Excel
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  4/  4)
JosephLeedy\CustomFees\Controller\Adminhtml\System\Config\CustomFees\Advanced\Form
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 20/ 20)
JosephLeedy\CustomFees\Controller\Adminhtml\System\Config\CustomFees\Advanced\NewConditionHtml
  Methods:  50.00% ( 1/ 2)   Lines:  82.76% ( 24/ 29)
JosephLeedy\CustomFees\Cron\AggregateCustomOrderFeesReport
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 26/ 26)
JosephLeedy\CustomFees\Metadata\PropertyType
  Methods:  50.00% ( 1/ 2)   Lines:  60.00% (  6/ 10)
JosephLeedy\CustomFees\Model\Checkout\ConfigProvider\CustomFees
  Methods:  50.00% ( 1/ 2)   Lines:  81.82% (  9/ 11)
JosephLeedy\CustomFees\Model\Config
  Methods:  77.78% ( 7/ 9)   Lines:  85.90% ( 67/ 78)
JosephLeedy\CustomFees\Model\Config\Backend\CustomOrderFeesReport\AggregationCron
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 25/ 25)
JosephLeedy\CustomFees\Model\Config\Backend\File\ImportCustomFees
  Methods:  80.00% ( 4/ 5)   Lines:  93.14% ( 95/102)
JosephLeedy\CustomFees\Model\CustomOrderFee
  Methods:  88.89% (24/27)   Lines:  94.52% ( 69/ 73)
JosephLeedy\CustomFees\Model\CustomOrderFee\Invoiced
  Methods:  50.00% ( 1/ 2)   Lines:  66.67% (  2/  3)
JosephLeedy\CustomFees\Model\CustomOrderFee\Refunded
  Methods:  50.00% ( 1/ 2)   Lines:  66.67% (  2/  3)
JosephLeedy\CustomFees\Model\CustomOrderFees
  Methods:  63.64% ( 7/11)   Lines:  87.37% ( 83/ 95)
JosephLeedy\CustomFees\Model\CustomOrderFeesRepository
  Methods:  33.33% ( 2/ 6)   Lines:  33.33% ( 15/ 45)
JosephLeedy\CustomFees\Model\DisplayType
  Methods:   0.00% ( 0/ 3)   Lines:  30.77% (  4/ 13)
JosephLeedy\CustomFees\Model\FeeStatus
  Methods:  50.00% ( 1/ 2)   Lines:  42.86% (  3/  7)
JosephLeedy\CustomFees\Model\FeeType
  Methods:  33.33% ( 1/ 3)   Lines:  27.27% (  3/ 11)
JosephLeedy\CustomFees\Model\ResourceModel\CustomOrderFees
  Methods:  75.00% ( 3/ 4)   Lines:  50.00% (  7/ 14)
JosephLeedy\CustomFees\Model\ResourceModel\CustomOrderFees\Collection
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  1/  1)
JosephLeedy\CustomFees\Model\ResourceModel\Report\CustomOrderFees
  Methods:  75.00% ( 3/ 4)   Lines:  94.44% ( 51/ 54)
JosephLeedy\CustomFees\Model\ResourceModel\Report\CustomOrderFees\Collection
  Methods:  75.00% ( 3/ 4)   Lines:  94.59% ( 35/ 37)
JosephLeedy\CustomFees\Model\Rule\Condition\Combine
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 47/ 47)
JosephLeedy\CustomFees\Model\Rule\Condition\Product
  Methods:   0.00% ( 0/ 1)   Lines:  66.67% (  2/  3)
JosephLeedy\CustomFees\Model\Rule\Condition\Quote
  Methods:  20.00% ( 1/ 5)   Lines:  27.78% (  5/ 18)
JosephLeedy\CustomFees\Model\Rule\Condition\QuoteAddress
  Methods:  71.43% ( 5/ 7)   Lines:  86.84% ( 33/ 38)
JosephLeedy\CustomFees\Model\Rule\CustomFees
  Methods:  50.00% ( 2/ 4)   Lines:  86.67% ( 13/ 15)
JosephLeedy\CustomFees\Model\Sales\Pdf\CustomFees
  Methods:  80.00% ( 4/ 5)   Lines:  96.97% ( 64/ 66)
JosephLeedy\CustomFees\Model\Total\Creditmemo\CustomFees
  Methods:  80.00% ( 4/ 5)   Lines:  72.29% (180/249)
JosephLeedy\CustomFees\Model\Total\Invoice\CustomFees
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 94/ 94)
JosephLeedy\CustomFees\Model\Total\Quote\CustomFees
  Methods:  75.00% ( 6/ 8)   Lines:  92.31% (144/156)
JosephLeedy\CustomFees\Observer\AddFieldToProductAttributeEditForm
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 16/ 16)
JosephLeedy\CustomFees\Observer\BeforeQuoteSubmitObserver
  Methods:  50.00% ( 1/ 2)   Lines:  91.67% ( 11/ 12)
JosephLeedy\CustomFees\Plugin\Framework\View\Element\UiComponent\DataProvider\CollectionFactoryPlugin
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 13/ 13)
JosephLeedy\CustomFees\Plugin\Framework\View\Element\UiComponent\DataProvider\DataProviderPlugin
  Methods:  50.00% ( 1/ 2)   Lines:  90.62% ( 29/ 32)
JosephLeedy\CustomFees\Plugin\Quote\Api\Data\TotalsInterfacePlugin
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 28/ 28)
JosephLeedy\CustomFees\Plugin\Quote\Model\Cart\TotalsConverterPlugin
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 27/ 27)
JosephLeedy\CustomFees\Plugin\Reports\Model\ResourceModel\Refresh\CollectionPlugin
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 20/ 20)
JosephLeedy\CustomFees\Plugin\Sales\Api\CreditmemoRepositoryInterfacePlugin
  Methods:  50.00% ( 1/ 2)   Lines:  92.31% ( 24/ 26)
JosephLeedy\CustomFees\Plugin\Sales\Api\OrderRepositoryInterfacePlugin
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 21/ 21)
JosephLeedy\CustomFees\Plugin\Sales\Block\Order\TotalsPlugin
  Methods:  50.00% ( 1/ 2)   Lines:  95.24% ( 20/ 21)
JosephLeedy\CustomFees\Plugin\Sales\Model\Order\InvoicePlugin
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 28/ 28)
JosephLeedy\CustomFees\Plugin\Ui\Component\AbstractComponentPlugin
  Methods:  50.00% ( 1/ 2)   Lines:  93.88% ( 46/ 49)
JosephLeedy\CustomFees\Service\ConditionsApplier
  Methods:  33.33% ( 1/ 3)   Lines:  78.57% ( 11/ 14)
JosephLeedy\CustomFees\Service\ConfigUpdater
  Methods:  42.86% ( 3/ 7)   Lines:  82.76% ( 48/ 58)
JosephLeedy\CustomFees\Service\CustomFeesRetriever
  Methods:  40.00% ( 2/ 5)   Lines:  90.62% ( 29/ 32)
JosephLeedy\CustomFees\Service\CustomOrderFeeTaxValueAdder
  Methods:  66.67% ( 2/ 3)   Lines:  96.77% ( 60/ 62)
JosephLeedy\CustomFees\Service\DataObjectPropertyTypeConverter
  Methods:   0.00% ( 0/ 3)   Lines:  65.91% ( 58/ 88)
JosephLeedy\CustomFees\Service\InvoicedCustomFeesRecorder
  Methods:  66.67% ( 2/ 3)   Lines:  98.48% ( 65/ 66)
JosephLeedy\CustomFees\Service\RefundedCustomFeesRecorder
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 66/ 66)
JosephLeedy\CustomFees\Setup\Patch\Data\CreateConditionProductAttribute
  Methods:  40.00% ( 2/ 5)   Lines:  11.11% (  3/ 27)

@JosephLeedy JosephLeedy moved this from In review to Ready to Merge in Custom Fees for Magento 2 Dec 29, 2025
@JosephLeedy JosephLeedy merged commit 7b0e022 into release-1.4 Dec 29, 2025
31 of 33 checks passed
@JosephLeedy JosephLeedy deleted the 5-fix-frontend-error branch December 29, 2025 23:13
@github-project-automation github-project-automation bot moved this from Ready to Merge to Done in Custom Fees for Magento 2 Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant