[WIP] CRUD for models invocie, quotation and purchaseOrder, fix some issues