Warehouses

List All Warehouses

All pages and components use BasicDB classes.

BasicDB Parameters

VeterinerPro use DataTable plugin all pages.

Create a warehouse

/app/view/warehouses.php has a modal by id: newModal

Ajax requests are inside a file (app/controller/ajax.php) decomposition from type parameter.

This request send app/ajax/newwarehouse.ajax.php

This file (app/ajax/newwarehouse.ajax.php) has 4 properties.

  • name

  • address

  • contact_phone

  • contact_name

Contact name is required field.

Update A Warehouse

This file is (app/gets/warehouseupdate.php) is a modal page.

This file has a property: ID.

Identifier help find true warehouse.

This file has ajaxForm class and send app/ajax/updatewarehouse.ajax.php.

Updatewarehouse.ajax.php has 5 property:

  • Id

  • Name

  • Address

  • Contact Phone

  • Contact Name

Identifier help find true warehouse.

Delete Warehouse

Delete process started in view/warehouses.php

Delete call /ajax/warehousedelete.ajax.php

Warehousedelete.ajax.php has 1 property

  • ID

Identifier help find true warehouse.

BasicDB delete method call sql "DELETE FROM tablename"

Last updated