{"id":28895746,"url":"https://github.com/sheape/vat_ph","last_synced_at":"2025-12-31T14:38:45.994Z","repository":{"id":300258209,"uuid":"1005662355","full_name":"Sheape/vat_ph","owner":"Sheape","description":"Rust library that calculates Value Added Tax (VAT) in the Philippines. ","archived":false,"fork":false,"pushed_at":"2025-06-20T17:58:07.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T18:16:16.522Z","etag":null,"topics":["finance","ph","rust","tax","vat"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Sheape.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}},"created_at":"2025-06-20T15:38:32.000Z","updated_at":"2025-06-20T18:05:12.000Z","dependencies_parsed_at":"2025-06-20T18:16:20.395Z","dependency_job_id":"e724f7e7-1c6a-448c-af2a-575d6b00d928","html_url":"https://github.com/Sheape/vat_ph","commit_stats":null,"previous_names":["sheape/vat_ph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sheape/vat_ph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheape%2Fvat_ph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheape%2Fvat_ph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheape%2Fvat_ph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheape%2Fvat_ph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sheape","download_url":"https://codeload.github.com/Sheape/vat_ph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheape%2Fvat_ph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265820051,"owners_count":23833557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["finance","ph","rust","tax","vat"],"created_at":"2025-06-21T05:08:31.225Z","updated_at":"2025-12-31T14:38:45.969Z","avatar_url":"https://github.com/Sheape.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vat_ph\n[![License](https://img.shields.io/badge/license-MIT-brightgreen)](https://github.com/Sheape/vat_ph/blob/main/LICENSE)\n\n`vat_ph` is a library for computing Value Added Tax (VAT) in the Philippines.\nThe computed VAT follows the guidelines set by the Bureau of Internal Revenue (BIR) under Republic Act 12023.\nThe computation uses [`rust_decimal`](https://docs.rs/rust_decimal/latest/rust_decimal/) crate to ensure precise\nfinancial calculations.\n\n## Usage\nUsing `compute_vat()`, you can compute the VAT given net, gross, or VAT. The result will be a struct containing all of\nthe three mentioned.\n```rust\nuse rust_decimal::dec;\nuse vat_ph::compute_vat;\nuse vat_ph::VatInput;\n\nlet result = compute_vat(VatInput::Net(dec!(1000.0)), None);\nassert!(result.is_ok());\n\nlet vat = result.unwrap();\nassert_eq!(vat.net, dec!(1000.0));\nassert_eq!(vat.vat, dec!(120.0));\nassert_eq!(vat.gross, dec!(1120.0));\n```\n\n## Contribution\nIn order to contribute to this project, you can follow these steps:\n1. Clone this repository.\n2. Install the [rust toolchain](https://www.rust-lang.org/tools/install) version `1.86.0`.\n3. Build the project with `cargo build`.\n4. Run test using `cargo test`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheape%2Fvat_ph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheape%2Fvat_ph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheape%2Fvat_ph/lists"}