How to calculate value in default section of department ?

If any item have no department means unassign department then that is consider in default department section.

In items which are selling is consider in sales section of department.

If items are return then that amount is consider in return section.

Total = sales value - return value

email-and-preview-from-manager-report