Ignore:
Timestamp:
Jul 6, 2013, 12:22:02 AM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Vlastnost Generate u plateb a faktur pro určení, které doklady se mají zpožděně generovat jako PDF.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r548 r549  
    148148      'Subject' => $Subject, 'TimeCreation' => TimeToMysqlDateTime($TimeCreation),
    149149      'TimeDue' => TimeToMysqlDateTime($TimeDue), 'Value' => $SumValue, 'BillCode' => $BillCode,
    150       'PeriodFrom' => TimeToMysqlDate($PeriodFrom), 'PeriodTo' => TimeToMysqlDate($PeriodTo)));
     150      'PeriodFrom' => TimeToMysqlDate($PeriodFrom), 'PeriodTo' => TimeToMysqlDate($PeriodTo),
     151      'Generate' => 1));
    151152    $InvoiceId = $this->Database->insert_id;
    152153    foreach($Items as $Item)
     
    552553    // FinanceInvoice
    553554    $DbResult = $this->Database->query('SELECT * FROM `FinanceInvoice` WHERE (`BillCode` <> "") '.
    554       'AND (`Value` != 0) AND (`File` IS NULL)');
     555      'AND (`Value` != 0) AND (`File` IS NULL) AND (`Generate` = 1)');
    555556    while($Row = $DbResult->fetch_assoc())
    556557    {
Note: See TracChangeset for help on using the changeset viewer.