I develop a cash bill system. when a salesman have more than 2 order no paid, then cannot insert order. (1 order can contain many item, if in database can have same order no. but different product).
database field : - name(text), paid(boolean),orderNo(text).and so on ...