Field when adding/editing a raffle/giveaway:
$return['price'] = new \IPS\nexus\Form\Money( 'raffle_price', $item ? json_decode( $item->price, TRUE ) : array(), $priceRequired, array(), function( $val )......
$item->price is the cost of the raffle. And it saves same way:
/* Ticket Price */
if( \IPS\Request::i()->do == 'submit' AND isset( $values['raffle_price'] ) )
{
$this->price = json_encode( $values['raffle_price'] );
}
So there's no way to, somehow, it shows the user account credit there.
Everything related to account credit only appears in the Commerce extension tied to a setting to allow pay for tickets using Account Credit:
/**
* @brief Can use account credit?
*/
public static $canUseAccountCredit = FALSE;
/**
* @brief Can use account credit: according to the app setting
*/
public function __construct( $memberOrGroup=NULL, \IPS\nexus\Money $price )
{
parent::__construct( $memberOrGroup, $price );
static::$canUseAccountCredit = \IPS\Settings::i()->raffle_use_account_credit ? TRUE : FALSE;
}
So let me know if you know how to reproduce because it seems impossible to me.