Modified code to store planName, phaseName linkedInvoiceId and other related fields in External charges while trying to create External Charge Invoice Line Item.
@@ -322,11 +322,19 @@ public class DefaultInvoiceUserApi implements InvoiceUserApi {
invoiceForExternalCharge.getId(),
accountId,
charge.getBundleId(),
+ charge.getSubscriptionId(),
+ charge.getPlanName(),
+ charge.getPhaseName(),
+ charge.getPrettyPlanName(),
+ charge.getPrettyPhaseName(),
charge.getDescription(),
startDate,
endDate,
charge.getAmount(),
- charge.getCurrency());
+ charge.getRate(),
+ charge.getCurrency(),
+ charge.getLinkedItemId());
+
invoiceForExternalCharge.addInvoiceItem(externalCharge);
}
