# crmdemo **Repository Path**: linzhv/crmdemo ## Basic Information - **Project Name**: crmdemo - **Description**: crm for test - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README crmdemo ======= ### Instanllation ```bash git clone git@github.com:lichtung/crmdemo.git cd crmdemo # install vendor composer install # create database php bin/console doctrine:schema:update -f ``` ### Requirement | Symfony = 3.4 | |---| | php >= 7.0 | ### Logic test logic: - When material is added to product, only one piece is taken from stock - When product is designed from material, which has number of pieces in stock equal 0, then we need create order for this material(show alert message). - When material order is finished, the inventory of this material will be the sum of last inventory and the number in order. command: ```bash phpunit tests/AppBundle/LogicTest.php ```