{"id":50729484,"url":"https://github.com/kta136/salarymanager","last_synced_at":"2026-06-10T07:03:41.973Z","repository":{"id":355794419,"uuid":"1229618393","full_name":"kta136/SalaryManager","owner":"kta136","description":"WPF + .NET 10 + EF Core/SQLite payroll manager. Tracks employees, attendance, advances, and generates payroll PDFs/Excel + ICICI bulk-payment files.","archived":false,"fork":false,"pushed_at":"2026-05-26T13:01:54.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T14:37:11.129Z","etag":null,"topics":["closedxml","dotnet","ef-core","mvvm","payroll","questpdf","sqlite","wpf"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kta136.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T08:14:51.000Z","updated_at":"2026-05-26T13:02:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kta136/SalaryManager","commit_stats":null,"previous_names":["kta136/salarymanager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kta136/SalaryManager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kta136%2FSalaryManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kta136%2FSalaryManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kta136%2FSalaryManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kta136%2FSalaryManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kta136","download_url":"https://codeload.github.com/kta136/SalaryManager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kta136%2FSalaryManager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34140776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["closedxml","dotnet","ef-core","mvvm","payroll","questpdf","sqlite","wpf"],"created_at":"2026-06-10T07:03:41.025Z","updated_at":"2026-06-10T07:03:41.963Z","avatar_url":"https://github.com/kta136.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Salary Manager\n\nA small Windows desktop payroll app for tracking employees, monthly attendance, advance ledgers, and salary disbursement. Built for a single user / single workstation; backed by a local SQLite database.\n\nGenerates monthly payroll PDFs and Excel summaries, plus an ICICI bulk-payment file for salary transfers and per-employee advance ledgers.\n\n## Stack\n\n- **WPF** on **.NET 10** (`net10.0-windows`)\n- **MVVM** via [`CommunityToolkit.Mvvm`](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/)\n- **EF Core 10** + **SQLite** (`Microsoft.EntityFrameworkCore.Sqlite`)\n- **ClosedXML** for Excel I/O\n- **QuestPDF** for PDF rendering (Community license)\n- **CsvHelper** for CSV exports\n- **xUnit** for tests\n\n## Getting started\n\nRequires the **.NET 10 SDK** (or newer). Windows only — the app project targets `net10.0-windows` because it's WPF.\n\n```powershell\n# Clone\ngit clone https://github.com/kta136/SalaryManager.git\ncd SalaryManager\n\n# Restore + build\ndotnet build SalaryManager.slnx\n\n# Run the app\ndotnet run --project src/SalaryManager.App\n\n# Run the tests\ndotnet test SalaryManager.slnx\n```\n\nThe first launch creates `salary.db` in the same folder as the running app and applies all EF migrations automatically. Runtime files stay beside the app: `salary.db`, `settings.json`, SQLite sidecars, and the `Slips\\` folder are not moved to `%LocalAppData%` or any other per-user data directory.\n\n## Project layout\n\n```\nSalaryManager.slnx\n├── src/\n│   ├── SalaryManager.App/         WPF UI: views, viewmodels, services\n│   │   ├── Helpers/               RangeObservableCollection, month options\n│   │   ├── Services/              DialogService, BackupService,\n│   │   │                          ExcelImportService, ExcelExportService,\n│   │   │                          PdfSlipService, DatabaseInitializer\n│   │   ├── ViewModels/            One per tab + Add/Employees dialogs\n│   │   └── Views/                 Matching XAML user controls\n│   └── SalaryManager.Data/        EF Core layer\n│       ├── Entities/              Employee, AttendanceRecord, Advance,\n│       │                          SalaryRevision, PaymentMode\n│       ├── Migrations/            EF migrations (run automatically)\n│       ├── Services/              SalaryCalculator, AdvanceLedger,\n│       │                          AdvanceQueryExtensions\n│       └── Validation/            Employee and payroll validation rules\n└── tests/SalaryManager.Tests/     xUnit tests\n```\n\n## Features\n\n- **Dashboard** — active-employee count, gross monthly payroll, outstanding advances, recent advance and salary-revision activity.\n- **Salary Sheet** — editable per-month attendance grid (days absent, ESIC/PF deductions, advance deduction). Live recalculation per row. Posts deductions back to the advance ledger.\n- **Advances** — per-employee running ledger with searchable employee rail, balance-only filter, and add-entry form.\n- **Reports** — month-bound payroll summary as PDF / Excel / CSV; per-employee advance ledger as PDF / Excel.\n- **Employees** modal — add, toggle active/inactive, change payment mode (Cash / ICICI / OtherBank), import from Excel using flexible header aliases (`BNF_NAME`, `EMPLOYEE_NAME`, `AMOUNT`, `BENE_ACC_NO`, `BENE_IFSC`, `PYMT_MODE`, etc.).\n- **Backup / Restore** — `VACUUM INTO` produces an atomic, consistent SQLite snapshot regardless of journal mode.\n- **ICICI Excel export** — generates the bulk-payment template with `PAB_VENDOR` / `FT` / `NEFT` rows ready to upload.\n\n## Docs\n\n- [Architecture](docs/architecture.md)\n- [Import format](docs/import-format.md)\n- [ICICI export](docs/icici-export.md)\n- [Backup and restore](docs/backup-restore.md)\n\n## Development\n\n```powershell\ndotnet format SalaryManager.slnx --verify-no-changes --verbosity minimal\ndotnet build SalaryManager.slnx --configuration Release\ndotnet test SalaryManager.slnx --configuration Release\n```\n\nFor EF commands, use the data project directly. The design-time context uses a scratch database beside the running assemblies rather than `%LocalAppData%` or the user's live runtime database.\n\n```powershell\ndotnet ef migrations list --project src/SalaryManager.Data\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkta136%2Fsalarymanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkta136%2Fsalarymanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkta136%2Fsalarymanager/lists"}