Tuesday, May 14, 2024
2 changes · saas-17.1
Resolved issues and error corrections
This fix improves Indian GST report calculations so IGST is excluded for intra-state transactions and special economic zone transactions are handled more accurately. Businesses get more reliable tax reporting and reduced risk of incorrect GST treatment.
Original PR description
Before this PR: - IGST is not applicable for intra-state transactions. - Transactions within special economic zones were not properly handled. After this PR: - Enhanced condition to exclude IGST for intra-state transactions. - Improved handling of transactions within special economic zones for accurate GST treatment.
This fix prevents errors when printing Indian payroll yearly salary reports. It also removes duplicate net salary lines, helping payroll teams get accurate employee salary summaries without interruption.
Original PR description
**Steps:** - Install indian payroll(l10n_in_hr_payroll) - Create an employee. - Create contract on that employee. - Generate payslip. - Go to employee app > Report . - Print the `Yearly Salary by…
**Steps:** - Install indian payroll(l10n_in_hr_payroll) - Create an employee. - Create contract on that employee. - Generate payslip. - Go to employee app > Report . - Print the `Yearly Salary by Head` or `Yearly Salary by Employee`. **Description of the issue/feature this PR addresses:** In the payroll module, - when we print employee salary report it will give traceback. - The `yearly salary by employee` report was generating duplicate lines for the net salary category. **Cause** printing the employee salary report resulted in a traceback error. This was caused by an update (reference: https://github.com/odoo/enterprise/pull/53816) that made category_id in the payslip_line module unstored. As a result, the SQL query couldn't find the category_id and failed. **Fix:** This PR fix issues by modifying the SQL query used in the reports. Instead of relying on the unstored category_id from payslip_line, the query now retrieves the category ID directly from the hr_salary_rule_category table. task-3791974