|
|
@@ -110,7 +110,7 @@ class RecordOUT extends Component
|
|
|
$this->type = 'OUT';
|
|
|
//$this->note = '';
|
|
|
//$this->amount = null;
|
|
|
- //$this->commercial = 0;
|
|
|
+ $this->commercial = 0;
|
|
|
$this->rows = array();
|
|
|
$this->rows[] = array('causal_id' => null, 'when' => array(array('month' => date("n"), 'year' => date("Y"), 'period' => '')), 'amount' => null, 'note' => '', 'commercial' => 0);
|
|
|
$this->emit('load-data-table');
|
|
|
@@ -311,7 +311,7 @@ class RecordOUT extends Component
|
|
|
//'note' => $this->note,
|
|
|
'type' => $this->type,
|
|
|
//'amount' => $this->currencyToDouble($this->amount),
|
|
|
- //'commercial' => $this->commercial,
|
|
|
+ 'commercial' => $this->commercial,
|
|
|
]);
|
|
|
|
|
|
$this->dataId = $record->id;
|
|
|
@@ -362,7 +362,7 @@ class RecordOUT extends Component
|
|
|
//$this->note = $record->note;
|
|
|
$this->type = $record->type;
|
|
|
//$this->amount = formatPrice($record->amount);
|
|
|
- //$this->commercial = $record->commercial;
|
|
|
+ $this->commercial = $record->commercial;
|
|
|
$this->dataId = $record->id;
|
|
|
$this->update = true;
|
|
|
$this->add = false;
|
|
|
@@ -396,7 +396,7 @@ class RecordOUT extends Component
|
|
|
//'note' => $this->note,
|
|
|
'type' => $this->type,
|
|
|
//'amount' => $this->currencyToDouble($this->amount),
|
|
|
- //'commercial' => $this->commercial,
|
|
|
+ 'commercial' => $this->commercial,
|
|
|
]);
|
|
|
|
|
|
$tot = 0;
|
|
|
@@ -552,7 +552,7 @@ class RecordOUT extends Component
|
|
|
|
|
|
public function delPeriod($idx, $xxx)
|
|
|
{
|
|
|
- array_splice($this->rows[$idx]['when'], $xxx, $xxx);
|
|
|
+ array_splice($this->rows[$idx]['when'], $xxx, 1);
|
|
|
// $this->emit('load-select');
|
|
|
}
|
|
|
|
|
|
@@ -591,4 +591,9 @@ class RecordOUT extends Component
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public function multiPeriodCancel()
|
|
|
+ {
|
|
|
+ $this->multiP = false;
|
|
|
+ }
|
|
|
+
|
|
|
}
|