Jump to content
thirty bees forum

Possible bug: Amount not updated for BO updates


Recommended Posts

Posted

I am quite sure that, it is not a bug, but bad design. The ps was designed, that every order is paid during checkout. As well they are kind of expecting, that an order doesn't get changed.

I know, that my answer isn't really helpful. I am voting for years, for a better way of handling this. But it's very hard to achieve. The concequences are hard to forseen. For the payment case, I believe that a payment module should call a hook, so the amount get's corrected...

Posted

Thanks wakabayashi.

From a technical point of view, it seems a straight forward update of the order payment.

Did you mean maintaining the order total history when you think of consequences?

Count me in if we need to analyze to fix this.

Posted

IMO you need to integreate APIs/Hooks for payment modules. If you edit an order, you can not just assume, that the paid value has changed. In practice there are multiple cases. Sometimes there happens a refund, sometimes the order hasn't been paid at all at this point.

  • Like 1
Posted

My bad. Posted to wrong section.

Intention was to reply to thread where missing add product buttons were.

But regarding not updatedinvoice if product added to order, i've never had an issue and i do change a lot of orders ehen cudtomer decides they wanted some more products.

Posted (edited)

Thats totaly normal behaviour

As if added extra items you also have to add extra payment for it.

So once extra is paid, you enter received ammount into payment field.

Edited by toplakd
Posted

The issue is that the invoice shows the original amount on the left in the payment information box while the bottom total would be the updated amount. Especially a problem with COD if amount is collected based on the invoice.

Posted
25 minutes ago, toplakd said:

Thats totaly normal behaviour

As if added extra items you also have to add extra payment for it.

So once extra is paid, you enter received ammount into payment field.

And what would you do, if you remove some products?

Posted

Hmm.

That's true.

In current state I get following 500 exception If I add negative value of payment (like Payment refound -5€)

Decoded exception

Property Order->total_paid_real is not valid

in file classes/ObjectModel.php at line 1058
Posted

Just checked back with core updater.

How I tested.
Changed status to payment accepted.

Added 10€ discount

Added negative payment -10€ as refound

 

Negative value in payment last working state was on 1.0.1 version and PS 1.6.24.

From 1.0.2 and above 500 error is throwing out

 

Posted

Ah I finally understand how you handle it. Yeah this makes actually sense. 😊

Bad that it's not working as expected 😅 

In my use case the problemlays a bit deeper, as my orders often aren't paid when the order gets placed... And you can not add an order with payment amount=0

Posted (edited)

Fix is now already included in latest bleeding edge (no branch) and running live.

Thank you datakick for quick fix.

Edited by toplakd
Posted

Indeed, the collaboration on TB is pleasing.

I have updated my prod shop to bleeding edge and will test this over the next few days.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...