Commit 9add3ce4 authored by Jean-Paul Smets's avatar Jean-Paul Smets

improved


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@297 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ac5ed2ff
......@@ -49,7 +49,7 @@ for colis_nb in range(quantity) :
container.flushActivity(invoke=1)
# print container label
container.Container_printMetoLabel()
container.Container_printLabel()
# now build container_lines
for key in desired_lines.keys() :
......
......@@ -145,7 +145,7 @@
<hidden type="int">0</hidden>
<lines type="int">100</lines>
<list_action>folder_contents</list_action>
<list_method type="method">Delivery_zGetCellList</list_method>
<list_method type="method">Delivery_zGetNeededCellList</list_method>
<meta_types type="list">[]</meta_types>
<portal_types type="list">[]</portal_types>
<report_root_list type="list">[]</report_root_list>
......
......@@ -17,6 +17,13 @@ movement_list = []
# first make light control
error_message = order.Order_lightControl()
# Check each movement
for m in context.getMovementList():
if m.getPrice() in (None, '') :
error_message += 'Prix manquant: produit %s ou variante %s' % (m.getResource(), m.getVariationText())
if m.getQuantity() in (None, '') :
error_message += 'Quantit manquante: produit %s ou variante %s' % (m.getResource(), m.getVariationText())
# then check every simulation_movement in relation with the order :
if order.getPortalType() == 'Purchase Order' :
filter_dict = {'portal_type': 'Purchase Order Line'}
......
......@@ -25,6 +25,11 @@ FROM catalog AS condition
<dtml-if expr="group_uid<>''">
, category as cat4
</dtml-if>
<dtml-if expr="destination_uid==''">
LEFT JOIN category as cat2
ON (cat2.uid=condition.uid
AND cat2.base_category_uid = <dtml-var "portal_categories.destination.uid">)
</dtml-if>
WHERE condition.portal_type="Condition Vente"
<dtml-if expr="source_section_uid<>''">
......@@ -38,6 +43,9 @@ AND condition.uid = cat2.uid
AND cat2.category_uid = "<dtml-var destination_uid>"
AND cat2.base_category_uid = <dtml-var "portal_categories.destination.uid">
</dtml-if>
<dtml-if expr="destination_uid==''">
AND cat2.uid IS NULL
</dtml-if>
<dtml-if expr="group_uid<>''">
AND condition.uid = cat4.uid
......
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