In my sales order I have posted my prepayment invoice and made the payment. Then I shipped the corresponding sales order and while posting the sales invoice a Error is occurred like " Amount must be positive in Gen. journal line Journal Template Name ='',Journal batch name = '', Line No.='0'." . This sales order has overall discount amount and no empty lines in the sales order. Thanks in Advance.