Skip to content

Conversation

paullojorgge
Copy link
Contributor

No description provided.

$set->{fee} = 0 unless exists $set->{fee};
$set->{fee} += $content->textContent();
$set->{fee} = '0.00' unless exists $set->{fee};
$set->{fee} = sprintf("%.2f", ($set->{'fee'} + $content->textContent())); # wasn't appending x.00 for some reason. Using this way to avoid such problem :p
Copy link
Owner

Choose a reason for hiding this comment

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

Perhaps we could use a perl module to check the numbre of decimal points based on currency?

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.

2 participants