Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frederic Thoma
erp5
Commits
5d0db8f0
Commit
5d0db8f0
authored
Feb 06, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new business template erp5_movement_table_catalog
parent
f0b6ecde
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
392 additions
and
0 deletions
+392
-0
bt5/erp5_movement_table_catalog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml
...alog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml
+4
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml
...talog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml
+5
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml
...tem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml
+64
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml
.../erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml
+5
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml
...ortal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml
+68
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml
...rp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml
+14
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml
...tal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml
+117
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml
...alog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml
+5
-0
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.xml
...em/portal_catalog/erp5_mysql_innodb/z_create_movement.xml
+89
-0
bt5/erp5_movement_table_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
...atalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
+4
-0
bt5/erp5_movement_table_catalog/CatalogResultTableTemplateItem/result_table_list.xml
...alog/CatalogResultTableTemplateItem/result_table_list.xml
+3
-0
bt5/erp5_movement_table_catalog/bt/description
bt5/erp5_movement_table_catalog/bt/description
+1
-0
bt5/erp5_movement_table_catalog/bt/revision
bt5/erp5_movement_table_catalog/bt/revision
+1
-0
bt5/erp5_movement_table_catalog/bt/template_catalog_datetime_key_list
...ement_table_catalog/bt/template_catalog_datetime_key_list
+2
-0
bt5/erp5_movement_table_catalog/bt/template_catalog_method_id_list
...movement_table_catalog/bt/template_catalog_method_id_list
+4
-0
bt5/erp5_movement_table_catalog/bt/template_catalog_related_key_list
...vement_table_catalog/bt/template_catalog_related_key_list
+2
-0
bt5/erp5_movement_table_catalog/bt/template_catalog_result_table_list
...ement_table_catalog/bt/template_catalog_result_table_list
+1
-0
bt5/erp5_movement_table_catalog/bt/template_format_version
bt5/erp5_movement_table_catalog/bt/template_format_version
+1
-0
bt5/erp5_movement_table_catalog/bt/title
bt5/erp5_movement_table_catalog/bt/title
+1
-0
bt5/erp5_movement_table_catalog/bt/version
bt5/erp5_movement_table_catalog/bt/version
+1
-0
No files found.
bt5/erp5_movement_table_catalog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml
0 → 100644
View file @
5d0db8f0
<key_list>
<key>
movement.start_date
</key>
<key>
movement.stop_date
</key>
</key_list>
\ No newline at end of file
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml
0 → 100644
View file @
5d0db8f0
<catalog_method>
<item
key=
"sql_clear_catalog"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml
0 → 100644
View file @
5d0db8f0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z0_drop_movement
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string>
DROP TABLE IF EXISTS movement
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml
0 → 100644
View file @
5d0db8f0
<catalog_method>
<item
key=
"sql_uncatalog_object"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml
0 → 100644
View file @
5d0db8f0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z0_uncatalog_movement
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
DELETE FROM movement WHERE <dtml-sqltest uid op=eq type=int>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml
0 → 100644
View file @
5d0db8f0
<catalog_method>
<item
key=
"sql_catalog_object_list"
type=
"int"
>
<value>
1
</value>
</item>
<item
key=
"_is_filtered_archive"
type=
"int"
>
<value>
1
</value>
</item>
<item
key=
"_filter_expression_archive"
type=
"str"
>
<value>
python: context.providesIMovement()
</value>
</item>
<item
key=
"_filter_expression_cache_key_archive"
type=
"tuple"
>
<value>
portal_type
</value>
</item>
</catalog_method>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml
0 → 100644
View file @
5d0db8f0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
isMovement\n
uid\n
getExplanationUid\n
getSourceUid\n
getDestinationUid\n
getResourceUid\n
getQuantity\n
getStartDate\n
getStopDate\n
getPrice\n
isAccountable\n
isDivergent\n
getVariationText
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_catalog_movement_list
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
DELETE FROM\n
movement\n
WHERE\n
<dtml-in uid>
\n
uid=
<dtml-sqlvar
sequence-item
type=
"int"
><dtml-if
sequence-end
><dtml-else>
OR
</dtml-if>
\n
</dtml-in>
\n
;\n
\n
<dtml-var
"\'\\0\'"
><dtml-let
movement_list=
"[]"
>
\n
<dtml-in
prefix=
"loop"
expr=
"_.range(_.len(uid))"
>
\n
<dtml-if
"isMovement[loop_item]"
>
\n
<dtml-call
expr=
"movement_list.append(loop_item)"
>
\n
</dtml-if>
\n
</dtml-in>
\n
<dtml-if
expr=
"_.len(movement_list) > 0"
>
\n
INSERT INTO\n
movement\n
VALUES\n
<dtml-in
prefix=
"loop"
expr=
"movement_list"
>
\n
( \n
<dtml-sqlvar
expr=
"uid[loop_item]"
type=
"int"
>
,\n
<dtml-sqlvar
expr=
"getExplanationUid[loop_item]"
type=
"int"
optional
>
,\n
<dtml-sqlvar
expr=
"getSourceUid[loop_item]"
type=
"int"
optional
>
,\n
<dtml-sqlvar
expr=
"getDestinationUid[loop_item]"
type=
"int"
optional
>
,\n
<dtml-sqlvar
expr=
"getResourceUid[loop_item]"
type=
"int"
optional
>
,\n
<dtml-sqlvar
expr=
"getQuantity[loop_item]"
type=
"float"
optional
>
,\n
<dtml-sqlvar
expr=
"getStartDate[loop_item]"
type=
"datetime"
optional
>
,\n
<dtml-sqlvar
expr=
"getStopDate[loop_item]"
type=
"datetime"
optional
>
,\n
<dtml-sqlvar
expr=
"getPrice[loop_item]"
type=
"float"
optional
>
,\n
<dtml-sqlvar
expr=
"isAccountable[loop_item]"
type=
"int"
optional
>
,\n
<dtml-sqlvar
expr=
"isDivergent[loop_item]"
type=
"int"
optional
>
,\n
<dtml-sqlvar
expr=
"getVariationText[loop_item]"
type=
"string"
optional
>
\n
)\n
<dtml-if
sequence-end
><dtml-else>
,
</dtml-if>
\n
</dtml-in>
\n
</dtml-if>
\n
</dtml-let>
\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml
0 → 100644
View file @
5d0db8f0
<catalog_method>
<item
key=
"sql_clear_catalog"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.xml
0 → 100644
View file @
5d0db8f0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_create_movement
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string>
# Host:\n
# Database: test\n
# Table: \'movement\'\n
#\n
CREATE TABLE `movement` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`explanation_uid` BIGINT UNSIGNED default \'0\',\n
`source_uid` BIGINT UNSIGNED default \'0\',\n
`destination_uid` BIGINT UNSIGNED default \'0\',\n
`resource_uid` BIGINT UNSIGNED default \'0\',\n
`quantity` real default \'0.0\',\n
`start_date` datetime,\n
`stop_date` datetime,\n
`price` real,\n
`is_accountable` bool,\n
`is_divergent` bool,\n
`variation_text` VARCHAR(255),\n
PRIMARY KEY `uid` (`uid`),\n
KEY `explanation_uid` (`explanation_uid`),\n
KEY `source_uid` (`source_uid`),\n
KEY `destination_uid` (`destination_uid`),\n
KEY `resource_uid` (`resource_uid`),\n
KEY `is_accountable` (`is_accountable`),\n
KEY `variation_text` (`variation_text`)\n
) ENGINE=InnoDB;\n
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_movement_table_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
0 → 100644
View file @
5d0db8f0
<key_list>
<key>
explanation_portal_type | movement,catalog/portal_type/z_related_explanation
</key>
<key>
explanation_simulation_state | movement,catalog/simulation_state/z_related_explanation
</key>
</key_list>
\ No newline at end of file
bt5/erp5_movement_table_catalog/CatalogResultTableTemplateItem/result_table_list.xml
0 → 100644
View file @
5d0db8f0
<key_list>
<key>
movement
</key>
</key_list>
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/description
0 → 100644
View file @
5d0db8f0
Compatibility business template adding back movement table.
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/revision
0 → 100644
View file @
5d0db8f0
3
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/template_catalog_datetime_key_list
0 → 100644
View file @
5d0db8f0
movement.start_date
movement.stop_date
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/template_catalog_method_id_list
0 → 100644
View file @
5d0db8f0
erp5_mysql_innodb/z0_drop_movement
erp5_mysql_innodb/z0_uncatalog_movement
erp5_mysql_innodb/z_catalog_movement_list
erp5_mysql_innodb/z_create_movement
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/template_catalog_related_key_list
0 → 100644
View file @
5d0db8f0
explanation_portal_type | movement,catalog/portal_type/z_related_explanation
explanation_simulation_state | movement,catalog/simulation_state/z_related_explanation
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/template_catalog_result_table_list
0 → 100644
View file @
5d0db8f0
movement
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/template_format_version
0 → 100644
View file @
5d0db8f0
1
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/title
0 → 100644
View file @
5d0db8f0
erp5_movement_table_catalog
\ No newline at end of file
bt5/erp5_movement_table_catalog/bt/version
0 → 100644
View file @
5d0db8f0
0.1
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment