Skip to content

Call to a member function getId() on array in module-sales/view/adminhtml/templates/order/totals/tax.phtml:62 #30094

Closed
@pjayramkumar

Description

@pjayramkumar

Preconditions (*)

  1. Magento Version 2.4.0

Steps to reproduce (*)

  1. Go to Store -> Configuration -> Sales -> Tax -> Orders, Invoices, Credit Memos Display Settings -> Display Full Tax Summary and change to YES
  2. Go to Sales -> Orders -> Open Order -> Invoice Tab -> Open Invoice -> Page View Source -> Issue will Visible at the end of view source Page

Expected result (*)

  1. <Screenshots, logs or description]
  2. Screenshot 2020-09-17 at 9 54 45 PM
  3. $rate->getId() should be like $rate['id']

4.Screenshot 2020-09-17 at 9 57 24 PM
need to expand this array and add id as key to get in the result to the Magento\Tax\Model\ResourceModel\Calculation
Screenshot 2020-09-17 at 9 59 34 PM
add the ID CONST in the Magento\Tax\Model\Sales\Order\Tax class

Actual result (*)

  1. [Screenshots, logs or description]

Screenshot 2020-09-17 at 10 00 56 PM

Additional info from Engcom

Switch Magento into Developer mode to reproduce the issue bin/magento dep:mo:set developer
The invoice looks like this
html_invoice

Error from View Page Source
Selection_017

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SalesComponent: TaxIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions