diff --git a/landa/landa_sales/doctype/statement_of_fees_and_payments/statement_of_fees_and_payments.py b/landa/landa_sales/doctype/statement_of_fees_and_payments/statement_of_fees_and_payments.py index 12d8fdc0..f9d3ce08 100644 --- a/landa/landa_sales/doctype/statement_of_fees_and_payments/statement_of_fees_and_payments.py +++ b/landa/landa_sales/doctype/statement_of_fees_and_payments/statement_of_fees_and_payments.py @@ -61,6 +61,7 @@ def fetch_payments(self): "payment_type", "base_paid_amount", ], + order_by="reference_date ASC", ): self.append( "payments",