Hello Denis,

Are you sure about the file name as I didn't find PaymentServices.groovy
but there's PaymentServices.xml?

Regards,
Emad

On Thu, Mar 13, 2025 at 4:02 PM Denis G <[email protected]> wrote:

> Hi all,
> In Seed data there are several payment term types for purchase orders and
> agreements (Financial, Payment (net days), Payment net days, part 1, etc).
>
> I have created a purchase order from Company to DemoSupplier (total 900$).
> With Order terms:
> Payment net days, part 1: value = 0.25 , days = 10
> Payment net days, part 2: value = 0.75, days = 20
>
> I expected to see 2 payments: one 25% after 10 days from invoice date for
> 225$ and second after 20 days from invoice date for 675$.
> Shouldn't it work that way?
>
> I see corresponding implementation of logic in
>
> applications\accounting\src\main\groovy\org\apache\ofbiz\accounting\payment\PaymentServices.groovy
> - payment terms with parentID FIN_PAYMENT_TERM should be splitted, but i'm
> not really sure, that my expectations are correct.
>
> BR,
> Denis
>

Reply via email to