"Posting No." is set when posting fail

JedrzejT
JedrzejT Member Posts: 267
Hello

I try to post invoice. Sometimes..something goes wrong. For exemple. "vendor invoice no." , "Customer Posting Group" or "payment method" is empty. Posing return error. When i correct data and try to posting again system give error somting like this "you must not specify posting no in...."
Why "Posting no." is set when posting fails?
No series table is modify and i lost one number. I know i can delete document and system create blank whith description "deleted document", but i really don't do that. Can i correct this without change post codeunit?

Thanks
Regards

Comments

  • JedrzejT
    JedrzejT Member Posts: 267
    Sorry...my fault. Someone from the project change table. I correct this. Everything's all right
  • Savatage
    Savatage Member Posts: 7,142
    edited 2005-12-12
    sorry posted 2x :oops:
  • Savatage
    Savatage Member Posts: 7,142
    This has happend to us also.

    You can simply put the "Posting No" on the Order header so you can see it.

    If the posting Fails - it doesn't let you re-post without that erro somethimes.

    you can delete the number shown on the header card & it should post fine & the order will have the next #.

    Without having to delete the doc or redo anything.

    The same thing might go for the "Shipping No." too.
    _______

    Strangely enough this solutions solves the problem when posting PO's too.
  • Shenpen
    Shenpen Member Posts: 386
    Actually it is the question of local laws: if the tax bureau accepts to have a hole in the No. of posted invoices (so you cannot prove you did not delete an invoice), it's ok, but if they do not, then I think the only good solution is to disable invoicing from Sales Orders, only from separate invoices. That's what most people want to use anyway, as it prints Shipment No. on invoice.

    Do It Yourself is they key. Standard code might work - your code surely works.
  • Marije_Brummel
    Marije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Yes, just be carefull with putting the posting no on the form, cause when a user forgets to correct the no.series you will have a hole in your invoices.

    Maybe you can make a small function for this in a seperate codeunit.
  • Savatage
    Savatage Member Posts: 7,142
    note: In our case you only see this posting no on the form IF the post fails.

    this is such a rare occurance but sometimes when you fix the problem that caused the fail and try to re-post it gives you that message. so we have to "clear-out" the posting no field else it just won't post.

    ..Those are some strick local laws..I guess it's more important in a public company than private.

    for us as long as all the accounting numbers match up - everyone's happy.
    once in a while a check no might be skipped (anyone ever heard of a printer eating a check, too low on toner, put in upside down, paper jam, etc,etc O:) )

    there are plenty of legit reasons for gaps :wink: