Skip to content

Fix fee parsing for Centralnic Fee and standard Fee#471

Open
paullojorgge wants to merge 6 commits intothedarkwinter:masterfrom
paullojorgge:crrDecimalError
Open

Fix fee parsing for Centralnic Fee and standard Fee#471
paullojorgge wants to merge 6 commits intothedarkwinter:masterfrom
paullojorgge:crrDecimalError

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

Comments