Hello,

thanks. I am now able to do this. One conceptional question: Is this the right 
way to handle partial return deliveries, or
should I implement a new flag for this? Recalculation is one good thing but the 
original order no longer exists aswell as the original invoice in this case. I 
think
this could be a problem with the german rules for shops.

I thought about saving the original invoice pdf in the filesystem, but I think 
this would be a little „hacky“. Maybe it’s better to implement a new flag, 
what do you think is better?

Thanks in advance

Am 03.06.2014 um 12:04 schrieb Marat Bedoev <[email protected]>:

> Hello,
>  
> sabe the order article after canceling it and before recalculating the order:
>  
> $oOrderArticle-> cancelOrderArticle ()
> $oOrderArticle->save()
>  
> Cheers,
> Marat
>  
>  
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von Alexander 
> Schwarz
> Gesendet: Montag, 2. Juni 2014 17:04
> An: [email protected]
> Betreff: [oxid-dev-general] Force recalculation of order
>  
> Hello,
>  
> is there a way to recalculate an order after it is saved? I want to build 
> functionality for partial return deliveries.
>  
> I tried to cancel some orderArticles with
> $oOrderArticle->cancelOrderArticle();
>  
> after I called $oOrder->recalculateOrder()
>  
> and $oOrder->save()
>  
> But at the end, I have the same total sums. At least the canceled order 
> article is not showing up in the invoice,
> but the calculation is not touched.
>  
> Thanks in advance for any help on this.
>  
> Best regards

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to