ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/(protected)/purchases/raw-materials/hooks/use-raw-materials
useCreateRawMaterial
Function useCreateRawMaterial
useCreateRawMaterial
()
:
UseMutationResult
<
RawMaterial
,
Error
,
{
code
:
string
;
name
:
string
;
description
?:
string
|
null
;
productType
:
|
"MATIERE_PREMIERE"
|
"ADHESIF"
|
"CONSUMABLE"
|
"SERVICE"
|
"OUTILLAGE"
|
"EMBALLAGE"
|
"AUTRES"
;
billingPolicy
:
"DELIVERED"
|
"ORDERED"
|
"MANUAL"
;
unitOfMeasureId
?:
string
|
null
;
unitOfPurchaseId
?:
string
|
null
;
unitOfStockId
?:
string
|
null
;
conversionFactor
:
number
;
sellingPrice
:
number
;
cost
:
number
;
costPerUnit
?:
string
|
null
;
salesTaxId
?:
string
|
null
;
density
?:
number
|
null
;
color
?:
string
|
null
;
thickness
?:
number
|
null
;
width
?:
number
|
null
;
length
?:
number
|
null
;
weight
?:
number
|
null
;
internalReference
?:
string
|
null
;
barcode
?:
string
|
null
;
minStockLevel
:
number
;
maxStockLevel
?:
number
|
null
;
reorderPoint
:
number
;
imageUrl
?:
string
|
null
;
imageKey
?:
string
|
null
;
internalNotes
?:
string
|
null
;
tags
?:
string
|
null
;
isActive
:
boolean
;
categoryId
?:
string
|
null
;
suppliers
:
{
id
?:
string
;
supplierId
:
string
;
supplierCode
?:
string
|
null
;
supplierDesignation
?:
string
|
null
;
priority
:
number
;
isPreferred
:
boolean
;
isActive
:
boolean
;
notes
?:
string
|
null
;
moqTiers
:
{
id
?:
string
;
minQuantity
:
number
;
unitPrice
:
number
;
leadTime
?:
number
|
null
;
}
[]
;
}
[]
;
}
,
unknown
,
>
Returns
UseMutationResult
<
RawMaterial
,
Error
,
{
code
:
string
;
name
:
string
;
description
?:
string
|
null
;
productType
:
|
"MATIERE_PREMIERE"
|
"ADHESIF"
|
"CONSUMABLE"
|
"SERVICE"
|
"OUTILLAGE"
|
"EMBALLAGE"
|
"AUTRES"
;
billingPolicy
:
"DELIVERED"
|
"ORDERED"
|
"MANUAL"
;
unitOfMeasureId
?:
string
|
null
;
unitOfPurchaseId
?:
string
|
null
;
unitOfStockId
?:
string
|
null
;
conversionFactor
:
number
;
sellingPrice
:
number
;
cost
:
number
;
costPerUnit
?:
string
|
null
;
salesTaxId
?:
string
|
null
;
density
?:
number
|
null
;
color
?:
string
|
null
;
thickness
?:
number
|
null
;
width
?:
number
|
null
;
length
?:
number
|
null
;
weight
?:
number
|
null
;
internalReference
?:
string
|
null
;
barcode
?:
string
|
null
;
minStockLevel
:
number
;
maxStockLevel
?:
number
|
null
;
reorderPoint
:
number
;
imageUrl
?:
string
|
null
;
imageKey
?:
string
|
null
;
internalNotes
?:
string
|
null
;
tags
?:
string
|
null
;
isActive
:
boolean
;
categoryId
?:
string
|
null
;
suppliers
:
{
id
?:
string
;
supplierId
:
string
;
supplierCode
?:
string
|
null
;
supplierDesignation
?:
string
|
null
;
priority
:
number
;
isPreferred
:
boolean
;
isActive
:
boolean
;
notes
?:
string
|
null
;
moqTiers
:
{
id
?:
string
;
minQuantity
:
number
;
unitPrice
:
number
;
leadTime
?:
number
|
null
;
}
[]
;
}
[]
;
}
,
unknown
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...