changed json renderer to allow proper encoding uuid and decimal.

updated the database.
added sql server to sqlite converter and change scripts.
removed code from batch.
journal/payment/receipt/purchase should be working fully.
updated bootstrap to 2.1.0
removed rootscope to add intital data to the controller via global variables.
cannot update the environment because distribute on windows does not update on virtualenv.
This commit is contained in:
unknown
2012-08-28 13:19:21 +05:30
parent e580e6d2da
commit f5e47ef3ac
37 changed files with 3171 additions and 2159 deletions

BIN
Conversion/Converter.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Converter.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<log4net>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value="Logs/converter.log"/>
<appendToFile value="false"/>
<maximumFileSize value="1000KB"/>
<maxSizeRollBackups value="4"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%5level %date (%file:%line) - %message%newline"/>
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="RollingFile"/>
</root>
</log4net>
<applicationSettings>
<Converter.Properties.Settings>
<setting name="SQLServerAddress" serializeAs="String">
<value />
</setting>
<setting name="DatabasePath" serializeAs="String">
<value />
</setting>
</Converter.Properties.Settings>
</applicationSettings>
</configuration>

Binary file not shown.

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Converter.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<log4net>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value="Logs/converter.log"/>
<appendToFile value="false"/>
<maximumFileSize value="1000KB"/>
<maxSizeRollBackups value="4"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%5level %date (%file:%line) - %message%newline"/>
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="RollingFile"/>
</root>
</log4net>
<applicationSettings>
<Converter.Properties.Settings>
<setting name="SQLServerAddress" serializeAs="String">
<value />
</setting>
<setting name="DatabasePath" serializeAs="String">
<value />
</setting>
</Converter.Properties.Settings>
</applicationSettings>
</configuration>

BIN
Conversion/DbAccess.dll Normal file

Binary file not shown.

View File

10
Conversion/SqliteDB.txt Normal file
View File

@ -0,0 +1,10 @@
UPDATE entities_vouchers SET date = date || ".000000", lasteditdate = lasteditdate || ".000000", creationdate = creationdate || ".000000";
UPDATE entities_attendances SET date = date || ".000000", creationdate = creationdate || ".000000";
ALTER TABLE "Entities_Ledgers" ADD COLUMN "ledger_type" nvarchar(50) NOT NULL DEFAULT "";
UPDATE "Entities_Ledgers" SET ledger_type = 'employees' where type = 10;
ALTER TABLE "main"."Entities_Batches" RENAME TO "Entities_Batches_old";
CREATE TABLE "main"."Entities_Batches" ("BatchID" guid NOT NULL ,"Name" nvarchar(50) NOT NULL ,"ProductID" guid,"QuantityRemaining" numeric NOT NULL ,"Rate" numeric NOT NULL ,"Tax" numeric NOT NULL ,"Discount" numeric NOT NULL );
INSERT INTO "main"."Entities_Batches" SELECT "BatchID","Name","ProductID","QuantityRemaining","Rate","Tax","Discount" FROM "main"."Entities_Batches_old";
DROP TABLE "main"."Entities_Batches_old";

Binary file not shown.

BIN
Conversion/log4net.dll Normal file

Binary file not shown.