private async Task CompleteCashDrawAsync() { var registerNumber = await new Helper().GetRegisterNumber(); var completeCashDrawModel = new CompleteCashDraw { Amount = _totalCurrencyValue, Bills = ConvertUIBillToEnitity(), Coins = ConvertUICoinToEnitity(), DrawReason = CacheBusinessLogic.UseReasonForCashDraw ? _reasonCode : string.Empty, RegisterNumber = registerNumber, TillNumber = CacheBusinessLogic.TillNumber }; var response = await _cashBusinessLogic.CompleteCashDraw(completeCashDrawModel); // Opening the cash drawer when amount is greater than zero if (_totalCurrencyValue > 0) { base.OpenCashDrawer(); } if (IsPrintReceiptOn) { await PerformPrint(response); } NavigateService.Instance.NavigateToHome(); }
public CompleteCashDrawSerializeAction(ICashRestClient cashRestClient, CompleteCashDraw completeCashDraw) : base("CompleteCashDraw") { _completeCashDraw = completeCashDraw; _cashRestClient = cashRestClient; }
public async Task <Report> CompleteCashDraw(CompleteCashDraw completeCashDraw) { var action = new CompleteCashDrawSerializeAction(_restClient, completeCashDraw); await PerformTask(action); return((Report)action.ResponseValue); }
public async Task <Report> CompleteCashDraw(CompleteCashDraw completeCashDraw) { var response = await _seralizeManager.CompleteCashDraw(completeCashDraw); await _reportsBusinessLogic.SaveReport(response); return(response); }