Skip to content

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

Open
Emmafidelis wants to merge 1 commit intoAakvatech-Limited:version-15from
Emmafidelis:fix/lease-sales-order-date-alignment
Open

fix(propms): align lease sales order dates before insert#49
Emmafidelis wants to merge 1 commit intoAakvatech-Limited:version-15from
Emmafidelis:fix/lease-sales-order-date-alignment

Conversation

@Emmafidelis
Copy link
Copy Markdown

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
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.

1 participant