feat: validate material usage input before submission in CuttingPosCombinationDialog
This commit is contained in:
parent
afdd0905db
commit
7dacf785cb
@ -160,6 +160,14 @@ async function submit() {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const item of selectedMaterials.value) {
|
||||
if (!item.material_usage || item.material_usage.trim() === '') {
|
||||
toast.error(`Pemakaian untuk ${item.raw_material_name} - ${item.variant} wajib diisi.`);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
loading.value = true;
|
||||
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user