Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1287

Prevent Pro Forma and Draft invoices from reusing numbers

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0-b1
    • Fix Version/s: Short Term
    • Component/s: None
    • Labels:
      None

      Description

      Pro forma and draft invoices are temporary invoices. Therefore the current scheme of calculating the next invoice number based on the invoice format can result in re-use of numbers no longer in use by those formats.

      This occurs because when a pro forma or draft invoice is converted to a regular invoice its id_format and id_value is modified to meet the invoice format configured in settings. When this happens to the highest id_value invoice of that particular type, this essentially reduces the current highest id_value for an invoice of that type.

      For example:

      Add Draft => DRAFT-

      {num} => DRAFT-1
      Add Draft => DRAFT-{num}

      => DRAFT-2
      Convert DRAFT-2 to invoice => INVOICE-

      {NUM}

      => INVOICE-1000
      Add Draft => DRAFT-

      {num}

      => DRAFT-2

        Issue Links

          Activity

          cody Cody Phillips (Inactive) created issue -
          cody Cody Phillips (Inactive) made changes -
          Field Original Value New Value
          Link This issue relates to CORE-497 [ CORE-497 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.3.0-b2 [ 10507 ]
          Fix Version/s 3.3.0-b1 [ 10100 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.3.0 [ 10508 ]
          Fix Version/s 3.3.0-b2 [ 10507 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.4.0 [ 10400 ]
          Fix Version/s 3.3.0 [ 10508 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.0 [ 10401 ]
          Fix Version/s 3.4.0-b1 [ 10400 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.0-b2 [ 10701 ]
          Fix Version/s 3.5.0-b1 [ 10401 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.0-b3 [ 10703 ]
          Fix Version/s 3.5.0-b2 [ 10701 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.0-b4 [ 10704 ]
          Fix Version/s 3.5.0-b3 [ 10703 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.0-b5 [ 10705 ]
          Fix Version/s 3.5.0-b4 [ 10704 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.0 [ 10702 ]
          Fix Version/s 3.5.0-b5 [ 10705 ]
          admin Paul Phillips made changes -
          Fix Version/s 3.5.1 [ 10706 ]
          Fix Version/s 3.5.0 [ 10702 ]
          tyson Tyson Phillips (Inactive) made changes -
          Fix Version/s 3.5.1 [ 10706 ]
          admin Paul Phillips made changes -
          Fix Version/s Short Term [ 10800 ]
          admin Paul Phillips made changes -
          Rank Ranked higher

            People

            • Assignee:
              cody Cody Phillips (Inactive)
              Reporter:
              cody Cody Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: