Stripe customer info are linked to thirdparty too on payment for member
module.
This commit is contained in:
parent
e51eb4ae1c
commit
ff0ad94035
@ -867,7 +867,7 @@ if ($source == 'order')
|
||||
{
|
||||
print '<!-- Shipping address not complete, so we don t use it -->'."\n";
|
||||
}
|
||||
print '<input type="hidden" name="thirdparty_id" value="'.$order->thirdparty->id.'">'."\n";
|
||||
if (is_object($order->thirdparty)) print '<input type="hidden" name="thirdparty_id" value="'.$order->thirdparty->id.'">'."\n";
|
||||
print '<input type="hidden" name="email" value="'.$order->thirdparty->email.'">'."\n";
|
||||
print '<input type="hidden" name="vatnumber" value="'.$order->thirdparty->tva_intra.'">'."\n";
|
||||
$labeldesc=$langs->trans("Order").' '.$order->ref;
|
||||
@ -1002,7 +1002,7 @@ if ($source == 'invoice')
|
||||
{
|
||||
print '<!-- Shipping address not complete, so we don t use it -->'."\n";
|
||||
}
|
||||
print '<input type="hidden" name="thirdparty_id" value="'.$invoice->thirdparty->id.'">'."\n";
|
||||
if (is_object($invoice->thirdparty)) print '<input type="hidden" name="thirdparty_id" value="'.$invoice->thirdparty->id.'">'."\n";
|
||||
print '<input type="hidden" name="email" value="'.$invoice->thirdparty->email.'">'."\n";
|
||||
print '<input type="hidden" name="vatnumber" value="'.$invoice->thirdparty->tva_intra.'">'."\n";
|
||||
$labeldesc=$langs->trans("Invoice").' '.$invoice->ref;
|
||||
@ -1210,7 +1210,7 @@ if ($source == 'contractline')
|
||||
{
|
||||
print '<!-- Shipping address not complete, so we don t use it -->'."\n";
|
||||
}
|
||||
print '<input type="hidden" name="thirdparty_id" value="'.$contract->thirdparty->id.'">'."\n";
|
||||
if (is_object($contract->thirdparty)) print '<input type="hidden" name="thirdparty_id" value="'.$contract->thirdparty->id.'">'."\n";
|
||||
print '<input type="hidden" name="email" value="'.$contract->thirdparty->email.'">'."\n";
|
||||
print '<input type="hidden" name="vatnumber" value="'.$contract->thirdparty->tva_intra.'">'."\n";
|
||||
$labeldesc=$langs->trans("Contract").' '.$contract->ref;
|
||||
@ -1236,8 +1236,8 @@ if ($source == 'membersubscription')
|
||||
}
|
||||
else
|
||||
{
|
||||
$member->fetch_thirdparty();
|
||||
$object = $member;
|
||||
|
||||
$subscription=new Subscription($db);
|
||||
}
|
||||
|
||||
@ -1374,6 +1374,7 @@ if ($source == 'membersubscription')
|
||||
{
|
||||
print '<!-- Shipping address not complete, so we don t use it -->'."\n";
|
||||
}
|
||||
if (is_object($member->thirdparty)) print '<input type="hidden" name="thirdparty_id" value="'.$member->thirdparty->id.'">'."\n";
|
||||
print '<input type="hidden" name="email" value="'.$member->email.'">'."\n";
|
||||
$labeldesc = $langs->trans("PaymentSubscription");
|
||||
if (GETPOST('desc','alpha')) $labeldesc=GETPOST('desc','alpha');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user