FIX[BE]: fixing issue failed delivery order, fixing unique constraint sales order

This commit is contained in:
aguhh18
2025-11-24 14:35:20 +07:00
parent 1ceda3623e
commit 99688c8e11
7 changed files with 117 additions and 42 deletions
@@ -27,6 +27,8 @@ type CostItem struct {
type Update struct {
TransactionDate *string `form:"transaction_date" json:"transaction_date" validate:"omitempty,datetime=2006-01-02"`
Category *string `form:"category" json:"category" validate:"omitempty,oneof=BOP NON-BOP"`
SupplierID *uint64 `form:"supplier_id" json:"supplier_id" validate:"omitempty,gt=0"`
CostPerKandang *[]CostPerKandang `form:"cost_per_kandang" json:"cost_per_kandang" validate:"omitempty,min=1,dive"`
Documents []*multipart.FileHeader `form:"documents" json:"documents" validate:"omitempty,dive"`
}