Example #1
0
        private async void LoadSupplements()
        {
            if (SelectedPayroll != null)
            {
                if (SelectedPayroll.Oib == null)
                {
                    Supplements = null;
                }
                else
                {
                    var suppl = await _payrollSupplementEmployeeEndpoint.GetByOib(SelectedPayroll.Oib);

                    Supplements      = new ObservableCollection <PayrollSupplementEmployeeModel>(suppl);
                    SumOfSupplements = Supplements.Sum(x => x.Iznos);
                }
            }
        }
Example #2
0
        private async void LoadEmployeeSupplements()
        {
            var sup = await _payrollSupplementEmployeeEndpoint.GetByOib(EmployeeOib);

            EmployeeSupplements = new ObservableCollection <PayrollSupplementEmployeeModel>(sup);
        }