protected void ApplySign(GAFRecordBase gafRecord, string taxTranModule, string docType) { var sign = ReportTaxProcess.GetMultByTranType(taxTranModule, docType); if (sign < 0) { gafRecord.Amount *= sign; gafRecord.GSTAmount *= sign; gafRecord.ForeignCurrencyAmount *= sign; gafRecord.ForeignCurrencyAmountGST *= sign; } }
protected void ApplySign(IEnumerable <GAFRecordBase> gafRecords, string taxTranModule, string docType) { var sign = ReportTaxProcess.GetMultByTranType(taxTranModule, docType); if (sign < 0) { foreach (var gafRecord in gafRecords) { gafRecord.Amount *= sign; gafRecord.GSTAmount *= sign; gafRecord.ForeignCurrencyAmount *= sign; gafRecord.ForeignCurrencyAmountGST *= sign; } } }