Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BP-3478-Payment-fee-is-not-working-for-BNPL-methods-Billink-Riverty-Klarna #148

Conversation

vegimcarkaxhija
Copy link
Contributor

No description provided.

@vegimcarkaxhija vegimcarkaxhija requested a review from harli91 March 19, 2024 09:59
{ text: t('3 = Zero rate'), value: '3' },
{ text: t('4 = Null rate'), value: '4' },
{ text: t('5 = Middle rate'), value: '5' },
{ text: t('21%'), value: '21' },
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you have to apply static VAT values for billink,?

Comment on lines 355 to 360
$wrappingTaxRulesGroupId = (int)Configuration::get('PS_GIFT_WRAPPING_TAX_RULES_GROUP');
// Get the VAT Rate for the Tax Rule Group
$address = new Address($this->cart->id_address_delivery);
$tax_manager = TaxManagerFactory::getManager($address, $wrappingTaxRulesGroupId);
$tax_calculator = $tax_manager->getTaxCalculator();
$wrappingVatRate = $tax_calculator->getTotalRate();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what these lines do, can you explain them to me? PS_GIFT_WRAPPING_TAX_RULES_GROUP by the name seems to be related to gift wrapping not products, not sure if this is correct

@vegimcarkaxhija vegimcarkaxhija merged commit 0c463eb into develop Mar 19, 2024
1 check passed
@vegimcarkaxhija vegimcarkaxhija deleted the BP-3478-Payment-fee-is-not-working-for-BNPL-methods-Billink-Riverty-Klarna branch March 19, 2024 12:17
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