getAllPaidChoices (v5)

Revision 5 of this benchmark created on


Setup

const formData = {
	"006b7ef7-386a-464a-9835-6bf4d8dab42e": "c564a0b7-0fb3-4b4a-87e0-3bea476c9454"
};
const form = {
  id: "2e7be9d8-08fe-4033-8c88-da2c78564624",
  eventId: "ab393eec-46ee-44de-b910-78e436a4a64c",
  name: {
    fr: "Inscription",
    en: "Registration",
  },
  type: 0,
  areMultipleSubmissionsAllowed: false,
  isActive: true,
  emailFormFieldId: "b760cf78-c1aa-4d5e-b139-cee6946c4454",
  firstNameFormFieldId: "1c1687fe-4806-40c4-9ed0-3f664407326d",
  lastNameFormFieldId: "0679b55d-c580-4b37-a7df-192467005971",
  submissionTitleFormFieldId: null,
  submissionAbstractFormFieldId: null,
  capacity: 0,
  isCapacityLimited: false,
  isWaitingListEnabled: false,
  state: "Open",
  formSections: [
    {
      id: "1c1e1820-9e69-4d00-b71a-0024c393a5c5",
      label: {
        fr: "",
        en: "Specialty Gloves, sold by pair",
      },
      introText: {
        fr: "",
        en: "",
      },
      formFields: [
        {
          id: "006b7ef7-386a-464a-9835-6bf4d8dab42e",
          shortLabel: {
            fr: "",
            en: "EQ087870 - gloves, nitrile, rubber, #10, XL, green",
          },
          label: {
            fr: "",
            en: "EQ087870 - gloves, nitrile rubber, #10, XL, green",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 5,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "c564a0b7-0fb3-4b4a-87e0-3bea476c9454",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 8.96,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "62ba57b2-7644-44de-849d-1341e9f6107c",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 4.48,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "d4790542-bdd2-4ea0-8fee-9e47338130cf",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 13.44,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "73929644-2e9c-444b-b739-3a8e68b350a7",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 17.92,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "42f9a8f8-ca0a-44a8-a2ba-589fe9367715",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 22.4,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "02d91505-f43c-433d-8483-3bed231cd2dd",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 26.88,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "476a443c-b92b-44be-9a34-61bbe41411e9",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 31.36,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "0a995fda-af96-4ec2-ae63-78912cfc529e",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 35.84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "5988e1ea-a1a7-4026-ab14-c8b9a3baa6e3",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 40.32,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "5653d2f5-883a-4ba8-afe8-3ff94dc7078f",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 44.8,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "a142b175-90e6-4fa4-849d-44729b6e00b2",
          shortLabel: {
            fr: "",
            en: "EQ42245E - gloves, OPEX, vinyl, XL, 100/BOX",
          },
          label: {
            fr: "",
            en: "EQ42245E - gloves, OPEX, vinyl, XL, 100/BOX",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 4,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "9e7df3d3-709b-4205-8ed1-3334edde203d",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 196,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "780c88c2-a823-406a-a604-49be6b2a1e40",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 252,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "1603a34a-35ae-4326-b802-df940125f3d4",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 224,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "d93734b0-66d5-439a-93ab-4ac1b57fc43f",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 168,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "1ccddc92-729f-471b-bc70-6b2eac54feb4",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 140,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "01edb613-b36e-4042-9b1c-b78e551bb2a8",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 112,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "42b07747-1b66-4290-a733-c17d156fab2b",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "d7e9cefe-7f2f-4757-bb8f-e222afa53386",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "930bef07-afb7-4d81-8426-c6235aecbed5",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "fdf38e9a-cd5b-4cea-b818-1a69e911ba37",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 280,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "3d7613c2-c9e2-4bf7-a4a1-3ff464f4ebd1",
          shortLabel: {
            fr: "",
            en: "EQ500461 - lab-coat, XL, 100% white cotton ",
          },
          label: {
            fr: "",
            en: "EQ500461 - lab-coat, XL, 100% white cotton ",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 10,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "d3bbe61d-d1ec-4001-8989-38e7877f7414",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 252,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "0a16895f-bd79-4414-b47c-e0334c01cf2f",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 280,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "4bda6880-fb3f-44bf-b9a3-d16b45f1d9c3",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 224,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "7d85224b-c740-4743-b4d9-8a9bb695cb3f",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 196,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "c7e7ef3e-385d-46a5-973a-7099b77c6386",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 168,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "1ffb899b-de63-464f-84ad-328470dca8ee",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 140,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "73a8eb86-fb65-48f8-b8fd-a8905ee211ee",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 112,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "83fb33f5-0952-4687-9742-ae9d603ce528",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "bb8dffd4-232f-441f-873a-bf4215b607ae",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "2ca429c0-b33b-4482-bf9e-2651bc52ddd8",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "48633f10-d411-4ce3-b004-d110ba20be6c",
          shortLabel: {
            fr: "",
            en: "EQ018101 - goggles, vented, clear lens, classic style",
          },
          label: {
            fr: "",
            en: "EQ018101 - goggles, vented, clear lens, classic style",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 4,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "5c78d314-84ac-4729-bf79-ec2ecb68bd25",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 12.32,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "39711f2d-ee72-4960-bc30-1452f4c5ec1c",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 123.2,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "78362d4f-27aa-4f1f-a59f-648c63e33adb",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 110.88,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "d086e614-f65c-4b70-8c53-eded436960b9",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 98.56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "162b3c46-9b04-40c9-8c56-9cad970bfbe4",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 86.24,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "fb37955c-4abf-4ab1-a898-3cb04aba653a",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 73.92,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "b9a156ea-8629-4095-b2a9-cb9b76e5d88b",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 61.6,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "65d266cb-8bdf-43a4-82e9-deb029ac793a",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 49.28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "35b4b812-1497-45b6-9b8b-63268df68f42",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 36.96,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "af86de25-453e-4ca4-b108-1d8da32e0289",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 24.64,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "599b7f1c-e120-4b26-91da-c20fc3756260",
          shortLabel: {
            fr: "",
            en: "EQ500321 - lab-coat, XS, 100% white cotton",
          },
          label: {
            fr: "",
            en: "EQ500321 - lab-coat, XS, 100% white cotton",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 6,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "04c645f3-bbfe-4443-9880-1e043bcc7cc7",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "369cb7de-926e-485f-958f-3e8b23beb136",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 280,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "4a3356a5-a86e-4ef5-b40d-ca631333d49d",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 252,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "9f8300fd-25b0-43b2-80ff-c1a3bc562f27",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 224,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "43258153-08f4-4d5f-93b7-64f39f5a896d",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 196,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "6819da90-4291-4cc7-be0d-24f4585d8b3c",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 168,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "1d221e09-3bea-4dee-9d4d-bae79512ad57",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 140,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "e5cfb666-1074-4d1a-8ec0-53900bee3675",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 112,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "096b07b0-ce49-45d0-9336-d70110af6e41",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "c0e8aa79-b54e-450b-8072-e8650ee1fbb4",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "8bb63068-1254-4d74-bce3-1a6ecb47be98",
          shortLabel: {
            fr: "",
            en: "EQ500421 - lab-coat, LARGE, 100% white cotton ",
          },
          label: {
            fr: "",
            en: "EQ500421 - lab-coat, LARGE, 100% white cotton ",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 9,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "5789bc64-7133-4741-bfa3-c58c454d1510",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 168,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "5c2cb05b-d086-4459-a123-4a354c568794",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "7f7877e9-f0fe-49ba-9ac6-038efc7cf89d",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "22f93479-07b0-46bc-9676-6cecce8c7e69",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 112,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "674893ce-883a-4a34-9b14-4e954c9de45b",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 140,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "1d8c3e49-f058-4db6-b9b0-c406fdcf0d13",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "922b9f54-ebe6-4b29-96c0-a1decdb52a5e",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 196,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "39fd72fa-22f4-4bf5-ad96-3da43f9cdc74",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 224,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "5745bcb5-d1ee-4dc4-b4c1-adc87b4e75af",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 252,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "75a4c50e-452b-4626-b032-d4fef74fae27",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 280,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "96499847-4423-46f0-a5a7-59f835b2ccdd",
          shortLabel: {
            fr: "",
            en: "EQ500301 - lab-coat, XXS, 100% white cotton",
          },
          label: {
            fr: "",
            en: "EQ500301 - lab-coat, XXS, 100% white cotton",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 5,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "fc0ae928-8c29-4865-9992-e0effd5ed779",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "a31e6c62-b09e-4ba3-b089-0cbad5538320",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 280,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "36aa7179-3321-4ee8-aaba-7eb1c39fa237",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 252,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "dc2c2f4a-5964-4ef7-a03c-1c4b0f566fd9",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 224,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "9016dc70-0c5c-4241-b336-987868b81cf8",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 196,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "ab52a456-db06-4a04-bce1-b74c80720b02",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 168,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "0f007ba2-e325-4ad9-9429-fabe62fb6a9b",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 140,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "38498758-26bb-4b02-9e77-cc7c97c3483a",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 112,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "f6e36bba-c709-474a-8f11-d27450e1e900",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "f074ba9c-b45b-4932-88b2-44ea0d5e3b34",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "aa606dd1-e982-455e-a409-8a8b43ddc346",
          shortLabel: {
            fr: "",
            en: "EQ71988U - glasses, safety, -GENESIS-, blue",
          },
          label: {
            fr: "",
            en: "EQ71988U - glasses, safety, -GENESIS-, blue",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 3,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "51cb9f2c-4f77-42bb-8361-3da30804a05e",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 35.84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "d1625f6a-c3d2-47c1-9d7e-711c255854ed",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 53.76,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "a59fa317-1100-4d78-856f-015ce0cdcd9a",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 71.68,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "369245f0-9c79-43d6-8ce5-83f481ead249",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 17.92,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "7cbbd3f0-ed74-4807-8e79-7aa6de65ec65",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 89.6,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "96d55e06-d84c-44b5-b07e-352d2d17c449",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 107.52,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "087a1caf-3392-499c-9af6-cfa63da99eab",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 125.44,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "3d2b3950-6424-43ec-b9d0-7cbf0e73b3c7",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 143.36,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "7a4c54c8-549a-40ba-a708-b0561bf814e6",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 161.28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "99028a83-e85a-461b-8908-bbeb34164256",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 179.2,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
        {
          id: "b9b00f58-7ca1-4b3b-8be1-b8f251e4dd82",
          shortLabel: {
            fr: "",
            en: "EQ500381 - lab-coat, MEDIUM, 100% white cotton",
          },
          label: {
            fr: "",
            en: "EQ500381 - lab-coat, MEDIUM, 100% white cotton",
          },
          description: {
            fr: "",
            en: "",
          },
          order: 8,
          fieldType: "dropdown",
          allowedFileTypes: "",
          isRequired: false,
          isOrganizersOnly: false,
          isVisibleToReviewers: false,
          isDeletable: true,
          maxWords: 0,
          maxReviewScore: 5,
          isVisibleToSubmitters: false,
          isBasicStylesAllowed: false,
          formFieldCondition: null,
          formFieldChoices: [
            {
              id: "3e05ed38-8b8b-47bb-8ef6-54d5e0bef141",
              shortLabel: {
                fr: "",
                en: "1",
              },
              order: 1,
              label: {
                fr: "",
                en: "1",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 28,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "d0cb180d-962b-4ffc-966f-d7d8b794c943",
              shortLabel: {
                fr: "",
                en: "6",
              },
              order: 6,
              label: {
                fr: "",
                en: "6",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 168,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "8236f145-c295-4ad3-98cd-2000f88ea3dd",
              shortLabel: {
                fr: "",
                en: "7",
              },
              order: 7,
              label: {
                fr: "",
                en: "7",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 196,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "46c54557-caf5-44c9-bd48-b643bff1cf75",
              shortLabel: {
                fr: "",
                en: "8",
              },
              order: 8,
              label: {
                fr: "",
                en: "8",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 224,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "8cecccc9-b917-4b32-b00f-bf94527004ed",
              shortLabel: {
                fr: "",
                en: "2",
              },
              order: 2,
              label: {
                fr: "",
                en: "2",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 56,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "88aa2ef9-9e3e-4edd-849f-7a7b017e88f1",
              shortLabel: {
                fr: "",
                en: "3",
              },
              order: 3,
              label: {
                fr: "",
                en: "3",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 84,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "025bfab0-5826-4703-ac4d-ac82a7f59edf",
              shortLabel: {
                fr: "",
                en: "4",
              },
              order: 4,
              label: {
                fr: "",
                en: "4",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 112,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "78958cbf-042c-451b-8f63-01c854000de5",
              shortLabel: {
                fr: "",
                en: "5",
              },
              order: 5,
              label: {
                fr: "",
                en: "5",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 140,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "5b5e5835-659f-4538-b5ab-9e5a4166a4e0",
              shortLabel: {
                fr: "",
                en: "9",
              },
              order: 9,
              label: {
                fr: "",
                en: "9",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 252,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
            {
              id: "3480bfbe-6fcd-4ca1-b916-5b36a4f8d58d",
              shortLabel: {
                fr: "",
                en: "10",
              },
              order: 10,
              label: {
                fr: "",
                en: "10",
              },
              hasQuantity: false,
              maxQuantity: 0,
              remainingQuantity: 0,
              cost: 280,
              lateCost: null,
              lateCostDate: null,
              startDate: null,
              endDate: null,
              taxRules: "none",
              areTaxRulesAddedToCost: true,
            },
          ],
        },
      ],
      order: 6,
    },
  ],
  lastProcessUpdateDate: null,
  lastProcessUpdateUser: null,
  confirmationEmailSubject: {
    fr: "Confirmation d’inscription",
    en: "RE: UBC Chemistry Stores Purchases",
  },
  confirmationEmailBody: {
    fr: "<p>Bonjour %1c1687fe-4806-40c4-9ed0-3f664407326d%,</p><p>Merci pour votre inscription à l’événement %EVENT_NAME%.</p><p>À bientôt,</p><p>Le comité organisateur</p>",
    en: '<p>Hello %1c1687fe-4806-40c4-9ed0-3f664407326d%,</p><p>Thank you for purchasing supplies from the UBC Chemistry stores. &nbsp;Please email Monica Villanueva at the <a href="mailto:storz@chem.ubc.ca">storz@chem.ubc.ca</a> so she can prepare your items for pick up.</p><p>%fafa9f69-9e52-4a40-8264-36154a471051% - EQ039706_-_MORTAR,_PORCELAIN,_130X80MM</p><p>%a0b81af7-1868-471a-82e1-f04676e8660b% - EQ039653_-_PESTLE,PORCELAIN,FOR_USE_WITH_130MM_MORTAR</p><p>%89c91a1c-9739-407d-bded-bc6110449121% - GL005403_-_BEAKERS,_GRADUATED,_30ML</p><p>%356e37f4-e3dd-4581-9819-618087494da7% - GL005404_-_BEAKERS,_GRADUATED,_50ML</p><p>%dfec135c-1eae-4b60-9384-371014732eea% - GL005405_-_BEAKERS,_GRADUATED,_100ML</p><p>%63454259-179e-42a2-85fe-d0ce6ecc8ba2% - GL005406_-_BEAKERS,_GRADUATED,_150ML</p><p>%bc492849-9c33-4679-9065-9852d996c7a0% - GL005407_-_BEAKERS,_GRADUATED,_250ML</p><p>%5cfd7b69-7b64-4cee-8a37-16d1bcfb4973% - GL005408_-_BEAKERS,_GRADUATED,_400ML</p><p>%e03462ae-4074-4566-9297-481a734e7623% - GL005409_-_BEAKERS,_GRADUATED,_600ML</p><p>%e60311eb-89de-489b-a3bc-57dd5082f550% - GL00540A_-_BEAKERS,_GRADUATED,_1000ML</p><p>%1ac3903d-7d92-4745-a813-7bf953d0142f% - GL00540E_-_BEAKERS,_GRADUATED,_2000ML</p><p>%44b3b73f-4154-450f-9a36-6361bfa5620c% - GL00540C_-_BEAKERS,_GRADUATED,_3000ML</p><p>%5f3ec9b7-9136-407d-9d9b-0bbbfbea507e% - GL00540D_-_BEAKERS,_GRADUATED,_4000ML</p><p>%cbd7e0d0-3716-4ba1-845a-a067df9a85ef% - GL106525_-_BOTTLE,_MEDIA,_WIDE_MOUTH,_250ML</p><p>%87bfc622-d770-4b10-be41-0c6cb7575ed6% - GL106550_-_BOTTLE,_MEDIA,_WIDE_MOUTH,_500ML</p><p>%009db0f1-b0c6-4986-9628-9c3ccbe0adbc% - GL106590_-_BOTTLE,_MEDIA,_WIDE_MOUTH,_1000ML</p><p>%1854fa26-03c0-4e58-b065-78ba39b6733c% - GL046204_-_BOTTLE,_W/DROPPER,_CLEAR,_ROUND,_30ML</p><p>%6175b9b4-ddc6-453f-99de-1c0a4fc9b3a3% - GL10809C_-_BOTTLE,_NARROW_MOUTH,_CLEAR,_ROUND,_118ML</p><p>%b59e6110-b2bc-4ed8-923e-ac3174559638% - GL11608A_-_BOTTLE_NARROW_MOUTH,_AMBER,_ROUND,_240ML</p><p>%f84e9b56-0965-4fb2-8eca-b628e14fd904% - GL044701_-_BOTTLE,_NARROW_MOUTH,_AMBER,_ROUND,_1000ML</p><p>%d5ed68c8-0b83-4bc8-8a41-c4e8c6ee8272%- &nbsp;GL070231_-_COVERGLASSES,_MICROSCOPE,_18MM,_SQUARE</p><p>%4d2ccf2c-0128-431c-aca8-2a4622a47bce% - GL010101_-_CYLINDERS,_GRADUATED,_CLASS_B,_10ML</p><p>%5b94e992-3310-4724-b8bd-32fb762b51a6% - GL010102_-_CYLINDERS,_GRADUATED,_CLASS_B,_25ML</p><p>%579e6e15-355d-4f3b-a07b-917961b4b78b% - GL010103_-_CYLINDERS,_GRADUATED,_CLASS_B,_50ML</p><p>%318ddc2a-4dc0-4c3e-bdde-96478858fbc2% - GL010104_-_CYLINDERS,_GRADUATED,_CLASS_B,_100ML</p><p>%84edabe1-43a4-459a-8586-02bdc4950783% - GL010105_-_CYLINDERS,_GRADUATED,_CLASS_B,_250ML</p><p>%035ef37b-32bc-4c64-a511-c2457367bf2e% - GL010106_-_CYLINDERS,_GRADUATED,_CLASS_B,_500ML</p><p>%daf75b1a-dcf6-4aaf-b918-4254e55e56b0% - GL010107_-_CYLINDERS,_GRADUATED,_CLASS_B,_1000ML</p><p>%4fc7155c-05c0-4aff-858f-4b20133f7186% - GL01011P_-_CYLINDERS,_GRADUATED,_PLASTIC_BASE,_10ML</p><p>%8777b252-8d28-4fef-8af3-2b6bc00a2aa1% - GL010112_-_CYLINDERS,_GRADUATED,_PLASTIC_BASE,_25ML</p><p>%143cf8bb-e211-4d93-b0eb-9a4f85dc16ff% - GL007701_-_DISHES,_CRYSTALLIZING,_70X50MM</p><p>%808d69ec-1e7a-48b0-8c72-ba7a7dba22f6% - GL007702_-_DISHES,_CRYSTALLIZING,_80X40MM</p><p>%0b024709-7c87-47a0-a4e3-f2b8856908ae% - GL007703_-_DISHES,_CRYSTALLIZING,_90X50MM</p><p>%0d249d33-409b-4f44-acb2-771eaf6b4eb3% - GL007704_-_DISHES,_CRYSTALLIZING,_100X50MM</p><p>%e0615c0f-30fd-47fa-948b-def885c48e80% - GL007705_-_DISHES,_CRYSTALLIZING,_150X75MM</p><p>%a82ad24a-2398-4cca-932d-1716fe2650db% - GL007706_-_DISHES,_CRYSTALLIZING,_170X90MM</p><p>%83554e83-e073-4957-80e5-ab9bfeaf33b6% - GL009331_-_DISHES,_PETRI,_W/COVER,_60X15MM</p><p>%aee544a7-e156-405e-a165-1949d2c476e2% - &nbsp;GL009332_-_DISHES,_PETRI,_W/COVER,_100X15MM</p><p>%325e4233-30e6-4c88-ae80-a63d5a96e8cb% - GL009334_-_DISHES,_PETRI,_W/COVER,_150X15MM</p><p>%592f8e4d-1523-4f34-90e5-127aa15fb8bd% - GL009333_-_DISHES,_PETRI,_W/COVER,_150X20MM</p><p>%dc040f61-1a36-4932-947e-11ba5b162a0d% - GL005001_-_FLASKS,_ERLENMEYER,_25ML</p><p>%73c9fd46-c333-4a7f-bc96-29d8c2c01882% - GL005002_-_FLASKS,_ERLENMEYER,_50ML</p><p>%e5c42da4-5d92-4ebc-98e6-e52d5eda4c13% - GL005003_-_FLASKS,_ERLENMEYER,_125ML</p><p>%e5c42da4-5d92-4ebc-98e6-e52d5eda4c13% - GL005003_-_FLASKS,_ERLENMEYER,_125ML</p><p>%597bf8b7-01bc-483f-b312-a74a08546df9% - GL005004_-_FLASKS,_ERLENMEYER,_250ML</p><p>%6d02cf6f-b073-4f83-ad9a-8596745578f2% - _EQ421228_-_GLOVES,MEDIUM,NITRILE,SINGLE_USE,100/BOX_</p><p>&nbsp;</p><p>&nbsp;</p><p>Sincerely,</p><p>UBC Chemistry Stores</p>',
  },
  areResultsSharedToSubmitters: false,
  areReviewerNamesHidden: false,
};

Test runner

Ready to run.

Testing in
TestOps/sec
Existing
 const selectedPaidChoices = [];
  if (form && form.formSections) {
    const allChoices = form.formSections
      .flatMap(section => section.formFields)
      .flatMap(field => field.formFieldChoices);

    for (const value of Object.values(formData)) {
      const choices = allChoices.filter(choice => choice.id === value || value.includes(choice.id));
      for (const choice of choices) {
        if (choice.cost && choice.cost > 0) {
          selectedPaidChoices.push(choice);
        } else if (choice.lateCost && choice.lateCost > 0) {
          selectedPaidChoices.push(choice);
        }
      }
    }
  }
  return selectedPaidChoices;
ready
New (2 loops)
 const selectedPaidChoices = [];
  if (form && form.formSections) {
    const allChoices = [];
    for (const section of form.formSections) {
      for(const field of section.formFields) {
if (field.formFieldChoices && formData[field.id]) {
          for (const choice of field.formFieldChoices) {
            allChoices.push(choice);
          }
        }
      }
    }

    for (const value of Object.values(formData)) {
      const choices = allChoices.filter(choice => choice.id === value || value.includes(choice.id));
      for (const choice of choices) {
        if (choice.cost && choice.cost > 0) {
          selectedPaidChoices.push(choice);
        } else if (choice.lateCost && choice.lateCost > 0) {
          selectedPaidChoices.push(choice);
        }
      }
    }
  }
  return selectedPaidChoices;
ready
New (1 loop)
const selectedPaidChoices = [];
  if (form && form.formSections) {
    for (const section of form.formSections) {
      for(const field of section.formFields) {
        if (field.formFieldChoices && formData[field.id]) {
          const value = formData[field.id];
          for (const choice of field.formFieldChoices) {
            if (choice.id === value || value.includes(choice.id)) {
              if (choice.cost && choice.cost > 0) {
                selectedPaidChoices.push(choice);
              } else if (choice.lateCost && choice.lateCost > 0) {
                selectedPaidChoices.push(choice);
              }
            }
          }
        }
      }
    }
  }
  return selectedPaidChoices;
ready
New (1 loop minus one if)
  const selectedPaidChoices = [];
  if (form && form.formSections) {
    for (const section of form.formSections) {
      for(const field of section.formFields) {
        if (field.formFieldChoices && formData[field.id]) {
          const value = formData[field.id];
          for (const choice of field.formFieldChoices) {
            if (choice.id === value || value.includes(choice.id)) {
              if ((choice.cost && choice?.cost > 0) || (choice.lateCost && choice.lateCost > 0)) {
                selectedPaidChoices.push(choice);
              } 
            }
          }
        }
      }
    }
  }
  return selectedPaidChoices;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.