resolved Sync.php item id issue and removed debug code from Invoice.java