Falta definir las siguientes variables globales: tpv_cb; tpv_ppv;