Commit 72f5e18e authored by Łukasz Nowak's avatar Łukasz Nowak

Pick up also all confirmed invoices.

They are shortly in confirmed state, and in this case expand is required even
if state of invoice line matches catalogged state of simulation movement.
parent 250284b1
...@@ -72,6 +72,12 @@ for q in portal.Base_getNotCategoryRelatedList(**kw):\n ...@@ -72,6 +72,12 @@ for q in portal.Base_getNotCategoryRelatedList(**kw):\n
for q in portal.Base_getNotSynchronisedSimulationStateCategoryRelatedList(**kw):\n for q in portal.Base_getNotSynchronisedSimulationStateCategoryRelatedList(**kw):\n
uid_list.add(q.UID)\n uid_list.add(q.UID)\n
\n \n
# and all invoice lines and and transcation lines in confirmed state\n
# XXX: We do simple version, and in Vifib confirmed ones can be often expanded, as it is short living state\n
\n
for q in portal.portal_catalog(portal_type=\'Invoice Line\', simulation_state=\'confirmed\'):\n
if q.getSimulationState() == \'confirmed\':\n
uid_list.add(q.UID)\n
uid_list = list(uid_list)\n uid_list = list(uid_list)\n
\n \n
if len(uid_list) > 0:\n if len(uid_list) > 0:\n
......
423 424
\ No newline at end of file \ No newline at end of file
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