Skip to content

feat: Add sale_order_id to purchase_orders and enhance allocation logic#239

Open
git-wahab wants to merge 1 commit intodevelopmentfrom
improvement/make-a-relation-ship-between-sale-order-and-purchase-order
Open

feat: Add sale_order_id to purchase_orders and enhance allocation logic#239
git-wahab wants to merge 1 commit intodevelopmentfrom
improvement/make-a-relation-ship-between-sale-order-and-purchase-order

Conversation

@git-wahab
Copy link
Copy Markdown
Collaborator

  • Introduced a new relationship in SaleOrder model to link with PurchaseOrder.
  • Updated SaleOrderRepository to fetch processing sale orders with failed purchase orders.
  • Modified VoucherRepository and related services to accept sale_order_id for voucher allocation.
  • Implemented ManualPurchaseOrderStockService to allocate stock from manually created purchase orders to processing sale orders.
  • Enhanced PurchaseOrderService to handle sale_order_id during purchase order creation.
  • Updated tests to cover new functionality, including allocation logic and sale_order_id handling.
  • Added migration to include sale_order_id in purchase_orders table.

- Introduced a new relationship in SaleOrder model to link with PurchaseOrder.
- Updated SaleOrderRepository to fetch processing sale orders with failed purchase orders.
- Modified VoucherRepository and related services to accept sale_order_id for voucher allocation.
- Implemented ManualPurchaseOrderStockService to allocate stock from manually created purchase orders to processing sale orders.
- Enhanced PurchaseOrderService to handle sale_order_id during purchase order creation.
- Updated tests to cover new functionality, including allocation logic and sale_order_id handling.
- Added migration to include sale_order_id in purchase_orders table.
@git-wahab git-wahab requested a review from mawaishanif April 29, 2026 06:52
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