Skip to content

Add service template rows#497

Draft
PavanKumarPacharla wants to merge 3 commits intoParaLogicTech:version-15from
PavanKumarPacharla:pk_491_add_service_template_rows
Draft

Add service template rows#497
PavanKumarPacharla wants to merge 3 commits intoParaLogicTech:version-15from
PavanKumarPacharla:pk_491_add_service_template_rows

Conversation

@PavanKumarPacharla
Copy link

@PavanKumarPacharla PavanKumarPacharla commented Aug 4, 2025

This PR enhances the flow from Sales Order to Repair Order by automatically linking selected Service Templates in line items to the associated Project during Sales Order submission.

Feature Details:

  • When a Sales Order is submitted:
  • Each line item is checked for a linked Service Template.
  • If present and not already associated with another item, a new Project Service Template row is created.
  • This row is inserted into the corresponding Project.
  • The service_template_detail field in the Sales Order Item is updated with the newly created row’s name.
  • Finally, set_service_template_has_transaction(update=True) is called on the Project to update its state.
  • If the same service template is already linked to another sales order item, the process is halted with a clear error message to avoid duplication.

Closes #491

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.

feat(Sales Order): On Submit, add Service Template rows

1 participant