-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#21 [CompetitorPrice] add: filter on columns and modify order of the columns #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il manque les filtres mais sinon c cool
view/competitorprice_card.php
Outdated
@@ -438,8 +438,8 @@ | |||
print getTitleFieldOfList($arrayfields[$key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : '')) . "\n"; | |||
} | |||
} | |||
print getTitleFieldOfList('', 0, $_SERVER['PHP_SELF'], '', '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : '')) . "\n"; | |||
print '</tr>'; | |||
print getTitleFieldOfList($selectedfields, 0, $_SERVER['PHP_SELF'], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ') . "\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi on pert autant de paramètres
class/competitorprice.class.php
Outdated
'label' => ['type' => 'varchar(255)', 'label' => 'Label', 'enabled' => '1', 'position' => 70, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth200'], | ||
'competitor_date' => ['type' => 'datetime', 'label' => 'CompetitorDate', 'enabled' => '1', 'position' => 70, 'notnull' => 1, 'visible' => 1], | ||
'amount_ht' => ['type' => 'price', 'label' => 'CompetitorPriceHT', 'enabled' => '1', 'position' => 80, 'notnull' => 0, 'visible' => 1, 'default' => 'null', 'isameasure' => '1'], | ||
'amount_ttc' => ['type' => 'price', 'label' => 'CompetitorPriceTTC', 'enabled' => '1', 'position' => 90, 'notnull' => 0, 'visible' => 1, 'default' => 'null', 'isameasure' => '1'], | ||
'vat' => ['type' => 'varchar(10)', 'label' => 'VAT', 'enabled' => '1', 'position' => 100, 'notnull' => 0, 'visible' => 0], | ||
'url_competitor' => ['type' => 'url', 'label' => 'URLCompetitor', 'enabled' => '1', 'position' => 110, 'notnull' => 0, 'visible' => 1, 'cssview' => 'wordbreak'], | ||
'competitor_date' => ['type' => 'datetime', 'label' => 'CompetitorDate', 'enabled' => '1', 'position' => 120, 'notnull' => 1, 'visible' => 1], | ||
'url_competitor' => ['type' => 'url', 'label' => 'URLCompetitor', 'enabled' => '1', 'position' => 100, 'notnull' => 0, 'visible' => 1, 'cssview' => 'wordbreak'], | ||
'label' => ['type' => 'varchar(255)', 'label' => 'Label', 'enabled' => '1', 'position' => 110, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth200'], | ||
'vat' => ['type' => 'varchar(10)', 'label' => 'VAT', 'enabled' => '1', 'position' => 120, 'notnull' => 0, 'visible' => 0], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si l'objectif c'est un order il faut faire varier la position cohérente sql
258b0aa
to
6dc27be
Compare
No description provided.