Results 1 to 3 of 3

Thread: Case Numbers

  1. #1
    cruspy is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Case Numbers

    I have edited a case number in the database to be 1200. I want the next number to be 1201. It's using the number, however the database is posting 1211 instead of 1201. Where is the "ticker" for the case number kept? Is it looking up the max case number? If so, why is it picking out a different number than what is present in the table?

    I must also add that when running a query: SELECT max(`case_number`) FROM `cases` , it returns the right number (1200).
    Last edited by cruspy; 2007-11-13 at 08:18 PM.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Case Numbers

    You should use the following syntax to set the internal counter:

    Code:
    ALTER TABLE cases AUTO_INCREMENT = nnn;
    nnn = the number you want to start at.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    cruspy is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    14

    Default Re: Case Numbers

    That would work... THANKS!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 15
    Last Post: 2010-04-01, 04:04 PM
  2. Case Numbers not incrementing
    By vidtechsteve in forum Help
    Replies: 2
    Last Post: 2007-04-10, 01:44 PM
  3. Case Numbers
    By SharkBait in forum Developer Help
    Replies: 1
    Last Post: 2007-03-30, 07:06 PM
  4. Replies: 0
    Last Post: 2006-03-20, 10:47 PM
  5. Missing Case Numbers In 3.5.0a
    By CyberFerret in forum Help
    Replies: 4
    Last Post: 2005-08-28, 01:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •