fix: 增加供应商报价必填校验
This commit is contained in:
parent
cd13e1dbfa
commit
adda03e5d8
|
|
@ -139,6 +139,9 @@ func (o *productUpload) buildWorkflow(ctx context.Context) (compose.Runnable[*Pr
|
||||||
if ingestData.TaxRate == "" {
|
if ingestData.TaxRate == "" {
|
||||||
return nil, errors.New("税率不能为空")
|
return nil, errors.New("税率不能为空")
|
||||||
}
|
}
|
||||||
|
if ingestData.SupplierPrice == "" {
|
||||||
|
return nil, errors.New("供应商报价不能为空")
|
||||||
|
}
|
||||||
|
|
||||||
state.IngestData = &ingestData
|
state.IngestData = &ingestData
|
||||||
state.SupplierName = ingestData.SupplierName
|
state.SupplierName = ingestData.SupplierName
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue