Skip to content

Conversation

@bahiirwa
Copy link
Contributor

  • Add VAT to the gross amount to ensure the accounts page in SDK has matching values to the customer portal and invoice.

@bahiirwa bahiirwa changed the title [payments] Add VAT to the gross amount to ensure accounts page in SDK [payments] Add VAT to the gross amount for matching values in the accounts page in SDK Oct 16, 2025
@bahiirwa bahiirwa requested a review from fajardoleo October 16, 2025 12:39
*/
function formatted_gross()
{
$price = round($this->gross + $this->vat, 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bahiirwa Missing spaces, but do we still need round() here? (We're already rounding the value when calling number_format().)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering we do not have a great need for precision like a DB save and only one comparison operation, we can get rid of round().

… has matching values to the customer portal and invoice.
@bahiirwa bahiirwa force-pushed the feature/laurence/update-gross-amount-with-vat branch from 551fe04 to 51f54c2 Compare October 28, 2025 15:55
Copy link
Contributor

@fajardoleo fajardoleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@fajardoleo fajardoleo merged commit 84cc094 into develop Oct 28, 2025
5 checks passed
@fajardoleo fajardoleo deleted the feature/laurence/update-gross-amount-with-vat branch October 30, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants