[fix] [minor] [query] sales invoice from delivery note
[fix] [minor] customer-wise discount