Workflow

How to Create and Delete a Stock Brand

Verified end to end. A disposable article brand was created from the Brands support file, verified in the list, deleted through the row action, and confirmed absent after cleanup.

Evidence Summary

Workflow run
stock-brands-crud-20260520T110516Z
Route
/stocks/apoio/marcas
Disposable brand
63 / AI Brand 20260520T110516Z
Final state
Deleted; final table search returned No matching records found

Create a Brand

  1. Open /stocks/apoio/marcas.
  2. Click Nova Marca.
  3. Fill the required Designação field.
  4. Optionally fill TecDoc: Marcas, Margem Lucro Mínima, Observações, preferential/exclusive flags, or upload an image.
  5. Click Guardar.

The verified form is fnewMarca and posts multipart form data to /stocks/apoio/marcas. The controlled run used Designacao=AI Brand 20260520T110516Z, margem_lucro_minima=7, Obs=Created by workflow stock-brands-crud-20260520T110516Z, blank TecDoc/image fields, and blank gfnewmarca.

Verify the Brand

The brands grid is ListaMarcas. It loads through DT_MarcasArtigos and returns generated CodMarca, description, image, observations, minimum margin, TecDoc brand, preferential flag, exclusive flag, and row actions.

After creation, filtering the grid by the disposable description returned code 63, description AI Brand 20260520T110516Z, note text, margin 7.00, and both preferential/exclusive badges as Não.

Delete the Brand

  1. Filter the brands grid by the brand description or generated code.
  2. Click the row delete action.
  3. Confirm the prompt Tem a certeza que quer apagar? with OK.

The delete action calls ajaxserver with action=deleteMarcaArtigos and codmarca=63. The response returned {"succeeded":true}. After deletion, reloading the page and searching for the disposable description returned No matching records found.

Use and Boundaries

Brands classify article master records and can be used in filters, imports, pricing workflows, and reports. Deleting a brand that is already assigned to articles may be blocked or affect selector history, so support-file testing should use a newly-created disposable brand that has not been assigned to any article.

Artifacts