vendure icon indicating copy to clipboard operation
vendure copied to clipboard

Impossible to edit some custom field on order

Open giosueDelgado opened this issue 1 year ago • 0 comments

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 avatar Jan 23 '24 14:01 giosueDelgado