salary: add daily piece salary support; fix a salary calc issue; other small improvements;