Commit 050ccd5f authored by Alexandre Boeglin's avatar Alexandre Boeglin

Added SortIndex fields to Catalog, and updated methods.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1928 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aa35a3c2
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -33,33 +33,34 @@ meta_type
getPortalType
modified
review_state
sales_state
modele_state
opportunity_state
summary
getDefaultSourceReference
getFormeId
getGammeId
getDefaultDestinationReference
getDefaultSourceTitle
getDefaultDestinationTitle
getDefaultSourceSectionTitle
getDefaultDestinationSectionTitle
getDefaultCausalityId
modele_state_modeliste
modele_state_gestionaire
forme_state
composant_state
vetement_state
transform_state
order_state
delivery_state
getLocation
getEan13Code
getSimulationState
causality_state
discussion_state
invoice_state
getOrderId
samples_delivery_check
modele_state_infos_client
modele_state_accord_technique</params>
validation_state
payment_state
event_state
getReference
getSourceReference
getDestinationReference
getStringIndex
getIntIndex
getFloatIndex
getStringIndex2
getIntIndex2
getFloatIndex2</params>
INSERT INTO catalog VALUES (
<dtml-sqlvar uid type="int">,
<dtml-sqlvar getPath type="string">,
......@@ -87,31 +88,32 @@ INSERT INTO catalog VALUES (
<dtml-sqlvar getPortalType type="string">,
<dtml-sqlvar modified type="string">,
<dtml-sqlvar review_state type="string">,
<dtml-sqlvar sales_state type="string">,
<dtml-sqlvar modele_state type="string">,
<dtml-sqlvar opportunity_state type="string">,
<dtml-sqlvar getDefaultSourceReference type="string">,
<dtml-sqlvar getFormeId type="string">,
<dtml-sqlvar getGammeId type="string">,
<dtml-sqlvar getDefaultDestinationReference type="string">,
<dtml-sqlvar getDefaultSourceTitle type="string">,
<dtml-sqlvar getDefaultDestinationTitle type="string">,
<dtml-sqlvar getDefaultSourceSectionTitle type="string">,
<dtml-sqlvar getDefaultDestinationSectionTitle type="string">,
<dtml-sqlvar getDefaultCausalityId type="string">,
<dtml-sqlvar modele_state_modeliste type="string">,
<dtml-sqlvar modele_state_gestionaire type="string">,
<dtml-sqlvar forme_state type="string">,
<dtml-sqlvar composant_state type="string">,
<dtml-sqlvar vetement_state type="string">,
<dtml-sqlvar transform_state type="string">,
<dtml-sqlvar order_state type="string">,
<dtml-sqlvar delivery_state type="string">,
<dtml-sqlvar getLocation type="string">,
<dtml-sqlvar getEan13Code type="string">,
<dtml-sqlvar validation_state type="string">,
<dtml-sqlvar payment_state type="string">,
<dtml-sqlvar event_state type="string">,
<dtml-sqlvar getSimulationState type="string">,
<dtml-sqlvar causality_state type="string">,
<dtml-sqlvar discussion_state type="string">,
<dtml-sqlvar invoice_state type="string">,
<dtml-sqlvar getOrderId type="string">,
<dtml-if samples_delivery_check>1<dtml-else>0</dtml-if>,
<dtml-sqlvar modele_state_infos_client type="string">,
<dtml-sqlvar modele_state_accord_technique type="string">,
<dtml-sqlvar summary type="string">
<dtml-sqlvar getReference type="string">,
<dtml-sqlvar getSourceReference type="string">,
<dtml-sqlvar getDestinationReference type="string">,
<dtml-sqlvar summary type="string">,
<dtml-sqlvar getStringIndex type="string">,
<dtml-sqlvar getIntIndex type="int">,
<dtml-sqlvar getFloatIndex type="float">,
<dtml-sqlvar getStringIndex2 type="string">,
<dtml-sqlvar getIntIndex2 type="int">,
<dtml-sqlvar getFloatIndex2 type="float">
);
......@@ -62,6 +62,12 @@ CREATE TABLE `catalog` (
`source_reference` varchar(30) default '',
`destination_reference` varchar(30) default '',
`summary` text,
`string_index` varchar(30),
`int_index` int(11),
`float_index` real,
`string_index2` varchar(30),
`int_index2` int(11),
`float_index2` real,
PRIMARY KEY (`uid`),
KEY `security_uid` (`security_uid`),
KEY `Parent` (`parent_uid`),
......
......@@ -34,6 +34,7 @@ CREATE TABLE `movement` (
`is_deliverable` bool,
`variation_text` VARCHAR(100),
KEY `uid` (`uid`),
KEY `delivery_uid` (`delivery_uid`),
KEY `source_uid` (`source_uid`),
KEY `destination_uid` (`destination_uid`),
KEY `resource_uid` (`resource_uid`),
......
......@@ -16,9 +16,16 @@ CREATE TABLE `stock` (
`uid` int(11) NOT NULL default '0',
`node_uid` int(11),
`section_uid` int(11),
`mirror_section_uid` int(11),
`resource_uid` int(11),
`quantity` real ,
`total_asset_price` real ,
KEY `uid` (`uid`),
KEY `quantity` (`quantity`),
KEY `section_uid` (`section_uid`),
KEY `node_uid` (`node_uid`)
KEY `mirror_section_uid` (`mirror_section_uid`),
KEY `node_uid` (`node_uid`),
KEY `resource_uid` (`resource_uid`),
KEY `resource_node_uid` (`resource_uid`, `node_uid`),
KEY `resource_section_node_uid` (`resource_uid`, `section_uid`, `node_uid`)
) TYPE = InnoDB;
......@@ -56,7 +56,13 @@ event_state
getReference
getSourceReference
getDestinationReference
insert_catalog_line</params>
insert_catalog_line
getStringIndex
getIntIndex
getFloatIndex
getStringIndex2
getIntIndex2
getFloatIndex2</params>
<dtml-if insert_catalog_line>
INSERT INTO catalog(uid) VALUES (<dtml-sqlvar uid type="int">);
......@@ -111,5 +117,12 @@ UPDATE catalog SET uid=<dtml-sqlvar uid type="int">,
reference=<dtml-sqlvar getReference type="string">,
source_reference=<dtml-sqlvar getSourceReference type="string">,
destination_reference=<dtml-sqlvar getDestinationReference type="string">,
summary=<dtml-sqlvar summary type="string">
summary=<dtml-sqlvar summary type="string">,
string_index=<dtml-sqlvar getStringIndex type="string">,
int_index=<dtml-if getIntIndex><dtml-sqlvar getIntIndex type="int"><dtml-else>NULL</dtml-if>,
float_index=<dtml-if getFloatIndex><dtml-sqlvar getFloatIndex type="float"><dtml-else>NULL</dtml-if>,
string_index2=<dtml-sqlvar getStringIndex2 type="string">,
int_index2=<dtml-if getIntIndex2><dtml-sqlvar getIntIndex2 type="int"><dtml-else>NULL</dtml-if>,
float_index2=<dtml-if getFloatIndex2><dtml-sqlvar getFloatIndex2 type="float"><dtml-else>NULL</dtml-if>
WHERE <dtml-sqltest uid op=eq type=int> ;
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