I'm creating an addin form for the pos that will need to be able to debit a customers account! I seem to be able to credit the account in the session but for some reason it does not persist in the database as it doesn;t show up on the Manager screen! Any help would be appreciated!
Code Extract:
Session.Transaction.SetCustomer(Customerid, false); MessageBox.Show(session.Transaction.Customer.AccountBalance.ToString()); session.Transaction.SetTransactionType(QSRules.transactiontypeEnum.transactiontypeAccountAdjustment); session.InitializeTransaction(); session.Transaction.Customer.AccountReceivables.AddDebitCredit(decimal.Parse("500"), decimal.Parse("1000")); int a = session.Cashier.ID; object date DateTime.Now as object; bool ok = false; session.Transaction.Post(ref a, ref date, ref ok); MessageBox.Show(session.Transaction.Customer.AccountBalance.ToString());