Commit 2cd31483 authored by Łukasz Nowak's avatar Łukasz Nowak

Use alarm code.

There is more work to do then confirming invoice.
parent 28ca2730
...@@ -612,8 +612,10 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -612,8 +612,10 @@ 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.SaleInvoiceTransaction_confirmPlanned(
invoice.confirm() # force invoice confirmation (or moving to next month)
this_month=invoice.getStartDate() + 1
)
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