Changeset 422
- Timestamp:
- Oct 9, 2012, 10:46:06 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/manage.php
r413 r422 219 219 $Form->LoadValuesFromForm(); 220 220 $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'].'.'); 222 225 $this->System->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted'); 223 226 return($Output); … … 238 241 //print_r($Form->Values); 239 242 $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'].'.'); 241 247 $this->System->Modules['Log']->NewRecord('Finance', 'NewInvoiceInserted'); 242 248 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.