Hole in posted invoice numeration

Gon_M.
Gon_M. Member Posts: 34
Hi Experts:

I create a new purchase invoice, then I try to post that, but obtain an error because I forget to fill some field. Later, I delete this invoice without post it. but seems to be that I lost one posted invoice number. so, when I post a new invoice, result a hole in the posted invoice numeration.

some suggestion to avoid this? because the numerations of invoices have to be consecutive.

thanks in advance.

Comments

  • andrejsm
    andrejsm Member Posts: 122
    It sounds like You are using the same nuber serrie for "Invoice Nos" and "Posted Invoice Nos".
    You should use different Numbering serries for "Inoice Nos" and "Posted Inoice Nos" to prevent holes in posted invoices numeration.
    Andrejs Muraskins
  • Gon_M.
    Gon_M. Member Posts: 34
    Hi Andrejs:

    thanks you for reply.

    No, I don't use the same number series for unposted and posted invoices.

    the problem is that the post process uses the next posted invoice number with the actual document, and when it fails, does not recovery this value.

    Field "Last No. Used" is increased, but is not put in the original value after post process fails.

    Regards.
  • Alex_Chow
    Alex_Chow Member Posts: 5,063
    If you delete the sales order or post that sales order, it'll fill in the missing invoice number you're looking for.

    Navision "reserves" a posted invoice number from time to time.
  • Gon_M.
    Gon_M. Member Posts: 34
    Hi Alex:

    I'm sorry, but I don't get to understand what you are saying. Can you explain me? please.

    Thanks in advance.
  • Alex_Chow
    Alex_Chow Member Posts: 5,063
    Sorry, should've read your post more carefully.

    Usually, when a posting process does not go through, the document reserves the posted invoice number. If you delete that document or post that document, it'll use the particular posted invoice number.

    If you delete the document, it'll prompt you a message saying that an empty document will be created to fill in the gap. If it doesn't someone must've went into the table and removed the field that stores the posted numbers.
  • Gon_M.
    Gon_M. Member Posts: 34
    Hi Alex:

    This was just what I was thinking , but I don't knew if this behaviour is normal in Navision or it must to a bad Navision setup.

    Thanks for your reply.
  • muksha
    muksha Member Posts: 274
    Hi All,
    Navision only stores the posting no. series not the posting no. in case of purchase invoice. Please check if you have marked the date order yes in the posting no. series of invoice.
    Mukesh Sharma
  • Gon_M.
    Gon_M. Member Posts: 34
    Hi muksha:

    There is a field in "Purchase header" table ("Posting No.") that maintains the next number of the posted number series when posted process fails. So, I think that Navision stores the posting number, not only the posting no. serie.

    Date order is set to yes in the series that serve like posted number for posted purchase invoice.

    Thanks for your reply.
  • muksha
    muksha Member Posts: 274
    Yes I agree with you regarding the field. But this field is used to fill the no. manually. This will not store the no. from posting no. series. This is usefull to fillup the gap created by such incidents by filling up manually.
    Mukesh Sharma
  • lubost
    lubost Member Posts: 633
    so, it's why system assigned Posting No.. Unmark this feature and system will not assign next no.
  • Gon_M.
    Gon_M. Member Posts: 34
    Hi muksha:

    I did make this test:

    I created a new purchase invoice from form "Purchase Invoice", then I tried to post this, but I make sure that I can't post it (missing some field). Then I checked for "Posting no." in Purchase Header table, and this field was automatically filled.

    Regards.
  • muksha
    muksha Member Posts: 274
    After making receipt or even partial invoicing, did anyone saw the posting no. in header properties. To be very frank I have never seen. At the time of invoicing system check this field for data if available then took that and if not available then chak the posting no. series and take the last no. used in posting no. series and increament it and post it after assigning the no. to posted invoice.
    Mukesh Sharma
  • muksha
    muksha Member Posts: 274
    I created a new purchase invoice from form "Purchase Invoice", then I tried to post this, but I make sure that I can't post it (missing some field). Then I checked for "Posting no." in Purchase Header table, and this field was automatically filled.

    Dear Gon M.,
    Now the scenerio is different. In this case, we are going via invoicing (By copy document or may be by get receipt lines). In this case to avoide duplicacy and for tracking that posting no. will be filled up automatically. This is necessary for tracking. Previously we were considering from PO only.
    Mukesh Sharma
  • lakshmivalluru
    lakshmivalluru Member Posts: 168
    firstly,

    Posting No will not be filled in. if it is then it must have been a customization issue. secondly, if you want to stop the system so that it will not loss the number from posting no. series then it is not possible.

    Look at this example: if i have got 10 invoices created. and i descide to delete 3rd invoice. if the posting no is being inserted at the time of creation of invoice , then every invoice will have a number. And if u delete 3rd invoice, you have to renumber the next 7 invoice's Posting No. and update invoice no series, which is not a good way of doing it.
    LR
  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,629
    OK, so I think the basic problem is that if you invoice something from an order, get an error message and then invoice it separately by and invoice and get receipt/shipment lines you will have this problem, because the number is reserved in the order. And if an order has been received/shipped you cannot delete it.

    If it's a big issue then customize the system so that invoicing from an order is not possible. Only invoicing from separate invoices and deleting the ones you cannot or don't want to post ensures consistency.
  • Alex_Chow
    Alex_Chow Member Posts: 5,063
    The Posting No. is filled in if it's a partial shipment or if there's an error during posting.

    There's a commit somewhere in the number series that's causing this.
  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,629
    Actually the shipment should only fill the Shipping No.

    The COMMIT is completely reasonable - it has to grab a document no. for the posted invoice because all entries have to bear this document no. But if it isn't committed then another user posting another invoice could get the same number... so it has to be.

    But it shouldn't be a problem if a company is invoicing only from orders or only from invoices. In this case everything will be posted - or deleted - so the holes will be filled - sooner or later... so if this is an issue, use only one way of invoicing - preferably from invoices.