Fix: Update settlements was broken and would remove the Amount and Roundoff settlements

Chore: SalesAnalysis report refactored
This commit is contained in:
tanshu committed 2014-11-11 15:53:54 +05:30
1 parent c52f382ec2
commit e3f92da5ad
13 files changed
+394 -352

No files matched your search

@@ -401,7 +401,6 @@ namespace Tanshu.Accounts.PointOfSale
return;
IDictionary<SettleOption, decimal> options;
var amount = -1 * _billInfo.Kots.Sum(x => x.Inventories.Sum(y => y.Amount));
VoucherSettlementBI.UpdateSettlements(_billInfo.Settlements, amount);
using (var frm = new SettleChoicesForm(Math.Round(amount) * -1, _billInfo.VoucherType))
{
frm.ShowDialog();