Skip to content

Commit

Permalink
Fix for last patch, also fix widget ignoring logdate due to typo.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://www.freemed.info/var/lib/svn/freemed-modules@23 c066130b-aef2-0310-b50c-f7412185e6fe
  • Loading branch information
jeff committed Apr 14, 2006
1 parent d59a10d commit cab5e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drug_samples/drug_samples_inventory.db.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DrugSampleInventory extends MaintenanceModule {
var $record_name = "Drug Sample Inventory";
var $table_name = "drugsampleinv";
var $order_fields = "logdate DESC";
var $widget_hash = "##lotdate## - ##drugformal## ##samplecountremain##/##samplecount## (##lot##)";
var $widget_hash = "##logdate## - ##drugformal## ##samplecountremain##/##samplecount## (##lot##)";

function DrugSampleInventory ( ) {
$this->table_definition = array (
Expand Down Expand Up @@ -197,7 +197,7 @@ function view () {
// Wrap widget with this to make sure we only get certain things.
function widget ( $varname ) {
$conditions = "samplecountremain > 0";
parent::widget( $varname, $conditions );
return parent::widget( $varname, $conditions );
}

function deduct ( $id, $amount ) {
Expand Down

0 comments on commit cab5e30

Please sign in to comment.