Code Monkey home page Code Monkey logo

Comments (6)

tig-dennisvanderhammen avatar tig-dennisvanderhammen commented on August 26, 2024

Hi @edwinknol-mediact,

I'm assuming that you are trying to confirm a shipment with insurance (extra cover).

In the database, there is a field named "extra_cover_amount" in the tig_postnl_shipment. Could you tell me what the value of this of this field in the shipment you are trying to confirm?

from postnl-magento1.

edwinknol-mediact avatar edwinknol-mediact commented on August 26, 2024

Hi @tig-dennisvanderhammen

I've checked the shipment in the database. The value of "extra_cover_amount" is NULL. When is set a value by hand in this field, i'm able to print the shipping label.

from postnl-magento1.

tig-dennisvanderhammen avatar tig-dennisvanderhammen commented on August 26, 2024

@edwinknol-mediact, The servers of PostNL don't allow a value of 0 or lower to be insured. We recently did change the behaviour how the extra cover amount works.

In the past we would take the shipmentBaseGrandTotal and ceiled it to the nearest 500 (for example, when the total is 1150 euro, the extra cover amount would be 1500) with the minimum being 500. A change in the PostNL service allows this to be any number above zero. Now we simply return the shipmentBaseGrandTotal.

If you're certain the shipmentBaseGrandTotal is also above 0, you can check the code based around the method getDefaultExtraCoverAmount() in TIG/PostNL/Model/Core/Shipment.php.

If you can't figure out a solution, could you send us an e-mail at [email protected] with access to a staging environment where you can reproduce this issue?

from postnl-magento1.

tig-jaspersmits avatar tig-jaspersmits commented on August 26, 2024

Hi @edwinknol-mediact ,

I'm not 100% sure, but it seems you didn't mail us about this issue. Correct?
Did you figure out a solution or do you still want us to take a look at it?

Kind regards,

Jasper
TIG

from postnl-magento1.

mediact-pipelines avatar mediact-pipelines commented on August 26, 2024

Hi @tig-jaspersmits

Sorry for not replying anymore. We've fixed the issue, so this bugreport can be set closed.

Edwin

from postnl-magento1.

tig-jaspersmits avatar tig-jaspersmits commented on August 26, 2024

Hi Edwin,

No problem! Good to hear that you found a solution.
Hereby i will close this bugreport.

Kind regards,

Jasper
TIG

from postnl-magento1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.