Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added new form camps and masks #66

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
3 changes: 0 additions & 3 deletions .github/CODEOWNERS

This file was deleted.

24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/questions-and-help.md

This file was deleted.

27 changes: 0 additions & 27 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

13 changes: 9 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=� Use this project, [contribute](https://github.com/vtex-apps/b2b-organizations) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).
=� Use this project, [contribute](https://github.com/vtex-apps/b2b-organizations) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).

# B2B Organizations

Expand Down Expand Up @@ -307,7 +307,7 @@ This will lead you to the **Cost Center Details** page, where you can:

The optional **Business Document** field may be used to store a Tax ID, VAT ID, CNPJ, or similar business identifier. If a Business Document is present in a user's cost center, it will be applied as the `corporateDocument` in the user's profile and therefore attached to any orders placed by the user.

> � The shipping addresses assigned to a cost center will be available to that cost center's users at checkout if you install [B2B Checkout Settings](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-checkout-settings). No other addresses will be available. Therefore, each cost center must have at least one shipping address.
> � The shipping addresses assigned to a cost center will be available to that cost center's users at checkout if you install [B2B Checkout Settings](https://developers.vtex.com/vtex-developer-docs/docs/vtex-b2b-checkout-settings). No other addresses will be available. Therefore, each cost center must have at least one shipping address.

To edit or delete an existing address, click <img src="https://user-images.githubusercontent.com/77292838/159766633-dfcb818f-6bd7-4cd0-92dc-9c682fb50d04.png" width="10" alt-text="00-ellipsis"/> next to it and select **Edit** or **Delete**.

Expand Down Expand Up @@ -454,9 +454,14 @@ A B2B user who is not already part of an organization can request the creation o
- **First Name:** first name of the Organization Admin user.
- **Last Name:** last name of the Organization Admin user.
- **Email Address:** email address of the Organization Admin user.
- **CPF:** CPF of the Organization Admin user.
- **Phone:** Phone of the Organization Admin user.
- **Default Cost Center:** section where you must provide information about the first cost center associated with the organization.
- **Cost Center Name:** name of the cost center.
- **Business Document:** optional field for a business document such as a Tax ID, CNPJ, etc.
- **Business Document:** field for a business document such as a Tax ID, CNPJ, etc.
- **Occupation Area:** field for a occupation area.
- **ICMS:** field for a ICMS.
- **IE:** field for a IE.
- **Country:** country where the cost center is located.
- **ZIP:** postal code of the cost center address.
- **Address Line 1:** primary address information, including street number and street name where the cost center is located.
Expand Down Expand Up @@ -502,7 +507,7 @@ To add a new cost center, they should go to **My Account > My Organization**, wh

In addition, **Organization Admins** can enable specific payment terms for a cost center, by using the toggle button to activate or deactivate the payment terms assigned to the organization, as shown below.

> � This section will only be available on the **My Organization** page if [payment terms](#payment-terms) have previously been assigned to the organization by the VTEX Admin users.
> � This section will only be available on the **My Organization** page if [payment terms](#payment-terms) have previously been assigned to the organization by the VTEX Admin users.

![19-payment-terms-cost-center](https://user-images.githubusercontent.com/77292838/159766775-dd0a17bd-8418-401b-a377-7d4c9ed0cf11.png)

Expand Down
5 changes: 2 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"postreleasy": "vtex publish"
},
"dependencies": {
"vtex.b2b-organizations-graphql": "0.x",
"hermespardini.b2b-organizations-graphql": "0.x",
"vtex.catalog-graphql": "1.x",
"vtex.admin-graphql": "2.x",
"vtex.store-graphql": "2.x",
Expand All @@ -27,8 +27,7 @@
"admin": "0.x",
"messages": "1.x",
"docs": "0.x",
"store": "0.x",
"vtex.storefront-permissions": "1.x"
"store": "0.x"
},
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}
30 changes: 29 additions & 1 deletion messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@
"store/b2b-organizations.request-new-organization.first-name.label": "store/b2b-organizations.request-new-organization.first-name.label",
"store/b2b-organizations.request-new-organization.last-name.label": "store/b2b-organizations.request-new-organization.last-name.label",
"store/b2b-organizations.request-new-organization.email.label": "store/b2b-organizations.request-new-organization.email.label",
"store/b2b-organizations.request-new-organization.cpf.label": "store/b2b-organizations.request-new-organization.cpf.label",
"store/b2b-organizations.request-new-organization.telephone.label": "store/b2b-organizations.request-new-organization.telephone.label",
"store/b2b-organizations.request-new-organization.default-cost-center.title": "store/b2b-organizations.request-new-organization.default-cost-center.title",
"store/b2b-organizations.request-new-organization.default-cost-center-name.label": "store/b2b-organizations.request-new-organization.default-cost-center-name.label",
"store/b2b-organizations.request-new-organization.submit-button.label": "store/b2b-organizations.request-new-organization.submit-button.label",
Expand Down Expand Up @@ -275,5 +277,31 @@
"store/b2b-organizations.user-widget.impersonating": "store/b2b-organizations.user-widget.impersonating",
"store/b2b-organizations.request-new-organization.submit-button.create-new-request": "store/b2b-organizations.request-new-organization.submit-button.create-new-request",
"store/b2b-organizations.stop-impersonation": "store/b2b-organizations.stop-impersonation",
"store/b2b-organizations.stop-impersonation-error": "store/b2b-organizations.stop-impersonation-error"
"store/b2b-organizations.stop-impersonation-error": "store/b2b-organizations.stop-impersonation-error",
"store/b2b-organizations.request-new-organization.newsletter.label": "store/b2b-organizations.request-new-organization.newsletter.label",
"store/b2b-organizations.request-new-organization.proof-attachment-description": "store/b2b-organizations.request-new-organization.proof-attachment-description",
"store/b2b-organizations.request-new-organization.proof-attachment": "store/b2b-organizations.request-new-organization.proof-attachment",
"store/b2b-organizations.request-new-organization.accept-terms-and-conditions": "store/b2b-organizations.request-new-organization.accept-terms-and-conditions",
"store/b2b-organizations.request-new-organization.privacyPolicies.label": "store/b2b-organizations.request-new-organization.privacyPolicies.label",
"store/b2b-organizations.request-new-organization.user-data":"store/b2b-organizations.request-new-organization.user-data",
"store/b2b-organizations.request-new-organization.form-container-subtitle":"store/b2b-organizations.request-new-organization.form-container-subtitle",
"store/b2b-organizations.request-new-organization.organization-data":"store/b2b-organizations.request-new-organization.organization-data",
"store/b2b-organizations.request-new-organization.organization-data-description":"store/b2b-organizations.request-new-organization.organization-data-description",
"store/b2b-organizations.request-new-organization.cnpj.label":"store/b2b-organizations.request-new-organization.cnpj.label",
"store/b2b-organizations.request-new-organization.free":"store/b2b-organizations.request-new-organization.free",
"store/b2b-organizations.request-new-organization.yes":"store/b2b-organizations.request-new-organization.yes",
"store/b2b-organizations.request-new-organization.no":"store/b2b-organizations.request-new-organization.no",
"store/b2b-organizations.request-new-organization.occupationArea":"store/b2b-organizations.request-new-organization.occupationArea",
"store/b2b-organizations.request-new-organization.occupationAreaDescription":"store/b2b-organizations.request-new-organization.occupationAreaDescription",
"store/b2b-organizations.request-new-organization.landline.label":"store/b2b-organizations.request-new-organization.landline.label",
"store/b2b-organizations.request-new-organization.register-billing-address":"store/b2b-organizations.request-new-organization.register-billing-address",
"store/b2b-organizations.request-new-organization.register-billing-address-description":"store/b2b-organizations.request-new-organization.register-billing-address-description",
"store/b2b-organizations.request-new-organization.form-title":"store/b2b-organizations.request-new-organization.form-title",
"store/b2b-organizations.request-new-organization.form-subtitle":"store/b2b-organizations.request-new-organization.form-subtitle",
"store/b2b-organizations.request-new-organization.form-title-description":"store/b2b-organizations.request-new-organization.form-title-description",
"store/b2b-organizations.request-new-organization.attach-file.label":"store/b2b-organizations.request-new-organization.attach-file.label",
"store/b2b-organizations.request-new-organization.attach-file.acceptedFormats":"store/b2b-organizations.request-new-organization.attach-file.acceptedFormats",
"store/b2b-organizations.request-new-organization.required-fields-panel.title":"store/b2b-organizations.request-new-organization.required-fields-panel.title",
"store/b2b-organizations.request-new-organization.state-registration-initials": "store/b2b-organizations.request-new-organization.state-registration-initials",
"store/b2b-organizations.request-new-organization.required-fields-panel.user-data": "store/b2b-organizations.request-new-organization.required-fields-panel.user-data"
}
Loading