charge_cash_by_voucher={["start"]=0,charge= function (amount,charge_type)if charge_type == nil then 
charge_type = "cash" 
end 
if 0 < amount then 
local result = pc . charge_cash ( amount , charge_type ) 
if true == result then 
local item_id = item . get_id ( ) 
char_log ( item_id , "CHARGE_CASH_BY_VOUCHER" , amount ) 
syschat ( string . format ( gameforge . charge_cash_by_voucher . _010_syschat , amount ) ) 
local flag_name = "total_" .. charge_type 
pc . setqf ( flag_name , pc . getqf ( flag_name ) + amount ) 
item . remove ( ) 
end 
end 
return false 
end }