Discount Account of Line Invoice of a module by Alphasoft.
Link to Journal Entries from Stock Picking by Alphasoft