I'm Indonesian and live in philippines, I have passport A and still valid for 3 years, recently I went home to my country to apply for passport B with purpose to add last name on it. Since I just stayed for a while and passport B not yet come out, I went back to philippines using my passport A. My plan is ask somebody to send passport B to philippines via courier when it come out.
Will this be okay for me to get out from philippines and to enter indonesia or other country using my passport B?
Or do I need to go back to indonesia first using passport A and get out again using passport B?
When they issue passport B, will my passport A immediately detected as invalid in customs dabatase?