|
|
|
@ -555,12 +555,13 @@ namespace DS.WMS.Core.Application.Method
|
|
|
|
|
ApplicationId = application.Id,
|
|
|
|
|
Name = item.Name,
|
|
|
|
|
TaxRate = application.TaxRate,
|
|
|
|
|
Quantity = 1,
|
|
|
|
|
TaxUnitPrice = application.Details.FindAll(x => item.FeeIds.Contains(x.FeeId)).Sum(x => x.ApplyAmount),
|
|
|
|
|
Category = DetailCategory.InvoiceApplication
|
|
|
|
|
};
|
|
|
|
|
invDetail.TaxAmount = invDetail.TaxUnitPrice * application.TaxRate;
|
|
|
|
|
invDetail.UnitPrice = invDetail.TaxUnitPrice - invDetail.TaxAmount;
|
|
|
|
|
|
|
|
|
|
invDetail.Amount = invDetail.TaxUnitPrice * invDetail.Quantity;
|
|
|
|
|
application.InvoiceDetails.Add(invDetail);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|