problem during posting purchase invoice

dear all,

when I am posting purchase invoice, I am getting following error message

"You must specify receiving no. series in purchase header documet type=‘invoice’ no.=‘inv-01’ ;

where to specify receiving no. series ? i.e. in which setup and where ?

Purchase & Receivable Setup.

You may specify a Receiving no. Series so that when the invoice is posted a receiving document is created for the items and accounts invoiced. Inventory purchase entries will be created with that document number.

You may also instead untick the “Receipt on Invoice” flag, so that the receiving document will not be created and the Receiving no. Series will not be needed. Inventory purchase entries will be created with the invoice number.

I think you will also need to reload the invoice, because the receiving number series is written into the invoice header when it is loaded, and adding it into the parameters will not help in this instance, well I am pretty sure that is what happens with purchase orders!