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).
- [x] 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)
<details>
<summary>Completed features (click to expand items checklist)</summary>
- [x] [P1] Add 'Company Credit' to account area navigation menu
- [x] \[P2\] Visible with relevant permissions only (view credit)
</details>
### Company Credit History (`/company_credit/history/`)
<details>
<summary>Completed features (click to expand items checklist)</summary>
- [x] [P1] Accessible with relevant permissions only (view credit)
- [x] [P1] Show overall totals (balance, available, limit)
- [x] [P1] Credit history table output
- [x] [P2] Pagination works
- [x] [P2] Limiter works
<img src="/uploads/288fbfc1f5201aa97f9d5acc18eadcb2/Credit_Limit.png" width="600" height="auto" />
</details>
<details>
<summary>Unsupported features (click to expand items checklist)</summary>
- [ ] [P3] Column sorting
- Not important (enough) and not applied to all B2B grids (no consistency)
</details>
### Sales Order View (`/sales/order/view/order_id/{id}/`)
<details>
<summary>Completed features (click to expand items checklist)</summary>
> 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 the `Magento_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
- [x] [P3] Payment method output needs some styling to tidy up - padding/margin and font size/weight (same as title)
<img src="/uploads/01d1ed7f7f0f53024c5401d69478023c/Credit_Limit_Order_Payment_Method.png" width="300" height="auto" />
<img src="/uploads/98d2ebe0cbe2fe6699530f0dd3babd36/image.png" width="300" height="auto" />
</details>
## Contributors
## Voting
Use :thumbsup: to cast your vote.
issue