Skip to content

Commit

Permalink
update field for use isModEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Nov 18, 2024
1 parent 91f3312 commit 22d6035
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions htdocs/expedition/class/expedition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class Expedition extends CommonObject
'tms' => ['type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'position' => 10, 'notnull' => 0, 'visible' => -1],
'ref' => ['type' => 'varchar(30)', 'label' => 'Ref', 'enabled' => 1, 'position' => 20, 'notnull' => 1, 'visible' => -1, 'noteditable' => 1, 'index' => 1, 'searchall' => 1, 'showoncombobox' => 1, 'validate' => 1, 'comment' => 'Reference of object'],
'entity' => ['type' => 'integer', 'label' => 'Entity', 'enabled' => 1, 'position' => 30, 'notnull' => 1, 'visible' => -1, 'index' => 1],
'fk_soc' => ['type' => 'integer:Societe:societe/class/societe.class.php', 'label' => 'ThirdParty', 'enabled' => '$conf->societe->enabled', 'position' => 40, 'notnull' => 1, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'societe.rowid'],
'fk_projet' => ['type' => 'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)', 'label' => 'Project', 'enabled' => '$conf->project->enabled', 'position' => 50, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'projet.rowid'],
'fk_soc' => ['type' => 'integer:Societe:societe/class/societe.class.php', 'label' => 'ThirdParty', 'enabled' => 'isModEnabled("societe")', 'position' => 40, 'notnull' => 1, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'societe.rowid'],
'fk_projet' => ['type' => 'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)', 'label' => 'Project', 'enabled' => 'isModEnabled("project")', 'position' => 50, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'projet.rowid'],
'ref_ext' => ['type' => 'varchar(255)', 'label' => 'RefExt', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => -1],
'ref_int' => ['type' => 'varchar(255)', 'label' => 'RefInt', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => -1],
'ref_customer' => ['type' => 'varchar(255)', 'label' => 'RefCustomer', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => -1],
Expand All @@ -140,27 +140,27 @@ class Expedition extends CommonObject
'fk_user_modif' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserModif', 'enabled' => 1, 'position' => 110, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'date_valid' => ['type' => 'datetime', 'label' => 'DateValidation', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 5],
'fk_user_valid' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserValidation', 'enabled' => 1, 'position' => 130, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'date_delivery' => ['type' => 'datetime', 'label' => 'DateDelivery', 'enabled' => 1, 'position' => 140, 'notnull' => 0, 'visible' => -1],
'date_expedition' => ['type' => 'datetime', 'label' => 'DateExpedition', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1],
'fk_address' => ['type' => 'integer', 'label' => 'Address', 'enabled' => 1, 'position' => 160, 'notnull' => 0, 'visible' => -1],
'fk_shipping_method' => ['type' => 'integer', 'label' => 'ShippingMethod', 'enabled' => 1, 'position' => 170, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'default' => 0],
'tracking_number' => ['type' => 'varchar(50)', 'label' => 'TrackingNumber', 'enabled' => 1, 'position' => 180, 'notnull' => 0, 'visible' => -1],
'fk_statut' => ['type' => 'smallint(6)', 'label' => 'Status', 'enabled' => 1, 'position' => 190, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'default' => 0],
'billed' => ['type' => 'smallint(6)', 'label' => 'Billed', 'enabled' => 1, 'position' => 200, 'notnull' => 0, 'visible' => -1],
'height' => ['type' => 'float', 'label' => 'Height', 'enabled' => 1, 'position' => 210, 'notnull' => 0, 'visible' => -1],
'width' => ['type' => 'float', 'label' => 'Width', 'enabled' => 1, 'position' => 220, 'notnull' => 0, 'visible' => -1],
'size_units' => ['type' => 'integer', 'label' => 'SizeUnits', 'enabled' => 1, 'position' => 230, 'notnull' => 0, 'visible' => -1],
'size' => ['type' => 'float', 'label' => 'Size', 'enabled' => 1, 'position' => 240, 'notnull' => 0, 'visible' => -1],
'weight_units' => ['type' => 'integer', 'label' => 'WeightUnits', 'enabled' => 1, 'position' => 250, 'notnull' => 0, 'visible' => -1],
'weight' => ['type' => 'float', 'label' => 'Weight', 'enabled' => 1, 'position' => 260, 'notnull' => 0, 'visible' => -1],
'note_private' => ['type' => 'text', 'label' => 'NotePrivate', 'enabled' => 1, 'position' => 270, 'notnull' => 0, 'visible' => -1],
'note_public' => ['type' => 'text', 'label' => 'NotePublic', 'enabled' => 1, 'position' => 280, 'notnull' => 0, 'visible' => -1],
'model_pdf' => ['type' => 'varchar(255)', 'label' => 'PDFTemplate', 'enabled' => 1, 'position' => 290, 'notnull' => 0, 'visible' => -1],
'last_main_doc' => ['type' => 'varchar(255)', 'label' => 'LastMainDoc', 'enabled' => 1, 'position' => 300, 'notnull' => 0, 'visible' => -1],
'fk_incoterms' => ['type' => 'integer', 'label' => 'IncotermCode', 'enabled' => '$conf->incoterm->enabled', 'position' => 310, 'notnull' => 0, 'visible' => -1],
'location_incoterms' => ['type' => 'varchar(255)', 'label' => 'IncotermLabel', 'enabled' => '$conf->incoterm->enabled', 'position' => 320, 'notnull' => 0, 'visible' => -1],
'import_key' => ['type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => 1, 'position' => 330, 'notnull' => 0, 'visible' => -1],
'extraparams' => ['type' => 'varchar(255)', 'label' => 'ExtraParams', 'enabled' => 1, 'position' => 340, 'notnull' => 0, 'visible' => -1]
'date_delivery' => ['type' => 'datetime', 'label' => 'DateDelivery', 'enabled' => 1, 'position' => 140, 'notnull' => 0, 'visible' => -1],
'date_expedition' => ['type' => 'datetime', 'label' => 'DateExpedition', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1],
'fk_address' => ['type' => 'integer', 'label' => 'Address', 'enabled' => 1, 'position' => 160, 'notnull' => 0, 'visible' => -1],
'fk_shipping_method' => ['type' => 'integer', 'label' => 'ShippingMethod', 'enabled' => 1, 'position' => 170, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'default' => 0],
'tracking_number' => ['type' => 'varchar(50)', 'label' => 'TrackingNumber', 'enabled' => 1, 'position' => 180, 'notnull' => 0, 'visible' => -1],
'fk_statut' => ['type' => 'smallint(6)', 'label' => 'Status', 'enabled' => 1, 'position' => 190, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'default' => 0],
'billed' => ['type' => 'smallint(6)', 'label' => 'Billed', 'enabled' => 1, 'position' => 200, 'notnull' => 0, 'visible' => -1],
'height' => ['type' => 'float', 'label' => 'Height', 'enabled' => 1, 'position' => 210, 'notnull' => 0, 'visible' => -1],
'width' => ['type' => 'float', 'label' => 'Width', 'enabled' => 1, 'position' => 220, 'notnull' => 0, 'visible' => -1],
'size_units' => ['type' => 'integer', 'label' => 'SizeUnits', 'enabled' => 1, 'position' => 230, 'notnull' => 0, 'visible' => -1],
'size' => ['type' => 'float', 'label' => 'Size', 'enabled' => 1, 'position' => 240, 'notnull' => 0, 'visible' => -1],
'weight_units' => ['type' => 'integer', 'label' => 'WeightUnits', 'enabled' => 1, 'position' => 250, 'notnull' => 0, 'visible' => -1],
'weight' => ['type' => 'float', 'label' => 'Weight', 'enabled' => 1, 'position' => 260, 'notnull' => 0, 'visible' => -1],
'note_private' => ['type' => 'text', 'label' => 'NotePrivate', 'enabled' => 1, 'position' => 270, 'notnull' => 0, 'visible' => -1],
'note_public' => ['type' => 'text', 'label' => 'NotePublic', 'enabled' => 1, 'position' => 280, 'notnull' => 0, 'visible' => -1],
'model_pdf' => ['type' => 'varchar(255)', 'label' => 'PDFTemplate', 'enabled' => 1, 'position' => 290, 'notnull' => 0, 'visible' => -1],
'last_main_doc' => ['type' => 'varchar(255)', 'label' => 'LastMainDoc', 'enabled' => 1, 'position' => 300, 'notnull' => 0, 'visible' => -1],
'fk_incoterms' => ['type' => 'integer', 'label' => 'IncotermCode', 'enabled' => 'isModEnabled("incoterm")', 'position' => 310, 'notnull' => 0, 'visible' => -1],
'location_incoterms' => ['type' => 'varchar(255)', 'label' => 'IncotermLabel', 'enabled' => 'isModEnabled("incoterm")', 'position' => 320, 'notnull' => 0, 'visible' => -1],
'import_key' => ['type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => 1, 'position' => 330, 'notnull' => 0, 'visible' => -1],
'extraparams' => ['type' => 'varchar(255)', 'label' => 'ExtraParams', 'enabled' => 1, 'position' => 340, 'notnull' => 0, 'visible' => -1]
];

/**
Expand Down

0 comments on commit 22d6035

Please sign in to comment.