/tg/ Station 13 - Modules - TypesVar Details

coupon_code

datum used by the Coupon Master PDA app to generate coupon items redeemed by a bank account.

Vars

associated_accountReference to the associated bank account, since we need to clear refs on deletion.
discountThe discount of the pack, on a 0 to 1 range.
discounted_packThe pack that'll receive the discount
expires_inIf set, copies of the coupon code will delete itself after a while if not printed. The ones SSmodular_computer.discount_coupons stay intact.
printedHas the coupon been printed. Dictates in which section it's shown, and that it cannot be printed again.
timeridThe timerid for deletion if expires_in is set.

Var Details

associated_account

Reference to the associated bank account, since we need to clear refs on deletion.

discount

The discount of the pack, on a 0 to 1 range.

discounted_pack

The pack that'll receive the discount

expires_in

If set, copies of the coupon code will delete itself after a while if not printed. The ones SSmodular_computer.discount_coupons stay intact.

printed

Has the coupon been printed. Dictates in which section it's shown, and that it cannot be printed again.

timerid

The timerid for deletion if expires_in is set.