add getall and delete function from purchase order page
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user