Discount amount in Sales Invoice

I have a Pos When the payment is submitted in the pos it creates a sales invoice. If there is a discount on the Pos it is passing the discount amount to the sales invoice but not set in the discount amount field. Please comment if anybody knows about this.