diff --git a/product/ERP5Catalog/sql/erp5_mysql/z_catalog_stock.zsql b/product/ERP5Catalog/sql/erp5_mysql/z_catalog_stock.zsql
index 9f802901cdc18fde618959cb13454eea3ee82dc9..c240e10c53256bba4476dd19642604e2fae68c9c 100755
--- a/product/ERP5Catalog/sql/erp5_mysql/z_catalog_stock.zsql
+++ b/product/ERP5Catalog/sql/erp5_mysql/z_catalog_stock.zsql
@@ -8,22 +8,57 @@ class_name:
 class_file:
 </dtml-comment>
 <params>uid
+getResourceUid
 getInventoriatedQuantity
 getSourceUid
 getDestinationUid
 getSourceSectionUid
 getDestinationSectionUid
-isMovement</params>
+isMovement
+getSourceTotalAssetPrice
+getDestinationTotalAssetPrice</params>
 <dtml-if isMovement>
-<dtml-if  getSourceUid>
+<dtml-if getResourceUid>
 <dtml-if getDestinationUid>
-INSERT INTO stock VALUES (<dtml-sqlvar uid type="int">,   <dtml-sqlvar getDestinationUid type="int">,  <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar getInventoriatedQuantity type="float"><dtml-else>NULL</dtml-if>), (<dtml-sqlvar uid type="int">, <dtml-sqlvar getSourceUid type="int">,  <dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>);
-<dtml-else>
-INSERT INTO stock VALUES  (<dtml-sqlvar uid type="int">, <dtml-if getSourceUid><dtml-sqlvar getSourceUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>);
+INSERT INTO
+  stock
+VALUES
+(
+  <dtml-sqlvar uid type="int">,
+  <dtml-sqlvar getDestinationUid type="int">,
+  <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
+  <dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>, 
+  <dtml-sqlvar getResourceUid type="int">,
+  <dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
+  <dtml-if getDestinationTotalAssetPrice><dtml-sqlvar getDestinationTotalAssetPrice type="float"><dtml-else>NULL</dtml-if>
+)
+<dtml-if getSourceUid>
+,
+(
+  <dtml-sqlvar uid type="int">,
+  <dtml-sqlvar getSourceUid type="int">,  
+  <dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>, 
+  <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
+  <dtml-sqlvar getResourceUid type="int">, 
+  <dtml-if getInventoriatedQuantity><dtml-sqlvar "getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>, 
+  <dtml-if getSourceTotalAssetPrice><dtml-sqlvar getSourceTotalAssetPrice type="float"><dtml-else>NULL</dtml-if> 
+)
 </dtml-if>
 <dtml-else>
-<dtml-if getDestinationUid>
-INSERT INTO stock VALUES (<dtml-sqlvar uid type="int">,  <dtml-sqlvar getDestinationUid type="int">,   <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar getInventoriatedQuantity type="float"><dtml-else>NULL</dtml-if>);
+<dtml-if getSourceUid>
+INSERT INTO
+  stock
+VALUES
+(
+  <dtml-sqlvar uid type="int">,
+  <dtml-sqlvar getSourceUid type="int">,  
+  <dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>, 
+  <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
+  <dtml-sqlvar getResourceUid type="int">, 
+  <dtml-if getInventoriatedQuantity><dtml-sqlvar "getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>, 
+  <dtml-if getSourceTotalAssetPrice><dtml-sqlvar getSourceTotalAssetPrice type="float"><dtml-else>NULL</dtml-if> 
+)
+</dtml-if>
+</dtml-if>
 </dtml-if>
 </dtml-if>
-</dtml-if>
\ No newline at end of file