Misg. charge error on PO

When i try to input the misc. charge on PO have line invoiced, we have this error :

The misc. charge cannot be allocated because no lines match your selection criteria.