private void UpdateClientInReceipt(IdReceipt idReceipt, Client parClient) { var RH = GetReceiptHead(idReceipt); RH.CodeClient = parClient.CodeClient; RH.PercentDiscount = parClient.PersentDiscount; db.ReplaceReceipt(RH); if (Global.RecalcPriceOnLine) { db.RecalcPriceAsync(new IdReceiptWares(idReceipt)); } _ = ds.GetBonusAsync(parClient, idReceipt.IdWorkplace); }