Commit 478102ae authored by Łukasz Nowak's avatar Łukasz Nowak

Confirm only invoices with content.

This follows alarm configuration, which just moves empty (stub) invoices for
next month.
parent 6137d4b3
...@@ -612,6 +612,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -612,6 +612,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
portal_type="Sale Invoice Transaction", portal_type="Sale Invoice Transaction",
simulation_state="planned"): simulation_state="planned"):
invoice = invoice.getObject() invoice = invoice.getObject()
if len(invoice.contentValues(portal_type='Invoice Line')) > 0:
invoice.confirm() invoice.confirm()
def stepCheckWaitingInvoice(self, sequence, **kw): def stepCheckWaitingInvoice(self, sequence, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment