Commit 8c45bf7b authored by Mame Coumba Sall's avatar Mame Coumba Sall

Modify zsql method so that all mvts are selected in stock table even if they...

Modify zsql method so that all mvts are selected in stock table even if they don't have source_section or destination_section
parent 60f94952
...@@ -95,7 +95,6 @@ WHERE\n ...@@ -95,7 +95,6 @@ WHERE\n
<dtml-let row_list="[]" uid_dict="{}">\n <dtml-let row_list="[]" uid_dict="{}">\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
<dtml-if "not(isInventoryMovement[loop_item]) and isMovement[loop_item] and getResourceUid[loop_item]">\n <dtml-if "not(isInventoryMovement[loop_item]) and isMovement[loop_item] and getResourceUid[loop_item]">\n
<dtml-if "getDestinationUid[loop_item]">\n
<dtml-call expr="uid_dict.update({uid[loop_item]: uid_dict.get(uid[loop_item], -1) + 1})">\n <dtml-call expr="uid_dict.update({uid[loop_item]: uid_dict.get(uid[loop_item], -1) + 1})">\n
<dtml-call expr="row_list.append([\n <dtml-call expr="row_list.append([\n
uid[loop_item], \n uid[loop_item], \n
...@@ -121,8 +120,7 @@ WHERE\n ...@@ -121,8 +120,7 @@ WHERE\n
getSimulationState[loop_item], \n getSimulationState[loop_item], \n
getVariationText[loop_item],\n getVariationText[loop_item],\n
getSubVariationText[loop_item]])">\n getSubVariationText[loop_item]])">\n
</dtml-if>\n \n
<dtml-if "getSourceUid[loop_item]">\n
<dtml-call expr="uid_dict.update({uid[loop_item]: uid_dict.get(uid[loop_item], -1) + 1})">\n <dtml-call expr="uid_dict.update({uid[loop_item]: uid_dict.get(uid[loop_item], -1) + 1})">\n
<dtml-call expr="row_list.append([\n <dtml-call expr="row_list.append([\n
uid[loop_item], \n uid[loop_item], \n
...@@ -149,7 +147,6 @@ WHERE\n ...@@ -149,7 +147,6 @@ WHERE\n
getVariationText[loop_item],\n getVariationText[loop_item],\n
getSubVariationText[loop_item]])">\n getSubVariationText[loop_item]])">\n
</dtml-if>\n </dtml-if>\n
</dtml-if>\n
</dtml-in> \n </dtml-in> \n
<dtml-if "row_list">\n <dtml-if "row_list">\n
REPLACE INTO\n REPLACE INTO\n
......
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