Changeset 422


Ignore:
Timestamp:
Oct 9, 2012, 10:46:06 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Seznam úkolů k řešení.
  • Upraveno: Zobrazení kódu dokladu při přidání nového.
Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/manage.php

    r413 r422  
    219219    $Form->LoadValuesFromForm();
    220220    $this->InsertMoney($Form->Values['Subject'], $Form->Values['Value'], $Form->Values['Cash'], $Form->Values['Taxable'], $Form->Values['Time'], $Form->Values['Text'], $Form->Values['DocumentLine']);
    221     $Output = $this->SystemMessage('Finance', 'Platba vložena.');
     221    $LastId = $this->Database->insert_id;
     222    $DbResult = $this->Database->select('FinanceOperation', 'BillCode', 'Id='.$LastId);
     223    $DbRow = $DbResult->fetch_assoc();
     224    $Output = $this->SystemMessage('Finance', 'Platba vložena '.$DbRow['BillCode'].'.');
    222225    $this->System->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted');
    223226    return($Output);
     
    238241    //print_r($Form->Values);
    239242    $this->InsertLiability($Form->Values['Subject'], $Form->Values['Value'], $Form->Values['TimeCreation'], $Form->Values['TimeDue'], $Form->Values['Text'], $Form->Values['DocumentLine']);
    240     $Output = $this->SystemMessage('Finance', 'Faktura vložena..');
     243    $LastId = $this->Database->insert_id;
     244    $DbResult = $this->Database->select('FinanceClaimsLiabilities', 'BillCode', 'Id='.$LastId);
     245    $DbRow = $DbResult->fetch_assoc();
     246    $Output = $this->SystemMessage('Finance', 'Faktura vložena '.$DbRow['BillCode'].'.');
    241247    $this->System->Modules['Log']->NewRecord('Finance', 'NewInvoiceInserted');
    242248    return($Output);
Note: See TracChangeset for help on using the changeset viewer.