Uploaded image for project: 'mod-invoice-storage'
  1. mod-invoice-storage
  2. MODINVOSTO-117

Make paymentMethods property in invoice.json JSON schema an enum (and in organization.json on the organizations module)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Template:
      Standard Bug Write-Up Format
    • Development Team:
      Thunderjet

      Description

       

      The Payment method field in the invoice editor is a drop down list that only contains certain values. Can you add an enum like the following to the property in the JSON schema to help document what the valid values are?

      "paymentMethod": {
       "description": "Inherited from vendor record",
       "type": "string",
       "enum": [
       "Cash",
       "Credit card",
       "EFT",
       "Deposit account",
       "Physical check",
       "Bank draft",
       "Internal transfer",
       "Other"
       ]
       },
      

      I'm assuming these values are hard coded? Or, are they stored in a table somewhere? There is a payment methods table in the fees/fines module, but, the values are slightly different.

      The same change needs to be made to organization.json in the organizations module.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                jemiller Jon Miller
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases