|
|
@@ -908,7 +908,7 @@ class RecordOUT extends Component
|
|
|
$record->payment_method_id = $paymentMethodId;
|
|
|
$record->date = $fatturaData['dataDocumento'];
|
|
|
$record->type = 'OUT';
|
|
|
- $record->commercial = 0;
|
|
|
+ $record->commercial = 1;
|
|
|
$record->corrispettivo_fiscale = 0;
|
|
|
$record->deleted = 0;
|
|
|
$record->financial_movement = 1;
|
|
|
@@ -945,7 +945,7 @@ class RecordOUT extends Component
|
|
|
$recordRow->causal_id = $this->selectedCausal;
|
|
|
$recordRow->when = json_encode($whenData);
|
|
|
$recordRow->amount = $fatturaData['importoTotale'];
|
|
|
- $recordRow->commercial = 0;
|
|
|
+ $recordRow->commercial = 1;
|
|
|
|
|
|
$noteData = '';
|
|
|
if (isset($fatturaData['linee']) && is_array($fatturaData['linee'])) {
|
|
|
@@ -1062,7 +1062,7 @@ class RecordOUT extends Component
|
|
|
$receiptRow->causal_id = $this->selectedCausal;
|
|
|
$receiptRow->amount = $linea['prezzoTotale'];
|
|
|
$receiptRow->note = $linea['descrizione'];
|
|
|
- $receiptRow->commercial = true;
|
|
|
+ $receiptRow->commercial = 1;
|
|
|
|
|
|
$receiptRow->when = json_encode($whenData);
|
|
|
$receiptRow->aliquota_iva = $linea['aliquotaIva'];
|
|
|
@@ -1112,7 +1112,7 @@ class RecordOUT extends Component
|
|
|
$receiptRow->receip_id = $receiptId;
|
|
|
$receiptRow->causal_id = $this->selectedCausal;
|
|
|
$receiptRow->amount = $riepilogo['imponibile'];
|
|
|
- $receiptRow->commercial = true;
|
|
|
+ $receiptRow->commercial = 1;
|
|
|
|
|
|
$receiptRow->when = json_encode($whenData);
|
|
|
$receiptRow->aliquota_iva = $riepilogo['aliquotaIva'];
|
|
|
@@ -1155,7 +1155,7 @@ class RecordOUT extends Component
|
|
|
$receiptRow->receip_id = $receiptId;
|
|
|
$receiptRow->causal_id = $this->selectedCausal;
|
|
|
$receiptRow->amount = $fatturaData['importoTotale'];
|
|
|
- $receiptRow->commercial = true;
|
|
|
+ $receiptRow->commercial = 1;
|
|
|
|
|
|
$receiptRow->when = json_encode($whenData);
|
|
|
$receiptRow->divisa = $fatturaData['divisa'];
|