It seems to me the portion functionality is broken. Whenever a portion is clicked, SambaPOS reports ObjectReferenceNull exception, pointing to function GetVatTemplate(int) in MainDataContext.cs. Changing menuItemId to menuItemId+1 seems to resolve part of the problem but in some scenario the error persists.
I am using default text file based database.