Skip to content
Browse files

second commit

  • Loading branch information...
1 parent 947c28f commit d25db3c4aa98539764dc55c64a17243a98a45b61 @robin-001 committed Oct 6, 2012
View
27 .idea/CEMAS.iml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="django" name="Django">
+ <configuration>
+ <option name="rootFolder" value="$MODULE_DIR$" />
+ <option name="settingsModule" value="settings.py" />
+ <option name="manageScript" value="manage.py" />
+ </configuration>
+ </facet>
+ </component>
+ <component name="NewModuleRootManager">
+ <content url="file://$MODULE_DIR$" />
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ </component>
+ <component name="TemplatesService">
+ <option name="templateLanguage" value="Django" />
+ <option name="TEMPLATE_CONFIGURATION" value="Django" />
+ <option name="TEMPLATE_FOLDERS">
+ <list>
+ <option value="C:\Users\robin\PycharmProjects\CEMAS\templates" />
+ </list>
+ </option>
+ </component>
+</module>
+
View
15 .idea/dataSources.ids
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?><component name="dataSourceStorage">
+ <data-source source="LOCAL" name="Django default" product="" version="" jdbc-version="" driver-name="" driver-version="" uuid="a3a742d9-c4cf-4a9e-988e-990505b79247">
+ <jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
+ <jdbc-url>jdbc:mysql://127.0.0.1:3306/test</jdbc-url>
+ <user-name>root</user-name>
+ <libraries>
+ <library>
+ <url>file://$USER_HOME$/.PyCharm20/config/jdbc-drivers/mysql-connector-license.txt</url>
+ </library>
+ <library>
+ <url>jar://$USER_HOME$/.PyCharm20/config/jdbc-drivers/mysql-connector-java-5.1.18-bin.jar!/</url>
+ </library>
+ </libraries>
+ </data-source>
+</component>
View
5 .idea/dataSources.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="DataSourceManagerImpl" compressed="false" hash="309237375" />
+</project>
+
View
5 .idea/encodings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
+</project>
+
View
7 .idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+<component name="InspectionProjectProfileManager">
+ <settings>
+ <option name="PROJECT_PROFILE" />
+ <option name="USE_PROJECT_PROFILE" value="false" />
+ <version value="1.0" />
+ </settings>
+</component>
View
5 .idea/misc.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7.1 (C:\Python27\python.exe)" project-jdk-type="Python SDK" />
+</project>
+
View
9 .idea/modules.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module fileurl="file://$PROJECT_DIR$/.idea/CEMAS.iml" filepath="$PROJECT_DIR$/.idea/CEMAS.iml" />
+ </modules>
+ </component>
+</project>
+
View
5 .idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+<component name="DependencyValidationManager">
+ <state>
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+ </state>
+</component>
View
7 .idea/vcs.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="VcsDirectoryMappings">
+ <mapping directory="" vcs="" />
+ </component>
+</project>
+
View
482 .idea/workspace.xml
@@ -0,0 +1,482 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ChangeListManager">
+ <list default="true" id="d20fc1ab-9a64-4458-8825-356289255298" name="Default" comment="" />
+ <ignored path="CEMAS.iws" />
+ <ignored path=".idea/workspace.xml" />
+ <option name="TRACKING_ENABLED" value="true" />
+ <option name="SHOW_DIALOG" value="false" />
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+ <option name="LAST_RESOLUTION" value="IGNORE" />
+ </component>
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
+ <component name="CreatePatchCommitExecutor">
+ <option name="PATCH_PATH" value="" />
+ </component>
+ <component name="DaemonCodeAnalyzer">
+ <disable_hints />
+ </component>
+ <component name="FavoritesManager">
+ <favorites_list name="CEMAS" />
+ </component>
+ <component name="FileEditorManager">
+ <leaf>
+ <file leaf-file-name="models.py" pinned="false" current="true" current-in-tab="true">
+ <entry file="file://$PROJECT_DIR$/procurement/models.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="24" column="0" selection-start="1176" selection-end="1176" vertical-scroll-proportion="0.9088472">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="admin.py" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/procurement/admin.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="465" column="0" selection-start="9110" selection-end="9110" vertical-scroll-proportion="-4.28">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="models.py" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/../mysite/books/models.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="498" column="15" selection-start="0" selection-end="54692" vertical-scroll-proportion="-1.3">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="settings.py" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/settings.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="15" column="24" selection-start="422" selection-end="422" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="cvt.py" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/../cvt.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="42" column="36" selection-start="1332" selection-end="1332" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ </leaf>
+ </component>
+ <component name="FindManager">
+ <FindUsagesManager>
+ <setting name="OPEN_NEW_TAB" value="false" />
+ </FindUsagesManager>
+ </component>
+ <component name="IdeDocumentHistory">
+ <option name="changedFiles">
+ <list>
+ <option value="$PROJECT_DIR$/../cvt.py" />
+ <option value="$PROJECT_DIR$/procurement/moceldcopy" />
+ <option value="$PROJECT_DIR$/settings.py" />
+ <option value="$PROJECT_DIR$/../mysite/books/models.py" />
+ <option value="$PROJECT_DIR$/procurement/admin.py" />
+ <option value="$PROJECT_DIR$/procurement/models.py" />
+ </list>
+ </option>
+ </component>
+ <component name="ProjectFrameBounds">
+ <option name="x" value="-8" />
+ <option name="y" value="-8" />
+ <option name="width" value="1296" />
+ <option name="height" value="786" />
+ </component>
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
+ <OptionsSetting value="true" id="Add" />
+ <OptionsSetting value="true" id="Remove" />
+ <OptionsSetting value="true" id="Checkout" />
+ <OptionsSetting value="true" id="Update" />
+ <OptionsSetting value="true" id="Status" />
+ <OptionsSetting value="true" id="Edit" />
+ <ConfirmationsSetting value="0" id="Add" />
+ <ConfirmationsSetting value="0" id="Remove" />
+ </component>
+ <component name="ProjectReloadState">
+ <option name="STATE" value="0" />
+ </component>
+ <component name="ProjectView">
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
+ <flattenPackages />
+ <showMembers />
+ <showModules />
+ <showLibraryContents />
+ <hideEmptyPackages />
+ <abbreviatePackageNames />
+ <autoscrollToSource />
+ <autoscrollFromSource />
+ <sortByType />
+ </navigator>
+ <panes>
+ <pane id="Scope">
+ <subPane subId="Project Files">
+ <PATH>
+ <PATH_ELEMENT USER_OBJECT="Root">
+ <option name="myItemId" value="" />
+ <option name="myItemType" value="" />
+ </PATH_ELEMENT>
+ </PATH>
+ </subPane>
+ </pane>
+ <pane id="ProjectPane">
+ <subPane>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="CEMAS" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="CEMAS" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="CEMAS" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="CEMAS" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="CEMAS" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="procurement" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ </subPane>
+ </pane>
+ </panes>
+ </component>
+ <component name="PropertiesComponent">
+ <property name="WebServerToolWindowFactoryState" value="false" />
+ <property name="recentsLimit" value="5" />
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/../mysite/books" />
+ </component>
+ <component name="PyConsoleOptionsProvider">
+ <option name="myPythonConsoleState">
+ <PyConsoleSettings />
+ </option>
+ <option name="myDjangoConsoleState">
+ <PyConsoleSettings />
+ </option>
+ </component>
+ <component name="RunManager" selected="Django tests.syncdb">
+ <configuration default="false" name="cvt" type="PythonConfigurationType" factoryName="Python" temporary="true">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.." />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/../cvt.py" />
+ <option name="PARAMETERS" value="" />
+ <option name="MULTIPROCESS" value="false" />
+ <RunnerSettings RunnerId="PythonRunner" />
+ <ConfigurationWrapper RunnerId="PythonRunner" />
+ <method />
+ </configuration>
+ <configuration default="false" name="admin" type="PythonConfigurationType" factoryName="Python" temporary="true">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/procurement" />
+ <option name="IS_MODULE_SDK" value="true" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/procurement/admin.py" />
+ <option name="PARAMETERS" value="" />
+ <option name="MULTIPROCESS" value="false" />
+ <RunnerSettings RunnerId="PythonRunner" />
+ <ConfigurationWrapper RunnerId="PythonRunner" />
+ <method />
+ </configuration>
+ <configuration default="true" type="DjangoTestsConfigurationType" factoryName="Django tests">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="TARGET" value="" />
+ <option name="SETTINGS_FILE" value="" />
+ <option name="CUSTOM_SETTINGS" value="false" />
+ <method />
+ </configuration>
+ <configuration default="true" type="PythonConfigurationType" factoryName="Python">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="SCRIPT_NAME" value="" />
+ <option name="PARAMETERS" value="" />
+ <option name="MULTIPROCESS" value="false" />
+ <method />
+ </configuration>
+ <configuration default="true" type="tests" factoryName="Unittests">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs />
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="SCRIPT_NAME" value="" />
+ <option name="CLASS_NAME" value="" />
+ <option name="METHOD_NAME" value="" />
+ <option name="FOLDER_NAME" value="" />
+ <option name="TEST_TYPE" value="TEST_SCRIPT" />
+ <option name="PATTERN" value="" />
+ <option name="USE_PATTERN" value="false" />
+ <option name="PUREUNITTEST" value="true" />
+ <method />
+ </configuration>
+ <configuration default="true" type="Python.DjangoServer" factoryName="Django server">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <option name="launchJavascriptDebuger" value="false" />
+ <option name="port" value="8000" />
+ <option name="host" value="" />
+ <option name="additionalOptions" value="" />
+ <option name="browserUrl" value="" />
+ <option name="runTestServer" value="false" />
+ <option name="runNoReload" value="false" />
+ <option name="useCustomRunCommand" value="false" />
+ <option name="customRunCommand" value="" />
+ <method />
+ </configuration>
+ <configuration default="true" type="tests" factoryName="Doctests">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs />
+ <option name="SDK_HOME" value="" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="SCRIPT_NAME" value="" />
+ <option name="CLASS_NAME" value="" />
+ <option name="METHOD_NAME" value="" />
+ <option name="FOLDER_NAME" value="" />
+ <option name="TEST_TYPE" value="TEST_SCRIPT" />
+ <option name="PATTERN" value="" />
+ <option name="USE_PATTERN" value="false" />
+ <method />
+ </configuration>
+ <configuration default="false" name="CEMAS" type="Python.DjangoServer" factoryName="Django server">
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="C:/Python27/python.exe" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <option name="launchJavascriptDebuger" value="false" />
+ <option name="port" value="8000" />
+ <option name="host" value="" />
+ <option name="additionalOptions" value="" />
+ <option name="browserUrl" value="" />
+ <option name="runTestServer" value="false" />
+ <option name="runNoReload" value="false" />
+ <option name="useCustomRunCommand" value="false" />
+ <option name="customRunCommand" value="" />
+ <RunnerSettings RunnerId="PythonRunner" />
+ <ConfigurationWrapper RunnerId="PythonRunner" />
+ <method />
+ </configuration>
+ <configuration default="false" name="syncdb" type="DjangoTestsConfigurationType" factoryName="Django tests">
+ <option name="INTERPRETER_OPTIONS" value="syncdb" />
+ <option name="PARENT_ENVS" value="true" />
+ <envs>
+ <env name="PYTHONUNBUFFERED" value="1" />
+ </envs>
+ <option name="SDK_HOME" value="C:/Python27/python.exe" />
+ <option name="WORKING_DIRECTORY" value="" />
+ <option name="IS_MODULE_SDK" value="false" />
+ <module name="CEMAS" />
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
+ <option name="TARGET" value="manage.py" />
+ <option name="SETTINGS_FILE" value="" />
+ <option name="CUSTOM_SETTINGS" value="false" />
+ <method />
+ </configuration>
+ <list size="4">
+ <item index="0" class="java.lang.String" itemvalue="Django server.CEMAS" />
+ <item index="1" class="java.lang.String" itemvalue="Django tests.syncdb" />
+ <item index="2" class="java.lang.String" itemvalue="Python.cvt" />
+ <item index="3" class="java.lang.String" itemvalue="Python.admin" />
+ </list>
+ </component>
+ <component name="ShelveChangesManager" show_recycled="false" />
+ <component name="TaskManager">
+ <task active="true" id="Default" summary="Default task">
+ <changelist id="d20fc1ab-9a64-4458-8825-356289255298" name="Default" comment="" />
+ <created>1346074311357</created>
+ <updated>1346074311357</updated>
+ </task>
+ <servers />
+ </component>
+ <component name="ToolWindowManager">
+ <frame x="-8" y="-8" width="1296" height="786" extended-state="0" />
+ <editor active="true" />
+ <layout>
+ <window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.18800648" sideWeight="0.67571884" order="0" side_tool="false" content_ui="combo" />
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32428116" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
+ </layout>
+ </component>
+ <component name="VcsContentAnnotationSettings">
+ <option name="myLimit" value="2678400000" />
+ </component>
+ <component name="VcsManagerConfiguration">
+ <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
+ <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
+ <option name="CHECK_NEW_TODO" value="true" />
+ <option name="myTodoPanelSettings">
+ <value>
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </value>
+ </option>
+ <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
+ <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
+ <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
+ <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
+ <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
+ <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
+ <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
+ <option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
+ <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
+ <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
+ <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
+ <option name="SHORT_DIFF_HORISONTALLY" value="true" />
+ <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
+ <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
+ <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
+ <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
+ <option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
+ <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
+ <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
+ <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
+ <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
+ <option name="LAST_COMMIT_MESSAGE" />
+ <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
+ <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
+ <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
+ <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
+ <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
+ <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
+ <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
+ <option name="ACTIVE_VCS_NAME" />
+ <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
+ <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
+ <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
+ <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
+ </component>
+ <component name="XDebuggerManager">
+ <breakpoint-manager />
+ </component>
+ <component name="editorHistoryManager">
+ <entry file="file://$PROJECT_DIR$/../cvt.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="42" column="36" selection-start="1332" selection-end="1332" vertical-scroll-proportion="0.0" />
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/settings.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="15" column="24" selection-start="422" selection-end="422" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/../mysite/books/models.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="498" column="15" selection-start="0" selection-end="54692" vertical-scroll-proportion="-1.3">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/procurement/moceldcopy">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="344" column="5" selection-start="19218" selection-end="19249" vertical-scroll-proportion="0.91457283">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/procurement/admin.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="465" column="0" selection-start="9110" selection-end="9110" vertical-scroll-proportion="-4.28">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/procurement/models.py">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="24" column="0" selection-start="1176" selection-end="1176" vertical-scroll-proportion="0.9088472">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </component>
+</project>
+
View
0 __init__.py
No changes.
View
BIN cemas.db
Binary file not shown.
View
14 manage.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+import imp
+try:
+ imp.find_module('settings') # Assumed to be in the same directory.
+except ImportError:
+ import sys
+ sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
+ sys.exit(1)
+
+import settings
+
+if __name__ == "__main__":
+ execute_manager(settings)
View
0 procurement/__init__.py
No changes.
View
599 procurement/admin.py
@@ -0,0 +1,599 @@
+#coding: utf-8
+from django.contrib import admin
+from CEMAS.procurement.models import *
+
+class ServiceAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserGroupDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class SupplierAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueCostcodeAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ManufacturersAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoProductFavouriteAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserRolesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class RequisitionServiceDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueApproveAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CostCodeAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserCatalogueGroupAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class BuyerAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReviewsDescriptionAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class TaxClassAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class RolesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CountriesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReviewsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ProductsOptionsValuesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueGroupAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ModuleActivationAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class SupplierCatalogueDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserInvoiceAddressAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class OrdersProductsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class LocationAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ProductsDescriptionAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class RequisitionDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ManufacturersInfoAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoServiceDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ArticleAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ConfigurationAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserDeliveryAddressAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CounterAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CostCentreLimitAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CustomersBasketAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoBasketFavouriteAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class TmplcatalogueAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class SpecialsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class AuditDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class RequisitionAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class SupplierSettingDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoDeliveryPlaceAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CurrenciesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class AssignGrInvoiceAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class BuyerDeliveryAddressAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class BuyerBillAddressAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueGroupDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReqCatalogAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class LanguagesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class RoleModuleAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ProductsAttributesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueApproveDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueUpdateDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class BuyerSupplierLogoDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReqBasketFavouriteDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CustomersBasketAttributesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class LanguageAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class SupplierCatalogueLinkAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class TaxRatesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserCostCentreAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ProductsOptionsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserRoleModulesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UnitAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoBasketFavouriteDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class BuyerCatalogueAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoCostcentreFavouriteAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CostCentreAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CategoriesDescriptionAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoServiceAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class CatalogueActivateAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReqProductFavouriteAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ModulesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoCatalogAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReqBasketFavouriteAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class BuyerSupplierSettingAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ArticleCategoryDetailsAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ReqCostcentreFavouriteAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class GeoZonesAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class ConfigurationGroupAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class PoOrdersAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class UserLanguageAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+class OrdersAdmin(admin.ModelAdmin):
+ list_display = []
+ inlines = []
+ list_filter = []
+ search_fields = []
+
+admin.site.register(Service, ServiceAdmin)
+admin.site.register(UserGroupDetails, UserGroupDetailsAdmin)
+admin.site.register(Supplier, SupplierAdmin)
+admin.site.register(CatalogueCostcode, CatalogueCostcodeAdmin)
+admin.site.register(Manufacturers, ManufacturersAdmin)
+admin.site.register(PoProductFavourite, PoProductFavouriteAdmin)
+admin.site.register(UserRoles, UserRolesAdmin)
+admin.site.register(RequisitionServiceDetails, RequisitionServiceDetailsAdmin)
+admin.site.register(CatalogueApprove, CatalogueApproveAdmin)
+admin.site.register(CostCode, CostCodeAdmin)
+admin.site.register(UserCatalogueGroup, UserCatalogueGroupAdmin)
+admin.site.register(Buyer, BuyerAdmin)
+admin.site.register(ReviewsDescription, ReviewsDescriptionAdmin)
+admin.site.register(TaxClass, TaxClassAdmin)
+admin.site.register(Roles, RolesAdmin)
+admin.site.register(Countries, CountriesAdmin)
+admin.site.register(Reviews, ReviewsAdmin)
+admin.site.register(ProductsOptionsValues, ProductsOptionsValuesAdmin)
+admin.site.register(CatalogueGroup, CatalogueGroupAdmin)
+admin.site.register(ModuleActivation, ModuleActivationAdmin)
+admin.site.register(SupplierCatalogueDetails, SupplierCatalogueDetailsAdmin)
+admin.site.register(UserInvoiceAddress, UserInvoiceAddressAdmin)
+admin.site.register(OrdersProducts, OrdersProductsAdmin)
+admin.site.register(Location, LocationAdmin)
+admin.site.register(ProductsDescription, ProductsDescriptionAdmin)
+admin.site.register(Po, PoAdmin)
+admin.site.register(RequisitionDetails, RequisitionDetailsAdmin)
+admin.site.register(ManufacturersInfo, ManufacturersInfoAdmin)
+admin.site.register(PoServiceDetails, PoServiceDetailsAdmin)
+admin.site.register(Article, ArticleAdmin)
+admin.site.register(Configuration, ConfigurationAdmin)
+admin.site.register(UserDeliveryAddress, UserDeliveryAddressAdmin)
+admin.site.register(Counter, CounterAdmin)
+admin.site.register(CostCentreLimit, CostCentreLimitAdmin)
+admin.site.register(CustomersBasket, CustomersBasketAdmin)
+admin.site.register(PoBasketFavourite, PoBasketFavouriteAdmin)
+admin.site.register(Tmplcatalogue, TmplcatalogueAdmin)
+admin.site.register(Specials, SpecialsAdmin)
+admin.site.register(AuditDetails, AuditDetailsAdmin)
+admin.site.register(Requisition, RequisitionAdmin)
+admin.site.register(SupplierSettingDetails, SupplierSettingDetailsAdmin)
+admin.site.register(PoDeliveryPlace, PoDeliveryPlaceAdmin)
+admin.site.register(Currencies, CurrenciesAdmin)
+admin.site.register(AssignGrInvoice, AssignGrInvoiceAdmin)
+admin.site.register(BuyerDeliveryAddress, BuyerDeliveryAddressAdmin)
+admin.site.register(BuyerBillAddress, BuyerBillAddressAdmin)
+admin.site.register(CatalogueGroupDetails, CatalogueGroupDetailsAdmin)
+admin.site.register(ReqCatalog, ReqCatalogAdmin)
+admin.site.register(Languages, LanguagesAdmin)
+admin.site.register(RoleModule, RoleModuleAdmin)
+admin.site.register(ProductsAttributes, ProductsAttributesAdmin)
+admin.site.register(CatalogueApproveDetails, CatalogueApproveDetailsAdmin)
+admin.site.register(CatalogueUpdateDetails, CatalogueUpdateDetailsAdmin)
+admin.site.register(User, UserAdmin)
+admin.site.register(BuyerSupplierLogoDetails, BuyerSupplierLogoDetailsAdmin)
+admin.site.register(ReqBasketFavouriteDetails, ReqBasketFavouriteDetailsAdmin)
+admin.site.register(CustomersBasketAttributes, CustomersBasketAttributesAdmin)
+admin.site.register(Language, LanguageAdmin)
+admin.site.register(SupplierCatalogueLink, SupplierCatalogueLinkAdmin)
+admin.site.register(TaxRates, TaxRatesAdmin)
+admin.site.register(UserCostCentre, UserCostCentreAdmin)
+admin.site.register(ProductsOptions, ProductsOptionsAdmin)
+admin.site.register(PoDetails, PoDetailsAdmin)
+admin.site.register(UserRoleModules, UserRoleModulesAdmin)
+admin.site.register(Unit, UnitAdmin)
+admin.site.register(Catalogue, CatalogueAdmin)
+admin.site.register(PoBasketFavouriteDetails, PoBasketFavouriteDetailsAdmin)
+admin.site.register(BuyerCatalogue, BuyerCatalogueAdmin)
+admin.site.register(PoCostcentreFavourite, PoCostcentreFavouriteAdmin)
+admin.site.register(CostCentre, CostCentreAdmin)
+admin.site.register(CategoriesDescription, CategoriesDescriptionAdmin)
+admin.site.register(PoService, PoServiceAdmin)
+admin.site.register(CatalogueActivate, CatalogueActivateAdmin)
+admin.site.register(ReqProductFavourite, ReqProductFavouriteAdmin)
+admin.site.register(Modules, ModulesAdmin)
+admin.site.register(PoCatalog, PoCatalogAdmin)
+admin.site.register(ReqBasketFavourite, ReqBasketFavouriteAdmin)
+admin.site.register(BuyerSupplierSetting, BuyerSupplierSettingAdmin)
+admin.site.register(ArticleCategoryDetails, ArticleCategoryDetailsAdmin)
+admin.site.register(ReqCostcentreFavourite, ReqCostcentreFavouriteAdmin)
+admin.site.register(GeoZones, GeoZonesAdmin)
+admin.site.register(ConfigurationGroup, ConfigurationGroupAdmin)
+admin.site.register(PoOrders, PoOrdersAdmin)
+admin.site.register(UserLanguage, UserLanguageAdmin)
+admin.site.register(Orders, OrdersAdmin)
View
345 procurement/moceldcopy
@@ -0,0 +1,345 @@
+#author: robinson
+from django.db import models
+
+class Catalogue(models.Model):
+ catalogueId = models.AutoField(primary_key=True)
+ catalogueName = models.CharField('Name',max_length='64',null=False)
+ catalogueType = models.CharField('Type',max_length='64',null=False)
+ UNSPSCCode = models.CharField('UNSPS Code',max_length='64',null=False)
+ catalogueDescription = models.TextField('Catalogue Description',null=False)
+ dateAdded = models.DateField('Date Added',null=False)
+ def __unicode__(self):
+ return unicode(self.catalogueId)
+
+class Language(models.Model):
+ languageId = models.AutoField(primary_key=True)
+ name = models.CharField(max_length='64',null=False)
+ code = models.CharField(max_length='4',null=False)
+ def __unicode__(self):
+ return unicode(self.name)
+
+class Manufacturer(models.Model):
+ manufacturerId = models.AutoField(primary_key=True)
+ language = models.ForeignKey(Language,null=False)
+ manufacturerUrl = models.URLField('URL',null=False)
+ dateLastClicked = models.DateTimeField('Last Clicked Date',null=False)
+ def __unicode__(self):
+ return unicode(self.manufacturerId)
+
+class Buyer(models.Model):
+ buyerId = models.AutoField(primary_key=True)
+ buyerName = models.CharField('Name',max_length='150',null=False)
+ buyerDeliveryAddress = models.CharField('Delivery Address',max_length='150',null=False)
+ buyerBillAddress = models.CharField('Bill Address',max_length='150',null=False)
+ language = models.ForeignKey(Language,null=False)
+ buyerPostalCode = models.CharField('Postal Code',max_length='25',null=False)
+ buyerCity = models.CharField('City',max_length='100',null=False)
+ buyerCountry = models.CharField('Country',max_length='100',null=False)
+ buyerContact = models.CharField('Contact',max_length='100',null=False)
+ buyerPhoneNo = models.CharField('Phone Number',max_length='25',null=False)
+ buyerEmail = models.EmailField('Email',null=False)
+ buyerActive = models.BooleanField('Active')
+ buyerLogin = models.CharField('Login',max_length='50',null=False)
+ buyerStatus = models.CharField('Status',max_length='6',null=False)
+ buyerRegStatus = models.CharField('Registration status',max_length='6',null=False)
+ def __unicode__(self):
+ return unicode(self.buyerId)
+
+class Supplier(models.Model):
+ supplierId = models.AutoField(primary_key=True)
+ supplierName = models.CharField('Name',max_length='150',null=False)
+ SupplierAddress = models.CharField('Address',max_length='200',null=False)
+ language = models.ForeignKey(Language,null=False)
+ supplierPostalCode = models.CharField('Postal Code',max_length='25',null=False)
+ supplierCity = models.CharField('City',max_length='100',null=False)
+ supplierCountry = models.CharField('Country',max_length='100',null=False)
+ supplierContact = models.CharField('Contact',max_length='100',null=False)
+ supplierPhoneNo = models.CharField('Phone Number',max_length='25',null=False)
+ supplierEmail = models.EmailField(null=False)
+ supplierActive = models.BooleanField('Active')
+ supplierProfile = models.TextField('Profile',null=False)
+ supplierLogin = models.CharField('Login',max_length='50',null=False)
+ supplierDUNS = models.CharField('DUNS',max_length='50',null=False)
+ supplierType = models.CharField('Type',max_length='50',null=False)
+ supplierWebsite = models.URLField('Website')
+ supplierStatus = models.CharField('Status',max_length='6',null=False)
+ supplierRegStatus = models.CharField('Registration Status', max_length='6',null=False)
+ buyerId = models.ForeignKey(Buyer,null=False)
+ def __unicode__(self):
+ return unicode(self.supplierId)
+
+class Article(models.Model):
+ productsId = models.AutoField(primary_key=True)
+ productsQuantity = models.IntegerField('Quantity',max_length='16',null=False)
+ productsModel = models.CharField('Model',max_length='64',null=False)
+ #productsImage =models.ImageField(upload_to='images')
+ productsPrice = models.CharField('Price',max_length='64',null=False)
+ productsDateAdded = models.DateField('Date Added',null=False)
+ productsLastModified = models.DateField('Last Modified',null=False)
+ productsDateAvailable = models.DateField('Date Available',null=False)
+ productsWeight = models.CharField('Weight',max_length='64',null=False)
+ productsStatus = models.CharField('Status',max_length='8',null=False)
+ productsTaxClassVat = models.CharField('Tax Class VAT',max_length='50',null=False)
+ manufacturerId = models.ForeignKey(Manufacturer,null=False)
+ productsOrdered = models.IntegerField('Ordered',max_length='16',null=False)
+ articleUOM = models.CharField('Article uom',max_length='64',null=False)
+ productsWeightAndInfo = models.CharField('Weight and Info',max_length='1024',null=False)
+ productsWeightTech = models.CharField('Weight Tech',max_length='1024',null=False)
+ productsDeliDate = models.DateField('Delivery Date',null=False)
+ productsWeightNo = models.CharField('Weight No.',max_length='225',null=False)
+ productsOrderQnt = models.IntegerField('Order Quantity',max_length='16',null=False)
+ productsMinAddQnt = models.IntegerField('Minimum add quantity',max_length='16',null=False)
+ productsCntUnt = models.CharField('Count Unit',max_length='64',null=False)
+ productsCode = models.CharField('Code',max_length='255',null=False)
+ catalogueId =models.ForeignKey(Catalogue,null=False)
+ def __unicode__(self):
+ return unicode(self.productsId)
+
+class CatalogueGroup(models.Model):
+ buyerId = models.ForeignKey(Buyer,null=False)
+ catalogueGroupId = models.AutoField(primary_key=True)
+ catalogueGroupName = models.CharField('Group Name',max_length='150',null=False)
+ catalogueGroupDescription = models.TextField('Group Description',null=False)
+ def __unicode__(self):
+ return unicode(self.catalogueGroupId)
+
+class CategoriesDescription(models.Model):
+ categoriesId = models.AutoField(primary_key=True)
+ language = models.ForeignKey(Language,null=False)
+ categoriesName = models.CharField('Name',max_length='64',null=False)
+ catalogueId = models.ForeignKey(Catalogue,null=False)
+ def __unicode__(self):
+ return unicode(self.categoriesId)
+
+class ArticleCategoryDetails(models.Model):
+ productsId = models.ForeignKey(Article,null=False)
+ categoriesId = models.ForeignKey(CategoriesDescription,null=False)
+
+class CostCentre(models.Model):
+ buyerId = models.ForeignKey(Buyer,null=False)
+ costCentreId = models.AutoField(primary_key=True)
+ costCentreName = models.CharField('Name',max_length='50',null=False)
+ costCentreDescription = models.TextField('Description')
+ def __unicode__(self):
+ return unicode(self.costCentreName)
+
+class CostCode(models.Model):
+ buyerId = models.ForeignKey(Buyer,null=False)
+ costId = models.AutoField(primary_key=True)
+ costCodeName = models.CharField('Name',max_length='50',null=False)
+ costCodeDescription = models.TextField('Description',null=False)
+ def __unicode__(self):
+ return unicode(self.costCodeName)
+
+class Location(models.Model):
+ buyerSupplierId = models.ForeignKey(Buyer,null=False)
+ locationId = models.AutoField(primary_key=True)
+ locationName = models.CharField('Name',max_length='100',null=False)
+ locationDescription = models.TextField('Description',null=False)
+ locationMode = models.CharField('Mode',max_length='5',null=False)
+ def __unicode__(self):
+ return unicode(self.locationName)
+
+class Modules(models.Model):
+ moduleId = models.AutoField(primary_key=True)
+ moduleDescription = models.CharField('Description',max_length='100',null=False)
+ moduleMode = models.CharField('Mode',max_length='5',null=False)
+ def __unicode__(self):
+ return unicode(self.moduleId)
+
+class ModuleActivation(models.Model):
+ buyerSupplierId = models.ForeignKey(Buyer,null=False)
+ moduleId = models.AutoField(primary_key=True)
+ moduleActive = models.BooleanField('Active')
+ def __unicode__(self):
+ return unicode(self.moduleActive)
+
+class BuyerBillAddress(models.Model):
+ buyerSupplierId = models.ForeignKey(Buyer,null=False)
+ billAddressName = models.CharField('Address Name',max_length='255',null=False)
+ billMailbox = models.CharField('Mailbox',max_length='50',null=False)
+ billStreet = models.CharField('Street',max_length='50',null=False)
+ billPostalCode = models.CharField('Postal Code',max_length='25',null=False)
+ billCity = models.CharField('City',max_length='100',null=False)
+ billCountry = models.CharField('Country',max_length='50',null=False)
+ billPhoneNo = models.CharField('Phone number',max_length='25',null=False)
+ billMode = models.CharField('Mode',max_length='10',null=False)
+ def __unicode__(self):
+ return unicode(self.billAddressName)
+
+class UserDeliveryAddress(models.Model):
+ deliveryAddressId = models.AutoField(primary_key=True)
+ delAddressName = models.CharField('Name',max_length='150',null=False)
+ Active = models.BooleanField('Active')
+ buyerId = models.ForeignKey(Buyer,null=False)
+ def __unicode__(self):
+ return unicode(self.delAddressName)
+
+class Unit(models.Model):
+ buyerSupplierId = models.ForeignKey(Buyer,null=False)
+ unitId = models.AutoField(primary_key=True)
+ unitName = models.CharField('Name',max_length='100',null=False)
+ unitDescription = models.CharField('Description',max_length='500',null=False)
+ unitMode = models.CharField('Mode',max_length='5',null=False)
+ def __unicode__(self):
+ return unicode(self.unitName)
+
+class User(models.Model):
+ buyerSupplierId = models.ForeignKey(Buyer,null=False)
+ userId = models.AutoField(primary_key=True)
+ userFName = models.CharField('First Name', max_length='50',null=False)
+ userLName = models.CharField('Last Name', max_length='50',null=False)
+ userTitle = models.CharField('Title', max_length='25',null=False)
+ userLogin = models.CharField('Login', max_length='25',null=False)
+ userPwd = models.CharField('Password',max_length='25',null=False)
+ language = models.ForeignKey(Language,null=False)
+ userEmail = models.EmailField('Email',null=False)
+ userPhoneNo = models.CharField('Phone Number',max_length='25',null=False)
+ userDeliveryAddress = models.ForeignKey(UserDeliveryAddress,null=False)
+ userBillAddress = models.ForeignKey(BuyerBillAddress,null=False)
+ userStatus = models.CharField('Status',max_length='20',null=False)
+ userMode = models.CharField('Mode',max_length='5',null=False)
+ userAdmin = models.CharField('Admin',max_length='5',null=False)
+ userUnit = models.ForeignKey(Unit,null=False)
+ userLocation = models.ForeignKey(Location,null=False)
+ def __unicode__(self):
+ return unicode(self.userId)
+
+
+class UserInvoiceAddress(models.Model):
+ userId = models.ForeignKey(User,null=False)
+ InvAddressName = models.CharField('Name',max_length='150',null=False)
+ Active = models.BooleanField('Active')
+ buyerId = models.ForeignKey(Buyer,null=False)
+ def __unicode__(self):
+ return unicode(self.InvAddressName)
+
+class Roles(models.Model):
+ roleId = models.AutoField(primary_key=True)
+ roleDescription = models.CharField('Description',max_length='100',null=False)
+ roleMode = models.CharField('Mode',max_length='5',null=False)
+ def __unicode__(self):
+ return unicode(self.roleId)
+
+class Service(models.Model):
+ supplierId = models.ForeignKey(Supplier,null=False)
+ serviceId = models.AutoField(primary_key=True)
+ serviceName = models.CharField('Name',max_length='50',null=False)
+ serviceDescription = models.CharField('Description',max_length='255',null=False)
+ ServiceUOM = models.CharField('UOM',max_length='50',null=False)
+ serviceUnitRate = models.DecimalField('Unit Rate',decimal_places='3',max_digits='25',null=False)
+ def __unicode__(self):
+ return unicode(self.serviceName)
+
+class FinancialYear(models.Model):
+ financialYearId = models.AutoField(primary_key=True)
+ financialYearName = models.CharField('Financial Year',max_length='25',null=False)
+ def __unicode__(self):
+ return unicode(self.financialYearName)
+
+class Requisition(models.Model):
+ requisitionId = models.AutoField(primary_key=True)
+ requisitionNo = models.CharField('Number',max_length='50',null=False)
+ requisitionDate = models.DateField('Date',null=False)
+ userId = models.ForeignKey(User,null=False)
+ costCentreId = models.ForeignKey(CostCentre,null=False)
+ supplierId = models.ForeignKey(Supplier,null=False)
+ requisitionCost = models.DecimalField('Cost',decimal_places='3',max_digits='25',null=False)
+ requisitionDescription = models.CharField('Description',max_length='255',null=False)
+ requisitionPurpose = models.CharField('Purpose',max_length='255',null=False)
+ requisitionRemarks = models.TextField('Remarks',null=False)
+ reqDeliveryAddress = models.ForeignKey(UserDeliveryAddress,null=False)
+ reqInvoiceAddress = models.ForeignKey(UserInvoiceAddress,null=False)
+ requisitionStatus = models.CharField('Status',max_length='5',null=False)
+ requisitionType = models.CharField('Type',max_length='5',null=False)
+ requisitionMode = models.CharField('Mode',max_length='5',null=False)
+ financialYear = models.ForeignKey(FinancialYear,null=False)
+ rejectionReason = models.TextField('Rejection reason',null=False)
+ requisitionApprovedDate = models.DateField('Date Approved',null=False)
+ def __unicode__(self):
+ return unicode(self.requisitionNo)
+
+class PurchaseOrder(models.Model):
+ POId = models.AutoField(primary_key=True)
+ PONo = models.CharField('Number',max_length='100',null=False)
+ PODate = models.DateField('Date',null=False)
+ requisitionId = models.ForeignKey(Requisition,null=False)
+ userId = models.ForeignKey(User,null=False)
+ costCentre = models.ForeignKey(CostCentre,null=False)
+ supplierId = models.ForeignKey(Supplier,null=False)
+ POCost = models.DecimalField('Cost',decimal_places='3',max_digits='25',null=False)
+ PORefNo = models.CharField('Ref_No',max_length='100',null=False)
+ POPaymentTerms = models.CharField('Payment Terms',max_length='250',null=False)
+ PODeliveryPeriod = models.CharField('Delivery Period',max_length='150',null=False)
+ PORemarks = models.TextField('Remarks',null=False)
+ PODeliveryAddress = models.ForeignKey(UserDeliveryAddress,null=False)
+ POInvoiceAddress = models.ForeignKey(UserInvoiceAddress,null=False)
+ POStatus = models.CharField('Status',max_length='5',null=False)
+ POType = models.CharField('Type',max_length='5',null=False)
+ POMode = models.CharField('Mode',max_length='5',null=False)
+ financialYearId = models.ForeignKey(FinancialYear,null=False)
+ POCancellationReason = models.TextField('Cancellation Reason',null=False)
+ def __unicode__(self):
+ return unicode(self.PONo)
+
+class PODetails(models.Model):
+ POId = models.ForeignKey(PurchaseOrder,null=False)
+ articleSrNo = models.AutoField(primary_key=True)
+ articleId = models.ForeignKey(Article,null=False)
+ articleCode = models.CharField('Code',max_length='50',null=False)
+ articleDescription = models.CharField('Description',max_length='255',null=False)
+ articleQuantity = models.DecimalField('Quantity',decimal_places='3',max_digits='25',null=False)
+ articleUOM = models.CharField('UOM',max_length='50',null=False)
+ articleUnitPrice = models.DecimalField('Unit Price',decimal_places='3',max_digits='25',null=False)
+ articleLineTotal = models.DecimalField('Line total',decimal_places='3',max_digits='25',null=False)
+ costCode = models.ForeignKey(CostCode)
+
+class RequisitionDetails(models.Model):
+ requisitionId = models.ForeignKey(Requisition)
+ articleSrNo = models.AutoField(primary_key=True)
+ articleId = models.ForeignKey(Article)
+ articleCode = models.CharField('Code',max_length='50',null=False)
+ articleDescription = models.CharField('Description',max_length='255',null=False)
+ articleQuantity = models.DecimalField('Quantity',decimal_places='3',max_digits='25',null=False)
+ articleUOM = models.CharField('UOM',max_length='50',null=False)
+ articleUnitPrice = models.DecimalField('Unit Price',decimal_places='3',max_digits='25',null=False)
+ articleLineTotal = models.DecimalField('Line total',decimal_places='3',max_digits='25',null=False)
+ costCode = models.ForeignKey(CostCode)
+
+class Order(models.Model):
+ orderId = models.AutoField(primary_key=True)
+ customerId = models.ForeignKey(Buyer)
+ customerName = models.CharField('Customer Name',max_length='50',null=False)
+ customerCompany = models.CharField('Customer Company',max_length='50',null=False)
+ customerStreetAddress = models.CharField('Customer Street Address',max_length='50',null=False)
+ customerSuburb = models.CharField('Customer Suburb',max_length='50',null=False)
+ customerCity = models.CharField('Customer City',max_length='50',null=False)
+ customerPostcode = models.CharField('Customer Postcode',max_length='50',null=False)
+ customerState = models.CharField('Customer State',max_length='50',null=False)
+ customerCountry = models.CharField('Customer Country',max_length='50',null=False)
+ customerTelephone = models.CharField('Customer Telephone',max_length='50',null=False)
+ customerEmail = models.EmailField('Customer Email',null=False)
+ deliveryName = models.CharField('Delivery Name',max_length='50',null=False)
+ deliveryCompany = models.CharField('Delivery Company',max_length='50',null=False)
+ deliveryStreetAddress = models.CharField('Delivery Street Address',max_length='50',null=False)
+ deliverySuburb = models.CharField('Delivery Suburb',max_length='50',null=False)
+ deliveryCity = models.CharField('Delivery City',max_length='50',null=False)
+ deliveryPostcode = models.CharField('Delivery Post Code',max_length='50',null=False)
+ deliveryState = models.CharField('Delivery State',max_length='50',null=False)
+ deliveryCountry = models.CharField('Delivery Country',max_length='50',null=False)
+ billingName = models.CharField('Billing Name',max_length='50',null=False)
+ billingCompany = models.CharField('Billing company',max_length='50',null=False)
+ billingStreetAddress = models.CharField('Billing Street Address',max_length='50',null=False)
+ billingSuburb = models.CharField('Billing Suburb',max_length='50',null=False)
+ billingCity = models.CharField('Billing City',max_length='50',null=False)
+ billingPostcode = models.CharField('Billing Post Code',max_length='50',null=False)
+ billingState = models.CharField('Billing State',max_length='50',null=False)
+ billingCountry = models.CharField('Billing Country',max_length='50',null=False)
+ paymentMethod = models.CharField('Payment Method',max_length='50',null=False)
+ lastModified = models.DateField('Last modified',null=False)
+ datePurchased = models.DateField('Date Purchased', null=False)
+ orderStatus = models.CharField('Oder Status',max_length='5',null=False)
+ orderDateFinished = models.DateField('Date Finished',null=False)
+ currency = models.CharField('Currency',max_length='25',null=False)
+ def __unicode__(self):
+ return unicode(self.orderId)
View
963 procurement/models.py
@@ -0,0 +1,963 @@
+from django.db import models
+
+class ArticleCategoryDetails(models.Model):
+ products_id = models.IntegerField(primary_key=True)
+ categories_id = models.IntegerField(null=False)
+ class Meta:
+ db_table = u'article_category_details'
+
+class AssignGrInvoice(models.Model):
+ user_gr_invoice_id = models.IntegerField(db_column='User_Gr_Invoice_Id')
+ user_id = models.IntegerField(db_column='User_Id')
+ gr_invoice_mode = models.CharField(max_length=15, db_column='GR_Invoice_Mode', blank=True)
+ class Meta:
+ db_table = u'assign_gr_invoice'
+
+class AuditDetails(models.Model):
+ user_id = models.IntegerField(null=True, db_column='User_Id', blank=True)
+ transaction_mode = models.CharField(max_length=150, db_column='Transaction_Mode', blank=True)
+ table_name = models.CharField(max_length=300, db_column='Table_Name', blank=True)
+ field_name = models.CharField(max_length=300, db_column='Field_Name', blank=True)
+ row_number = models.IntegerField(null=True, db_column='Row_Number', blank=True)
+ date_modified = models.DateTimeField(null=True, db_column='Date_Modified', blank=True)
+ class Meta:
+ db_table = u'audit_details'
+
+class BuyerBillAddress(models.Model):
+ buyer_supplier_id = models.IntegerField(db_column='Buyer_Supplier_Id')
+ bill_address_name = models.CharField(max_length=765, db_column='Bill_Address_Name')
+ bill_mailbox = models.CharField(max_length=150, db_column='Bill_Mailbox', blank=True)
+ bill_street = models.CharField(max_length=150, db_column='Bill_Street', blank=True)
+ bill_postal_code = models.CharField(max_length=75, db_column='Bill_Postal_Code', blank=True)
+ bill_city = models.CharField(max_length=300, db_column='Bill_City', blank=True)
+ bill_country = models.CharField(max_length=300, db_column='Bill_Country', blank=True)
+ bill_phone_no = models.CharField(max_length=75, db_column='Bill_Phone_No', blank=True)
+ bill_mode = models.CharField(max_length=30, db_column='Bill_Mode')
+ class Meta:
+ db_table = u'buyer_bill_address'
+
+class BuyerCatalogue(models.Model):
+ buyer_id = models.IntegerField(db_column='Buyer_Id')
+ catalogue_id = models.IntegerField(db_column='Catalogue_Id')
+ class Meta:
+ db_table = u'buyer_catalogue'
+
+class BuyerDeliveryAddress(models.Model):
+ buyer_supplier_id = models.IntegerField(db_column='Buyer_Supplier_Id')
+ delivery_address_name = models.CharField(max_length=765, db_column='Delivery_Address_Name')
+ delivery_street = models.CharField(max_length=150, db_column='Delivery_Street', blank=True)
+ delivery_postal_code = models.CharField(max_length=75, db_column='Delivery_Postal_Code', blank=True)
+ delivery_city = models.CharField(max_length=300, db_column='Delivery_City', blank=True)
+ delivery_country = models.CharField(max_length=300, db_column='Delivery_Country', blank=True)
+ delivery_phone_no = models.CharField(max_length=75, db_column='Delivery_Phone_No', blank=True)
+ del_mode = models.CharField(max_length=30, db_column='Del_Mode')
+ class Meta:
+ db_table = u'buyer_delivery_address'
+
+class BuyerSupplierLogoDetails(models.Model):
+ buyer_supplier_id = models.IntegerField(db_column='Buyer_Supplier_Id')
+ logo_image_path = models.CharField(max_length=600, db_column='Logo_Image_Path', blank=True)
+ logo_mode = models.CharField(max_length=15, db_column='Logo_Mode', blank=True)
+ logo_image_type = models.CharField(max_length=135, db_column='Logo_Image_Type')
+ logo_image_size = models.IntegerField(db_column='Logo_Image_Size')
+ logo_image_name = models.CharField(max_length=765, db_column='Logo_Image_Name')
+ class Meta:
+ db_table = u'buyer_supplier_logo_details'
+
+class BuyerSupplierSetting(models.Model):
+ supplier_id = models.IntegerField(unique=True, db_column='Supplier_Id')
+ buyer_id = models.IntegerField(unique=True, db_column='Buyer_Id')
+ po_generation_type = models.CharField(max_length=150, db_column='PO_Generation_Type', blank=True)
+ class Meta:
+ db_table = u'buyer_supplier_setting'
+
+class CatalogueActivate(models.Model):
+ buyer_id = models.IntegerField(db_column='Buyer_Id')
+ catalogue_id = models.IntegerField(db_column='Catalogue_Id')
+ ct_type = models.CharField(max_length=15)
+ class Meta:
+ db_table = u'catalogue_activate'
+
+class CatalogueApprove(models.Model):
+ catalogue_approve_id = models.IntegerField(db_column='Catalogue_Approve_Id')
+ buyer_id = models.IntegerField(db_column='Buyer_Id')
+ supplier_id = models.IntegerField(db_column='Supplier_Id')
+ catalogue_id = models.IntegerField(db_column='Catalogue_Id')
+ catalogue_status = models.CharField(max_length=15, db_column='Catalogue_Status', blank=True)
+ rejection_reason = models.CharField(max_length=765, db_column='Rejection_reason', blank=True)
+ class Meta:
+ db_table = u'catalogue_approve'
+
+class CatalogueApproveDetails(models.Model):
+ catalogue_approve_id = models.IntegerField(db_column='Catalogue_Approve_Id')
+ article_id = models.IntegerField(db_column='Article_Id')
+ article_last_price = models.FloatField(null=True, db_column='Article_Last_Price', blank=True)
+ article_current_price = models.FloatField(null=True, db_column='Article_Current_Price', blank=True)
+ article_price_diff = models.FloatField(null=True, db_column='Article_Price_Diff', blank=True)
+ article_rejection_reason = models.CharField(max_length=765, db_column='Article_Rejection_reason', blank=True)
+ class Meta:
+ db_table = u'catalogue_approve_details'
+
+class CatalogueCostcode(models.Model):
+ catalogue_id = models.IntegerField()
+ category_id = models.IntegerField(db_column='Category_Id')
+ cost_id = models.IntegerField(db_column='Cost_Id')
+ ct_mode = models.CharField(max_length=15)
+ buyer_id = models.IntegerField(db_column='Buyer_Id')
+ class Meta:
+ db_table = u'catalogue_costcode'
+
+class CatalogueGroupDetails(models.Model):
+ catalogue_group_id = models.IntegerField(db_column='Catalogue_Group_Id')
+ catalogue_id = models.IntegerField(db_column='Catalogue_Id')
+ class Meta:
+ db_table = u'catalogue_group_details'
+
+class CatalogueUpdateDetails(models.Model):
+ supplier_id = models.IntegerField(db_column='Supplier_Id')
+ catalogue_id = models.IntegerField(db_column='Catalogue_Id')
+ update_count = models.IntegerField(null=True, db_column='Update_Count', blank=True)
+ update_date = models.DateTimeField(null=True, db_column='Update_Date', blank=True)
+ class Meta:
+ db_table = u'catalogue_update_details'
+
+class CategoriesDescription(models.Model):
+ categories_id = models.IntegerField()
+ language_id = models.IntegerField()
+ categories_name = models.CharField(max_length=600)
+ catalogue_id = models.IntegerField(db_column='Catalogue_Id')
+ class Meta:
+ db_table = u'categories_description'
+
+class Configuration(models.Model):
+ configuration_id = models.IntegerField(primary_key=True)
+ configuration_title = models.CharField(max_length=765)
+ configuration_key = models.CharField(max_length=765)
+ configuration_value = models.CharField(max_length=765)
+ configuration_description = models.CharField(max_length=765)
+ configuration_group_id = models.IntegerField()
+ sort_order = models.IntegerField(null=True, blank=True)
+ last_modified = models.DateTimeField(null=True, blank=True)
+ date_added = models.DateTimeField()
+ use_function = models.CharField(max_length=765, blank=True)
+ set_function = models.CharField(max_length=765, blank=True)
+ class Meta:
+ db_table = u'configuration'
+
+class ConfigurationGroup(models.Model):
+ configuration_group_id = models.IntegerField(primary_key=True)
+ configuration_group_title = models.CharField(max_length=192)
+ configuration_group_description = models.CharField(max_length=765)
+ sort_order = models.IntegerField(null=True, blank=True)
+ visible = models.IntegerField(null=True, blank=True)
+ class Meta:
+ db_table = u'configuration_group'
+
+class CostCentreLimit(models.Model):
+ user_id = models.IntegerField(db_column='User_Id')
+ cost_centre_id = models.IntegerField(db_column='Cost_Centre_Id')
+ limit_value = models.FloatField(null=True, db_column='Limit_Value', blank=True)
+ limit_type = models.CharField(max_length=60, db_column='Limit_Type', blank=True)
+ class Meta:
+ db_table = u'cost_centre_limit'
+
+class Counter(models.Model):
+ startdate = models.CharField(max_length=24, blank=True)
+ counter = models.IntegerField(null=True, blank=True)
+ class Meta:
+ db_table = u'counter'
+
+class Countries(models.Model):
+ countries_id = models.IntegerField(primary_key=True)
+ countries_name = models.CharField(max_length=192)
+ countries_iso_code_2 = models.CharField(max_length=6)
+ countries_iso_code_3 = models.CharField(max_length=9)
+ address_format_id = models.IntegerField()
+ class Meta:
+ db_table = u'countries'
+
+class Currencies(models.Model):
+ currencies_id = models.IntegerField(primary_key=True)
+ title = models.CharField(max_length=96)
+ code = models.CharField(max_length=9)
+ symbol_left = models.CharField(max_length=36, blank=True)
+ symbol_right = models.CharField(max_length=36, blank=True)
+ decimal_point = models.CharField(max_length=3, blank=True)
+ thousands_point = models.CharField(max_length=3, blank=True)
+ decimal_places = models.CharField(max_length=3, blank=True)
+ value = models.FloatField(null=True, blank=True)
+ last_updated = models.DateTimeField(null=True, blank=True)
+ class Meta:
+ db_table = u'currencies'
+
+class CustomersBasket(models.Model):
+ customers_basket_id = models.IntegerField(primary_key=True)
+ customers_id = models.IntegerField()
+ products_id = models.TextField()
+ customers_basket_quantity = models.IntegerField()
+ final_price = models.DecimalField(null=True, max_digits=17, decimal_places=4, blank=True)
+ customers_basket_date_added = models.CharField(max_length=24, blank=True)
+ class Meta:
+ db_table = u'customers_basket'
+
+class CustomersBasketAttributes(models.Model):
+ customers_basket_attributes_id = models.IntegerField(primary_key=True)
+ customers_id = models.IntegerField()
+ products_id = models.TextField()
+ products_options_id = models.IntegerField()
+ products_options_value_id = models.IntegerField()
+ class Meta:
+ db_table = u'customers_basket_attributes'
+
+class GeoZones(models.Model):
+ geo_zone_id = models.IntegerField(primary_key=True)
+ geo_zone_name = models.CharField(max_length=96)
+ geo_zone_description = models.CharField(max_length=765)
+ last_modified = models.DateTimeField(null=True, blank=True)
+ date_added = models.DateTimeField()
+ class Meta:
+ db_table = u'geo_zones'
+#language class1
+class Languages(models.Model):
+ languages_id = models.IntegerField(primary_key=True)
+ name = models.CharField(max_length=96)
+ code = models.CharField(max_length=6)
+ image = models.CharField(max_length=192, blank=True)
+ directory = models.CharField(max_length=96, blank=True)
+ sort_order = models.IntegerField(null=True, blank=True)
+ class Meta:
+ db_table = u'languages'
+
+class Manufacturers(models.Model):
+ manufacturers_id = models.IntegerField(primary_key=True)
+ manufacturers_name = models.CharField(max_length=96)
+ manufacturers_image = models.CharField(max_length=192, blank=True)
+ date_added = models.DateTimeField(null=True, blank=True)
+ last_modified = models.DateTimeField(null=True, blank=True)
+ class Meta:
+ db_table = u'manufacturers'
+
+class ManufacturersInfo(models.Model):
+ manufacturers_id = models.IntegerField(primary_key=True)
+ languages_id = models.ForeignKey(Languages)
+ manufacturers_url = models.CharField(max_length=765)
+ url_clicked = models.IntegerField()
+ date_last_click = models.DateTimeField(null=True, blank=True)
+ class Meta:
+ db_table = u'manufacturers_info'
+
+class Article(models.Model):
+ products_id = models.IntegerField(unique=True)
+ products_quantity = models.IntegerField()
+ products_model = models.CharField(max_length=36, blank=True)
+ products_image = models.CharField(max_length=192, blank=True)
+ products_price = models.FloatField()
+ products_date_added = models.DateTimeField()
+ products_last_modified = models.DateTimeField(null=True, blank=True)
+ products_date_available = models.DateTimeField(null=True, blank=True)
+ products_weight = models.CharField(max_length=192)
+ products_status = models.IntegerField()
+ products_tax_class_vat = models.FloatField()
+ manufacturers_id = models.IntegerField(null=True, blank=True)
+ products_ordered = models.IntegerField()
+ article_uom = models.CharField(max_length=192)
+ products_weight_add_info = models.CharField(max_length=3000)
+ products_weight_tech = models.CharField(max_length=3000)
+ products_deli_date = models.CharField(max_length=300)
+ products_weight_no = models.CharField(max_length=765)
+ products_ord_qnt = models.IntegerField()
+ products_min_add_qnt = models.IntegerField()
+ products_cnt_unt = models.CharField(max_length=150)
+ products_code = models.CharField(max_length=765)
+ catalogue_id = models.IntegerField(unique=True, null=True, db_column='Catalogue_Id', blank=True)
+ class Meta:
+ db_table = u'master_article'
+
+class Buyer(models.Model):
+ buyer_id = models.IntegerField(primary_key=True, db_column='Buyer_Id')
+ buyer_name = models.CharField(max_length=450, db_column='Buyer_Name', blank=True)
+ buyer_delivery_address = models.CharField(max_length=450, db_column='Buyer_Delivery_Address', blank=True)
+ buyer_bill_address = models.CharField(max_length=450, db_column='Buyer_Bill_Address', blank=True)
+ lang_id = models.IntegerField(null=True, db_column='Lang_Id', blank=True)
+ buyer_postal_code = models.CharField(max_length=75, db_column='Buyer_Postal_Code', blank=True)
+ buyer_city = models.CharField(max_length=300, db_column='Buyer_City', blank=True)
+ buyer_country = models.CharField(max_length=300, db_column='Buyer_Country', blank=True)
+ buyer_contact = models.CharField(max_length=300, db_column='Buyer_Contact', blank=True)
+ buyer_phone_no = models.CharField(max_length=75, db_column='Buyer_Phone_No', blank=True)
+ buyer_fax = models.CharField(max_length=75, db_column='Buyer_Fax', blank=True)
+ buyer_email = models.CharField(max_length=150, db_column='Buyer_Email', blank=True)
+ buyer_active = models.CharField(max_length=12, db_column='Buyer_Active', blank=True)
+ buyer_login = models.CharField(max_length=150, db_column='Buyer_Login')
+ buyer_status = models.CharField(max_length=18, db_column='Buyer_Status')
+ buyer_reg_status = models.CharField(max_length=18, db_column='Buyer_Reg_Status')
+ class Meta:
+ db_table = u'master_buyer'
+
+class Catalogue(models.Model):
+ catalogue_id = models.IntegerField(primary_key=True, db_column='Catalogue_Id')
+ catalogue_name = models.CharField(max_length=450, db_column='Catalogue_Name', blank=True)
+ catalogue_type = models.CharField(max_length=60, db_column='Catalogue_Type', blank=True)
+ unspsc_code = models.CharField(max_length=150, db_column='UNSPSC_Code', blank=True)
+ catalogue_description = models.CharField(max_length=3000, db_column='Catalogue_Description', blank=True)
+ date_added = models.DateField(null=True, db_column='Date_Added', blank=True)
+ class Meta:
+ db_table = u'master_catalogue'
+
+class CatalogueGroup(models.Model):
+ buyer_id = models.IntegerField(null=False, db_column='Buyer_Id')
+ catalogue_group_id = models.IntegerField(primary_key=True, db_column='Catalogue_Group_Id')
+ catalogue_group_name = models.CharField(max_length=450, db_column='Catalogue_Group_Name', blank=True)
+ catalogue_group_description = models.CharField(max_length=750, db_column='Catalogue_Group_Description', blank=True)
+ class Meta:
+ db_table = u'master_catalogue_group'
+
+class CostCentre(models.Model):
+ buyer_id = models.IntegerField(db_column='Buyer_Id')
+ cost_centre_id = models.IntegerField(primary_key=True, db_column='Cost_Centre_Id')
+ cost_centre_name = models.CharField(max_length=150, db_column='Cost_Centre_Name', blank=True)
+ cost_centre_desc = models.CharField(max_length=300, db_column='Cost_Centre_Desc', blank=True)
+ class Meta:
+ db_table = u'master_cost_centre'
+
+class CostCode(models.Model):
+ buyer_id = models.IntegerField(db_column='Buyer_Id')
+ cost_id = models.IntegerField(primary_key=True, db_column='Cost_Id')
+ cost_code_name = models.CharField(max_length=150, db_column='Cost_Code_Name', blank=True)
+ cost_code_desc = models.CharField(max_length=300, db_column='Cost_Code_Desc', blank=True)
+ class Meta:
+ db_table = u'master_cost_code'
+#language class2
+class Language(models.Model):
+ lang_id = models.IntegerField(db_column='lang_Id')
+ lang_desc = models.CharField(max_length=300, db_column='lang_Desc')
+ class Meta:
+ db_table = u'master_language'
+
+class Location(models.Model):
+ buyer_supplier_id = models.IntegerField(db_column='Buyer_Supplier_Id')
+ location_id = models.IntegerField(db_column='Location_Id')
+ location_name = models.CharField(max_length=300, db_column='Location_Name')
+ location_desc = models.CharField(max_length=1500, db_column='Location_Desc')
+ location_mode = models.CharField(max_length=15, db_column='Location_Mode')
+ class Meta:
+ db_table = u'master_location'
+
+class Modules(models.Model):
+ module_id = models.IntegerField(primary_key=True, db_column='Module_Id')
+ module_description = models.CharField(max_length=300, db_column='Module_Description', blank=True)
+ module_mode = models.CharField(max_length=15, db_column='Module_Mode', blank=True)
+ module_description_dutch = models.CharField(max_length=300, db_column='Module_Description_Dutch', blank=True)
+ class Meta:
+ db_table = u'master_modules'
+
+class Po(models.Model):
+ po_id = models.IntegerField(primary_key=True, db_column='PO_Id')
+ po_no = models.CharField(max_length=300, db_column='PO_No', blank=True)
+ po_date = models.DateField(null=True, db_column='PO_Date', blank=True)
+ requisition_id = models.IntegerField(null=True, db_column='Requisition_Id', blank=True)
+ user_id = models.IntegerField(db_column='User_Id')
+ cost_centre_id = models.IntegerField(null=True, db_column='Cost_Centre_Id', blank=True)
+ supplier_id = models.IntegerField(null=True, db_column='Supplier_Id', blank=True)
+ po_cost = models.FloatField(null=True, db_column='PO_Cost', blank=True)
+ po_ref_no = models.CharField(max_length=300, db_column='PO_Ref_No', blank=True)
+ po_payment_terms = models.CharField(max_length=750, db_column='PO_Payment_Terms', blank=True)
+ po_delivery_period = models.CharField(max_length=450, db_column='PO_Delivery_Period', blank=True)
+ po_remarks = models.TextField(db_column='PO_Remarks', blank=True)
+ po_delivery_address = models.CharField(max_length=450, db_column='PO_Delivery_Address', blank=True)
+ po_invoice_address = models.CharField(max_length=450, db_column='PO_Invoice_Address', blank=True)
+ po_status = models.CharField(max_length=12, db_column='PO_Status', blank=True)
+ po_type = models.CharField(max_length=12, db_column='PO_Type', blank=True)
+ po_mode = models.CharField(max_length=12, db_column='PO_Mode', blank=True)
+ fin_year_id = models.IntegerField(db_column='Fin_Year_Id')
+ po_cancellation_reason = models.TextField(db_column='PO_Cancellation_Reason', blank=True)
+ class Meta:
+ db_table = u'master_po'
+
+class Requisition(models.Model):
+ requisition_id = models.IntegerField(primary_key=True, db_column='Requisition_Id')
+ requisition_no = models.CharField(max_length=150, db_column='Requisition_No', blank=True)
+ requisition_date = models.DateField(null=True, db_column='Requisition_Date', blank=True)
+ user_id = models.IntegerField(null=True, db_column='User_Id', blank=True)
+ cost_centre_id = models.IntegerField(null=True, db_column='Cost_Centre_Id', blank=True)
+ supplier_id = models.IntegerField(null=True, db_column='Supplier_Id', blank=True)
+ requisitiont_cost = models.FloatField(null=True, db_column='Requisitiont_Cost', blank=True)
+ requisition_description = models.TextField(db_column='Requisition_Description', blank=True)
+ requisition_purpose = models.TextField(db_column='Requisition_Purpose', blank=True)
+ requisition_remarks = models.TextField(db_column='Requisition_Remarks', blank=True)
+ req_delivery_address = models.CharField(max_length=450, db_column='Req_Delivery_Address', blank=True)
+ req_invoice_address = models.CharField(max_length=450, db_column='Req_Invoice_Address', blank=True)
+ requisition_status = models.CharField(max_length=12, db_column='Requisition_Status', blank=True)
+ req_type = models.CharField(max_length=150, db_column='Req_Type', blank=True)
+ req_mode = models.CharField(max_length=150, db_column='Req_Mode', blank=True)
+ fin_year_id = models.IntegerField(db_column='Fin_Year_Id')
+ rejection_reason = models.TextField(db_column='Rejection_Reason', blank=True)
+ requisition_approved_date = models.DateField(null=True, db_column='Requisition_approved_Date', blank=True)
+ class Meta:
+ db_table = u'master_requisition'
+
+class Roles(models.Model):
+ role_id = models.IntegerField(primary_key=True, db_column='Role_Id')
+ role_description = models.CharField(max_length=300, db_column='Role_Description', blank=True)
+ role_mode = models.CharField(max_length=15, db_column='Role_Mode', blank=True)
+ role_description_dutch = models.CharField(max_length=300, db_column='Role_Description_Dutch', blank=True)
+ class Meta:
+ db_table = u'master_roles'
+
+class Service(models.Model):
+ supplier_id = models.IntegerField(db_column='Supplier_Id')
+ service_id = models.IntegerField(primary_key=True, db_column='Service_Id')
+ service_name = models.CharField(max_length=150, db_column='Service_Name', blank=True)
+ service_description = models.CharField(max_length=765, db_column='Service_Description', blank=True)
+ service_uom = models.CharField(max_length=150, db_column='Service_UOM', blank=True)
+ service_unit_rate = models.FloatField(null=True, db_column='Service_Unit_Rate', blank=True)
+ class Meta:
+ db_table = u'master_service'
+
+class Supplier(models.Model):
+ supplier_id = models.IntegerField(primary_key=True, db_column='Supplier_Id')
+ supplier_name = models.CharField(max_length=450, db_column='Supplier_Name', blank=True)
+ supplier_address = models.CharField(max_length=600, db_column='Supplier_Address', blank=True)
+ lang_id = models.IntegerField(null=True, db_column='Lang_Id', blank=True)
+ supplier_postal_code = models.CharField(max_length=75, db_column='Supplier_Postal_Code', blank=True)
+ supplier_city = models.CharField(max_length=300, db_column='Supplier_City', blank=True)
+ supplier_country = models.CharField(max_length=300, db_column='Supplier_Country', blank=True)
+ supplier_contact = models.CharField(max_length=300, db_column='Supplier_Contact', blank=True)
+ supplier_phone_no = models.CharField(max_length=75, db_column='Supplier_Phone_No', blank=True)
+ supplier_fax = models.CharField(max_length=75, db_column='Supplier_Fax', blank=True)
+ supplier_email = models.CharField(max_length=150, db_column='Supplier_Email', blank=True)
+ supplier_active = models.CharField(max_length=12, db_column='Supplier_Active', blank=True)
+ supplier_profile = models.TextField(db_column='Supplier_Profile', blank=True)
+ supplier_login = models.CharField(max_length=150, db_column='Supplier_Login')
+ supplier_duns = models.CharField(max_length=150, db_column='Supplier_DUNS')
+ supplier_type = models.CharField(max_length=150, db_column='Supplier_Type')
+ supplier_website = models.CharField(max_length=150, db_column='Supplier_Website')
+ supplier_status = models.CharField(max_length=18, db_column='Supplier_Status')
+ supplier_reg_status = models.CharField(max_length=18, db_column='Supplier_Reg_Status')
+ buyer_id = models.IntegerField(null=True, db_column='Buyer_Id', blank=True)
+ class Meta:
+ db_table = u'master_supplier'
+
+class Unit(models.Model):
+ buyer_supplier_id = models.IntegerField(db_column='Buyer_Supplier_Id')
+ unit_id = models.IntegerField(db_column='Unit_Id')
+ unit_name = models.CharField(max_length=300, db_column='Unit_Name')
+ unit_desc = models.CharField(max_length=1500, db_column='Unit_Desc')
+ unit_mode = models.CharField(max_length=15, db_column='Unit_Mode')
+ class Meta:
+ db_table = u'master_unit'
+
+class User(models.Model):
+ buyer_supplier_id = models.IntegerField(null=True, db_column='Buyer_Supplier_Id', blank=True)
+ user_id = models.IntegerField(primary_key=True, db_column='User_Id')
+ user_fname = models.CharField(max_length=150, db_column='User_FName', blank=True)
+ user_lname = models.CharField(max_length=150, db_column='User_LName', blank=True)
+ user_title = models.CharField(max_length=60, db_column='User_Title', blank=True)
+ user_login = models.CharField(max_length=75, db_column='User_Login', blank=True)
+ user_pwd = models.CharField(max_length=75, db_column='User_Pwd', blank=True)
+ lang_id = models.IntegerField(null=True, db_column='Lang_Id', blank=True)
+ user_email = models.CharField(max_length=150, db_column='User_Email', blank=True)
+ user_phone_no = models.CharField(max_length=75, db_column='User_Phone_No', blank=True)
+ user_delivery_address = models.CharField(max_length=450, db_column='User_Delivery_Address', blank=True)
+ user_bill_address = models.CharField(max_length=450, db_column='User_Bill_Address', blank=True)
+ user_status = models.CharField(max_length=30, db_column='User_Status', blank=True)
+ user_mode = models.CharField(max_length=15, db_column='User_Mode', blank=True)
+ user_admin = models.CharField(max_length=15, db_column='User_Admin', blank=True)
+ user_unit = models.IntegerField(null=True, db_column='User_Unit', blank=True)
+ user_location = models.IntegerField(null=True, db_column='User_Location', blank=True)
+ class Meta:
+ db_table = u'master_user'
+
+class ModuleActivation(models.Model):
+ buyer_supplier_id = models.IntegerField(unique=True, db_column='Buyer_Supplier_Id')
+ module_id = models.IntegerField(unique=True, db_column='Module_Id')
+ module_active = models.CharField(max_length=15, db_column='Module_Active', blank=True)
+ class Meta:
+ db_table = u'module_activation'
+
+class PoDetails(models.Model):
+ po_id = models.IntegerField(null=True, db_column='PO_Id', blank=True)
+ article_sr_no = models.IntegerField(null=True, db_column='Article_Sr_No', blank=True)
+ article_id = models.IntegerField(null=True, db_column='Article_Id', blank=True)
+ article_code = models.CharField(max_length=150, db_column='Article_Code', blank=True)
+ article_description = models.TextField(db_column='Article_Description', blank=True)
+ article_qty = models.FloatField(null=True, db_column='Article_Qty', blank=True)
+ article_uom = models.CharField(max_length=150, db_column='Article_UOM', blank=True)
+ article_unit_price = models.FloatField(null=True, db_column='Article_Unit_Price', blank=True)
+ article_line_total = models.FloatField(null=True, db_column='Article_Line_Total', blank=True)
+ cost_id = models.IntegerField(null