adapted for ivxapi

adapted for use with my Invoice Offline Store (ivxapi) project