$execute in samsung:samsung_store run scoreboard players add #samsung_money value $(money)
execute if score #samsung_phones_for_sale value matches 1.. run advancement grant @a only samsung:get_money
execute if score #samsung_phones_for_sale value matches 1.. if score #samsung_accounts_unlocked value matches 1.. if predicate samsung:samsung_account_change run function samsung:make_samsung_account
execute if score #samsung_phones_for_sale value matches 1.. run scoreboard players remove #samsung_phones_for_sale value 1
$$(void_command)
scoreboard players set #customer_cooldown value 122
scoreboard players operation #customer_cooldown value -= #store_quality value