restored widget code
item count is sum of quantity field rather than count of rows
Merge branch 'purchase-log-item-count'