Invoice line can be deferred only once. You cannot close period "%(period)s" because some invoices deferred "%(deferrals)s" do not have yet move for the period. You cannot delete invoice deferred "%(deferral)s" because it is not in "draft" state. To create moves for invoice deferred "%(deferral)s" you must configure a replacement account for "%(account)s". There is no deferred account revenue configured. There is no deferred account expense configured.