Skip to content

fix(propms): align lease sales order dates before insert#49

Merged
aakvatech merged 1 commit into
Aakvatech-Limited:version-15from
Emmafidelis:fix/lease-sales-order-date-alignment
Apr 8, 2026
Merged

fix(propms): align lease sales order dates before insert#49
aakvatech merged 1 commit into
Aakvatech-Limited:version-15from
Emmafidelis:fix/lease-sales-order-date-alignment

Conversation

@Emmafidelis
Copy link
Copy Markdown
Contributor

Lease-generated Sales Orders were using the generic insert-then-save flow, which let ERPNext validate backdated schedules before the order dates were aligned with the lease period. This caused due date validation errors when the payment schedule date fell before the effective Sales Order date.

Update the Sales Order path to set the order date fields from the lease schedule before insert, keep delivery date aligned to the lease end of the billed period, and preserve the existing invoice flow

Lease-generated Sales Orders were using the generic insert-then-save flow, which let ERPNext validate backdated schedules before the order dates were aligned with the lease period. This caused due date validation errors when the payment schedule date fell before the effective Sales Order date.

Update the Sales Order path to set the order date fields from the lease schedule before insert, keep delivery date aligned to the lease end of the billed period, and preserve the existing invoice flow
@aakvatech aakvatech merged commit f4d15d3 into Aakvatech-Limited:version-15 Apr 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants