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>
<Name>Tanshu.Accounts.Contracts</Name>
</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>
<Name>Tanshu.Accounts.Repository</Name>
</ProjectReference>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<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>
<appSettings>
<add key ="Location" value ="Office"/>

View File

@ -373,7 +373,7 @@
<Project>{90C9D02C-91AF-4529-86BE-28320332DDB5}</Project>
<Name>Tanshu.Accounts.Print</Name>
</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>
<Name>Tanshu.Accounts.Repository</Name>
</ProjectReference>

View File

@ -63,7 +63,7 @@
<Project>{3E28AAA5-A493-4446-8188-C615245943B4}</Project>
<Name>Tanshu.Accounts.Helpers</Name>
</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>
<Name>Tanshu.Accounts.Repository</Name>
</ProjectReference>

View File

@ -216,8 +216,8 @@ namespace Tanshu.Accounts.Print
#else
try
{
Text += printer.CutCode;
if (!RawPrinterHelper.PrintString(printer.Printer, DocumentName, Text, new[] { ';' }))
text += printer.CutCode;
if (!RawPrinterHelper.PrintString(printer.Printer, documentName, text, new[] { ';' }))
{
GC.Collect();
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 });
else
voucher.Settlements.Single(x => x.Settled == SettleOption.Amount).Amount = amount;
var roundoff = Math.Round(amount) - amount;
if (voucher.Settlements.Count(x => x.Settled == SettleOption.RoundOff) == 0)
voucher.Settlements.Add(new VoucherSettlement() { Amount = roundoff, Settled = SettleOption.RoundOff });
else
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)
voucher.Settlements.Add(new VoucherSettlement() { Amount = balance, Settled = SettleOption.Unsettled });
else if (balance == 0)

View File

@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Helpers", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tanshu.Accounts.Print", "Tanshu.Accounts.Print\Tanshu.Accounts.Print.csproj", "{90C9D02C-91AF-4529-86BE-28320332DDB5}"
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
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution