You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing the “Fatura” type of Invoice, which, as per standard practice, is issued first and paid afterwards. However, I’ve encountered a challenge with adding Payments to an Invoice after it has been issued. Specifically, I noticed that the framework does not seem to provide a direct API method for persisting Payment records to an already issued Invoice within the Payments utility package: https://github.com/premium-minds/billy/blob/master/billy-portugal/src/main/java/com/premiumminds/billy/portugal/util/Payments.java
Furthermore, the GenericInvoiceBuilderImpl class’s addPayment function is annotated with @NotOnUpdate, preventing the update of an Invoice instance after it has been persisted:
public <TextendsPayment> TBuilderaddPayment(Builder<T> paymentBuilder) {
Given this context, is there a recommended approach within the Billy framework to add Payment information to an Invoice after the initial issuance? Essentially, I’m looking to establish a flow where an Invoice is created and issued, and then, once payments are made, those payments are added to the corresponding Invoice.
Alternatively, if there's a workaround or a planned feature update that could address this issue, I'd appreciate any information you can share.
The text was updated successfully, but these errors were encountered:
Hello billy team,
I am testing the “Fatura” type of Invoice, which, as per standard practice, is issued first and paid afterwards. However, I’ve encountered a challenge with adding Payments to an Invoice after it has been issued. Specifically, I noticed that the framework does not seem to provide a direct API method for persisting Payment records to an already issued Invoice within the Payments utility package:
https://github.com/premium-minds/billy/blob/master/billy-portugal/src/main/java/com/premiumminds/billy/portugal/util/Payments.java
Furthermore, the GenericInvoiceBuilderImpl class’s addPayment function is annotated with @NotOnUpdate, preventing the update of an Invoice instance after it has been persisted:
billy/billy-core/src/main/java/com/premiumminds/billy/core/services/builders/impl/GenericInvoiceBuilderImpl.java
Lines 252 to 253 in 5387f05
Given this context, is there a recommended approach within the Billy framework to add Payment information to an Invoice after the initial issuance? Essentially, I’m looking to establish a flow where an Invoice is created and issued, and then, once payments are made, those payments are added to the corresponding Invoice.
Alternatively, if there's a workaround or a planned feature update that could address this issue, I'd appreciate any information you can share.
The text was updated successfully, but these errors were encountered: