Magento_CompanyCredit
Magento Modules:
- Magento_CompanyCredit
- Magento_CompanyCreditGraphQl
Adobe Commerce Packages
- magento/module-company-credit
- magento/module-company-credit-graph-ql
Repository
Note: this repo is only accessible with a Hyvä Enterprise license or as a contributor.
For more details, see: https://www.hyva.io/hyva-enterprise.html.
https://gitlab.hyva.io/hyva-enterprise/b2b/magento2-ee-magento-company-credit
Features
All points are rated according to priority as P1 (critical), P2 (important), P3 (minor).
-
basic - does not break layout/design
Note: All below features assume output only if company accounts are enabled in Stores > Configuration:
btob/website_configuration/company_active
along with credit being enabled for the company.
Note: this issue is for features related to the main Hyvä Theme only. See #112 for details on Hyvä Checkout compatibility. All checkout features are also supported using the fallback Luma checkout.
Customer Account Area (all pages)
Completed features (click to expand items checklist)
-
[P1] Add 'Company Credit' to account area navigation menu -
[P2] Visible with relevant permissions only (view credit)
-
/company_credit/history/
)
Company Credit History (Completed features (click to expand items checklist)
-
[P1] Accessible with relevant permissions only (view credit) -
[P1] Show overall totals (balance, available, limit) -
[P1] Credit history table output -
[P2] Pagination works -
[P2] Limiter works
Unsupported features (click to expand items checklist)
-
[P3] Column sorting - Not important (enough) and not applied to all B2B grids (no consistency)
/sales/order/view/order_id/{id}/
)
Sales Order View (Completed features (click to expand items checklist)
Also applies to guest order view (
/sales/guest/view/
) and print order (/sales/order/print/order_id/{id}/
) / (/sales/guest/print/order_id/{id}/
)
-
[P1] Payment method info on account area/guest order - Shared template for both pages
- Outputs custom reference number for the order
Note: this has broken since updates in theme
1.3.0
release for accessibility - needs review/fix. For now this can be fixed by reverting theMagento_Sales/templates/order/info.phtml
in the default theme to use the original block method for outputting payment method info (see: https://gitlab.hyva.io/hyva-themes/magento2-default-theme/-/merge_requests/697/diffs)
Visual QA
-
[P3] Payment method output needs some styling to tidy up - padding/margin and font size/weight (same as title)
Contributors
Voting
Use