Hi There,
Can anyone help me to add New Module ?
What I have to do:
1. Add a new module to Siwapp called "Group".
Reason: Add Group for the Customer Module.
2. Add a new module to Siwapp called "Company".
Reason: Add Company for the Customer Module.
Example :Group --Company --Customer --
-- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
Hi Sergi,
I got some errors on database during the instalations. Have you got any idea ?
- There were some sql errors creating the database.
- Specified key was too long; max key length is 767 bytes :: CREATE TABLE item (id BIGINT AUTO_INCREMENT, company_id BIGINT, quantity DECIMAL(53, 15) DEFAULT 1 NOT NULL, discount DECIMAL(53, 2) DEFAULT 0 NOT NULL, common_id BIGINT, product_id BIGINT, expense_type_id BIGINT, description varchar(8000), unitary_cost DECIMAL(53, 15) DEFAULT 0 NOT NULL, INDEX desc_idx (company_id, description), INDEX company_id_idx (company_id), INDEX common_id_idx (common_id), INDEX product_id_idx (product_id), INDEX expense_type_id_idx (expense_type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 ENGINE = INNODB
- Table 'system.item' doesn't exist :: ALTER TABLE item ADD CONSTRAINT item_product_id_product_id FOREIGN KEY (product_id) REFERENCES product(id) ON DELETE SET NULL
- Table 'system.item' doesn't exist :: ALTER TABLE item ADD CONSTRAINT item_expense_type_id_expense_type_id FOREIGN KEY (expense_type_id) REFERENCES expense_type(id) ON DELETE SET NULL
- Table 'system.item' doesn't exist :: ALTER TABLE item ADD CONSTRAINT item_company_id_company_id FOREIGN KEY (company_id) REFERENCES company(id) ON DELETE CASCADE
- Table 'system.item' doesn't exist :: ALTER TABLE item ADD CONSTRAINT item_common_id_common_id FOREIGN KEY (common_id) REFERENCES common(id) ON DELETE CASCADE
It works fine but the Product - view goes to 500 error.
Hi Sergi,
I hope you are well.May ask you where Can I put new field in product (edit,index)
I tried putted in :BaseProduct.class.php
php symfony doctrine:build-all
Thank you very much indeed.