Errors updated. Do not use old build.

This commit is contained in:
unknown 2011-03-12 17:12:02 +05:30
parent aea41a9d24
commit 7229ebc0bb
44 changed files with 10 additions and 8 deletions

View File

@ -94,7 +94,7 @@
<Project>{59A6F8B8-12EE-4D8E-BEBB-61CB665A2C17}</Project> <Project>{59A6F8B8-12EE-4D8E-BEBB-61CB665A2C17}</Project>
<Name>Tanshu.Accounts.Contracts</Name> <Name>Tanshu.Accounts.Contracts</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\Tanshu.Accounts.SqlDAO\Tanshu.Accounts.Repository.csproj"> <ProjectReference Include="..\Tanshu.Accounts.Repository\Tanshu.Accounts.Repository.csproj">
<Project>{B755D152-37C3-47D6-A721-3AD17A8EF316}</Project> <Project>{B755D152-37C3-47D6-A721-3AD17A8EF316}</Project>
<Name>Tanshu.Accounts.Repository</Name> <Name>Tanshu.Accounts.Repository</Name>
</ProjectReference> </ProjectReference>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<connectionStrings> <connectionStrings>
<add name="FluentCon" connectionString="Server=.;Initial Catalog=Pets;User ID=sa;Password=123456" /> <add name="FluentCon" connectionString="Server=frodo;Initial Catalog=Pets;User ID=sa;Password=123456" />
</connectionStrings> </connectionStrings>
<appSettings> <appSettings>
<add key ="Location" value ="Office"/> <add key ="Location" value ="Office"/>

View File

@ -373,7 +373,7 @@
<Project>{90C9D02C-91AF-4529-86BE-28320332DDB5}</Project> <Project>{90C9D02C-91AF-4529-86BE-28320332DDB5}</Project>
<Name>Tanshu.Accounts.Print</Name> <Name>Tanshu.Accounts.Print</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\Tanshu.Accounts.SqlDAO\Tanshu.Accounts.Repository.csproj"> <ProjectReference Include="..\Tanshu.Accounts.Repository\Tanshu.Accounts.Repository.csproj">
<Project>{B755D152-37C3-47D6-A721-3AD17A8EF316}</Project> <Project>{B755D152-37C3-47D6-A721-3AD17A8EF316}</Project>
<Name>Tanshu.Accounts.Repository</Name> <Name>Tanshu.Accounts.Repository</Name>
</ProjectReference> </ProjectReference>

View File

@ -63,7 +63,7 @@
<Project>{3E28AAA5-A493-4446-8188-C615245943B4}</Project> <Project>{3E28AAA5-A493-4446-8188-C615245943B4}</Project>
<Name>Tanshu.Accounts.Helpers</Name> <Name>Tanshu.Accounts.Helpers</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\Tanshu.Accounts.SqlDAO\Tanshu.Accounts.Repository.csproj"> <ProjectReference Include="..\Tanshu.Accounts.Repository\Tanshu.Accounts.Repository.csproj">
<Project>{B755D152-37C3-47D6-A721-3AD17A8EF316}</Project> <Project>{B755D152-37C3-47D6-A721-3AD17A8EF316}</Project>
<Name>Tanshu.Accounts.Repository</Name> <Name>Tanshu.Accounts.Repository</Name>
</ProjectReference> </ProjectReference>

View File

@ -216,8 +216,8 @@ namespace Tanshu.Accounts.Print
#else #else
try try
{ {
Text += printer.CutCode; text += printer.CutCode;
if (!RawPrinterHelper.PrintString(printer.Printer, DocumentName, Text, new[] { ';' })) if (!RawPrinterHelper.PrintString(printer.Printer, documentName, text, new[] { ';' }))
{ {
GC.Collect(); GC.Collect();
MessageBox.Show("Error in PrintRAW Function. Please Report immediately"); MessageBox.Show("Error in PrintRAW Function. Please Report immediately");

View File

@ -82,12 +82,14 @@ namespace Tanshu.Accounts.Repository
voucher.Settlements.Add(new VoucherSettlement() { Amount = amount, Settled = SettleOption.Amount }); voucher.Settlements.Add(new VoucherSettlement() { Amount = amount, Settled = SettleOption.Amount });
else else
voucher.Settlements.Single(x => x.Settled == SettleOption.Amount).Amount = amount; voucher.Settlements.Single(x => x.Settled == SettleOption.Amount).Amount = amount;
var roundoff = Math.Round(amount) - amount; var roundoff = Math.Round(amount) - amount;
if (voucher.Settlements.Count(x => x.Settled == SettleOption.RoundOff) == 0) if (voucher.Settlements.Count(x => x.Settled == SettleOption.RoundOff) == 0)
voucher.Settlements.Add(new VoucherSettlement() { Amount = roundoff, Settled = SettleOption.RoundOff }); voucher.Settlements.Add(new VoucherSettlement() { Amount = roundoff, Settled = SettleOption.RoundOff });
else else
voucher.Settlements.Single(x => x.Settled == SettleOption.RoundOff).Amount = roundoff; voucher.Settlements.Single(x => x.Settled == SettleOption.RoundOff).Amount = roundoff;
var balance = voucher.Settlements.Where(x => x.Settled != SettleOption.Unsettled).Sum(x => x.Amount);
var balance = voucher.Settlements.Where(x => x.Settled != SettleOption.Unsettled).Sum(x => x.Amount) * -1;
if (voucher.Settlements.Count(x => x.Settled == SettleOption.Unsettled) == 0) if (voucher.Settlements.Count(x => x.Settled == SettleOption.Unsettled) == 0)
voucher.Settlements.Add(new VoucherSettlement() { Amount = balance, Settled = SettleOption.Unsettled }); voucher.Settlements.Add(new VoucherSettlement() { Amount = balance, Settled = SettleOption.Unsettled });
else if (balance == 0) else if (balance == 0)

View File

@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Helpers", "
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Print", "Tanshu.Accounts.Print\Tanshu.Accounts.Print.csproj", "{90C9D02C-91AF-4529-86BE-28320332DDB5}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Print", "Tanshu.Accounts.Print\Tanshu.Accounts.Print.csproj", "{90C9D02C-91AF-4529-86BE-28320332DDB5}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Repository", "Tanshu.Accounts.SqlDAO\Tanshu.Accounts.Repository.csproj", "{B755D152-37C3-47D6-A721-3AD17A8EF316}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Repository", "Tanshu.Accounts.Repository\Tanshu.Accounts.Repository.csproj", "{B755D152-37C3-47D6-A721-3AD17A8EF316}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution