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

Impossible to edit some custom field on order #2641

Closed
giosueDelgado opened this issue Jan 23, 2024 · 0 comments
Closed

Impossible to edit some custom field on order #2641

giosueDelgado opened this issue Jan 23, 2024 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@giosueDelgado
Copy link
Collaborator

Describe the bug
Is impossible to edit the price section:

image

To Reproduce
Steps to reproduce the behavior:
Just use this configuration of customfields:

export const orderLineCustomFields: CustomFieldConfig[] = [
  {
    name: "shippingLineRef",
    readonly: true,
    type: "relation",
    label: [
      { languageCode: LanguageCode.it, value: "Metodo di spedizione" },
      { languageCode: LanguageCode.en, value: "Shipping method for item" },
    ],
    entity: ShippingLine,
  },
  {
    name: "shippingMethodCode",
    type: "string",
    label: [
      { languageCode: LanguageCode.it, value: "Metodo di spedizione" },
      { languageCode: LanguageCode.en, value: "Shipping method for item" },
    ],
  },
  {
    name: "courierName",
    type: "string",
    label: [
      { languageCode: LanguageCode.it, value: "Nome corriere" },
      { languageCode: LanguageCode.en, value: "Courier name" },
    ],
  },
  {
    name: "courierTracking",
    type: "string",
    label: [
      { languageCode: LanguageCode.it, value: "Link tracking" },
      { languageCode: LanguageCode.en, value: "Tracking link" },
    ],
  },
  {
    name: "extraServicePrice",
    type: "int",
    ui: { component: "currency-form-input" },
    label: [
      { languageCode: LanguageCode.it, value: "Prezzo servizio extra" },
      { languageCode: LanguageCode.en, value: "Extra service price" },
    ],
  },
  {
    name: "offerId",
    type: "string",
    internal: true,
    label: [
      { languageCode: LanguageCode.it, value: "ID Offerta" },
      { languageCode: LanguageCode.en, value: "Offer ID" },
    ],
  },
];

Expected behavior
I'm able to edit all customfields without UI problems

Environment (please complete the following information):

  • @vendure/core version: 2.1.3
  • Nodejs version 16
  • Database (mysql/postgres etc): postgres
@giosueDelgado giosueDelgado added the type: bug 🐛 Something isn't working label Jan 23, 2024
@michaelbromley michaelbromley moved this to 🏗 In progress in Vendure OS Roadmap Jan 26, 2024
@michaelbromley michaelbromley moved this from 🏗 In progress to 🔖 Ready in Vendure OS Roadmap Feb 9, 2024
@michaelbromley michaelbromley moved this from 🔖 Ready to ✅ Done in Vendure OS Roadmap Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 🚀 Shipped
Development

No branches or pull requests

2 participants