add getall and delete function from purchase order page

This commit is contained in:
2025-11-30 12:32:27 +01:00
parent a76b184dc1
commit aad637c9c9
7 changed files with 66 additions and 201 deletions

View File

@@ -26,15 +26,4 @@ export class ProductForm {
price: new FormControl<string>(null, [Validators.required]),
quantity: new FormControl<string>(null, [Validators.required])
})
submitForm() {
// Pour annuler si le formulaire est invalide
if (this.productForm.invalid) return;
// Pour obtenir la valeur du formulaire
console.log(this.productForm.getRawValue())
// Pour vider le formulaire
this.productForm.reset()
}
}