• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

CorneliuTusnea
#1 Posted : Thursday, July 19, 2007 8:55:25 AM(UTC)
CorneliuTusnea

Rank: Member

Joined: 8/17/2006(UTC)
Posts: 681

I was just trying to implement a better refund system while also keeping products in the order if I return them for legal and statistical reasons and I can't seem to be able to do this for the following reasons:
1. LineItem has a QuantityReturned which is great as I can store in there the number of returned products.

2. However that value is not used when calculating the total of the order so even if I say I sold one product and it was returned it back to me by setting QtyReturned to 1 the total of the order is the same when it should not be.

3. If I try to set the Qty to zero to mark the product removed from the order the lineitem is removed from the order.



Is there any way to fix this somehow? I badly need to keep this info without removing the product from the order.

Is there any workflow run when I do CalculateOrderTotal or something similar where I could plug in my logic to substract the value of the product somehow?



I think the Qty of a line item should be a readonly property that is calculated as QuantityRequested-QuantityReturned and use QuantityRequested as the value the user has entered and use the calculated Qty to do all the other operations.



A quick answer with some help is very welcome.



Thanks,

Corneliu
http://www.bestgames.com.au
http://www.bestchess.com.au



BV Product Links, Details and Signatures: Improve your customer experience:

http://www.acorns.com.au/projects/bv/quicklink/

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012