+ groupOpen = true;
+ }
+
+
+
+
+
+ @item.ApplicantName/@item.InvoiceNumber
+ @if (!string.IsNullOrEmpty(item.ParentReferenceNo))
+ {
+ (Parent Id: @item.ParentReferenceNo)
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Error Amount exceeds remaining amount of @item.RemainingAmount
+
+
+ @for (var j = 0; j < item.ErrorList?.Count; j++)
+ {
+
+ Error @item.ErrorList[j]
+
+ }
+ @if (!item.SiteId.HasValue || item.SiteId == Guid.Empty)
+ {
+
+ Note No site selected for this payment. You can still add the payment.
+
+ }
+
+
+
+ if (groupOpen && nextGroupKey != itemGroupKey)
+ {
+ @:
+ @: Error
+ @:
+ @:
+ groupOpen = false;
+ }
+
+ currentGroupKey = itemGroupKey;
+ }
+