Product:
Search Type:

How to generate a renewal order?

Article ID: 728 
Last Review: Jul,19 2007
APPLIES TO:
  • HSPcomplete 3.2.x

RESOLUTION

use HSPC::Console;
use HSPC::MT::BillingFactory;
my $subscr = HSPC::MT::BillingFactory->subscr_find(id=>XXX) || die "Subscription #XXX was not found";
my $new_order = $subscr->create_renewal_order() || die "Could not create order";
$new_order->save();


Where XXX - subscription ID.


Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields