Uploaded image for project: 'Development'
  1. Development
  2. DEV-6992

Datetime overflow may occur when saving debtors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Passed Testing
    • Priority: Backlog
    • Resolution: Done
    • Affects Version/s: 07.02.00.00
    • Fix Version/s: 07.02.02.00
    • Component/s: Debtor Maintenance
    • Labels:
      None

      Description

      A SQL datetime overflow will occur when saving an existing debtor record if one of the following fields is null in table DB_Main:

      • LastPurchaseDate
      • LastPaymentDate
      • AllocLastSavedDateTime

      Whilst the debtor business logic does correctly initialise these values to not be null when a debtor is created, it is unable to cope when they are null (say from an old database upgrade or someone has updated the table directly).

      The debtor business logic should check if these dates are null (date.minvalue) on save and write away DBNull.Value instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                scottp@jiwa.com.au Scott Pearce
                Reporter:
                mikes@jiwa.com.au Mike Sheen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: