[FEAT] Update StockTransferDelivery and TransferDeliveryDTO to allow optional SupplierId

This commit is contained in:
aguhh18
2026-01-27 16:57:36 +07:00
parent 77043005dd
commit 6cac4f0243
4 changed files with 50 additions and 25 deletions
@@ -26,7 +26,7 @@ type TransferDelivery struct {
DocumentIndex int `json:"document_index" validate:"omitempty,min=-1" default:"-1"`
DriverName string `json:"driver_name" validate:"required"`
VehiclePlate string `json:"vehicle_plate" validate:"required"`
SupplierID uint `json:"supplier_id" validate:"required"`
SupplierID uint `json:"supplier_id" `
Products []TransferDeliveryProduct `json:"products" validate:"required,dive"`
}