/[drupal]/contributions/modules/storm/storminvoice/storminvoice.module
ViewVC logotype

Diff of /contributions/modules/storm/storminvoice/storminvoice.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Wed Jun 11 12:55:05 2008 UTC revision 1.2, Tue Jun 17 07:59:24 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: storminvoice.module,v 1.1 2008/06/11 12:55:05 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 398  function storminvoice_update($node) { Line 398  function storminvoice_update($node) {
398  }  }
399    
400  function _storminvoice_beforesave(&$node) {  function _storminvoice_beforesave(&$node) {
401    $node->requestdate = _storm_date_to_gmtimestamp($node->requestdate);    if(is_array($node->requestdate)) $node->requestdate = _storm_date_to_gmtimestamp($node->requestdate);
402    $node->duedate = _storm_date_to_gmtimestamp($node->duedate);    if(is_array($node->duedate)) $node->duedate = _storm_date_to_gmtimestamp($node->duedate);
403    $node->paymentdate = _storm_date_to_gmtimestamp($node->paymentdate);    if(is_array($node->paymentdate)) $node->paymentdate = _storm_date_to_gmtimestamp($node->paymentdate);
404    
405    $s = "SELECT n.title    $s = "SELECT n.title
406          FROM {node} n INNER JOIN {stormorganization} o ON n.nid=o.nid          FROM {node} n INNER JOIN {stormorganization} o ON n.nid=o.nid

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2