Hi!

There's a simple command for this:

$ fred-admin --create_invoice_prefixes --for_current_year

It will create invoice prefixes for all zones following the default pattern PPYY00001.

See also https://fred.nic.cz/documentation/html/AdminManual/RegistryInitialization.html#invoice-numbering


Lena


On 12.1.2018 13:49, Dr P Nyirenda wrote:
I am finding in FRED that I have to issue new invoice prefixes now that the year has changed 
from 2017 to 2018.

If I do not do this then I get an error : 
"Missing invoice prefix" 
when I try to add credit to a registrar account using the 
#fred-admin --invoice_credit
command

I am having to do this for each zone which is painful because I have 10+ zones.
Is there a way to update this automatically when the year changes ?

Additionally, is there a way that I can run the
#fred-admin --invoice_credit 
command for a zone and land on the correct prefix every time ?

In many cases when I run the command 
#fred-admin --invoice_credit 
I get the error
DEATAIL: Key (prefix)=(interger) already exits
and I have to run the command a few more times before I land on an interger that the 
command accepts.

How can I get around this and land on the correct interger for the command without having to 
repeat it?

Regards,

Paulos
======================
Dr Paulos B Nyirenda
NIC.MW & .mw ccTLD
http://www.registrar.mw




---
This email has been checked for viruses by AVG.
http://www.avg.com



--
Lena

"Docs, or it didn't happen!"