Commit 841bdb2a authored by Łukasz Nowak's avatar Łukasz Nowak

Disable balance based check.

Users has no possibility to pay for now.
parent e9008b25
......@@ -52,15 +52,18 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
section_uid = context.getSourceSectionUid()\n
customer_uid = context.getDestinationSectionUid()\n
simulation_state = context.getPortalCurrentInventoryStateList() + context.getPortalTransitInventoryStateList()\n
balance = context.portal_simulation.getInventoryAssetPrice(\n
node_category_strict_membership=\'account_type/asset/receivable\',\n
simulation_state=simulation_state,\n
section_uid=section_uid,\n
mirror_section_uid=customer_uid)\n
return balance <= 0.\n
return True\n
\n
# Disabled functionality\n
#section_uid = context.getSourceSectionUid()\n
#customer_uid = context.getDestinationSectionUid()\n
#simulation_state = context.getPortalCurrentInventoryStateList() + context.getPortalTransitInventoryStateList()\n
#balance = context.portal_simulation.getInventoryAssetPrice(\n
# node_category_strict_membership=\'account_type/asset/receivable\',\n
# simulation_state=simulation_state,\n
# section_uid=section_uid,\n
# mirror_section_uid=customer_uid)\n
#return balance <= 0.\n
]]></string> </value>
......
165
\ No newline at end of file
166
\ 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