';
+
+
+$db->close();
+
+llxFooter();
+?>
diff --git a/htdocs/compta/localtax/fiche.php b/htdocs/compta/localtax/fiche.php
new file mode 100644
index 00000000000..b27fe6f63b2
--- /dev/null
+++ b/htdocs/compta/localtax/fiche.php
@@ -0,0 +1,266 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+/**
+ * \file htdocs/compta/localtax/fiche.php
+ * \ingroup tax
+ * \brief Page of IRPF payments
+ */
+
+require('../../main.inc.php');
+require_once(DOL_DOCUMENT_ROOT."/compta/localtax/class/localtax.class.php");
+require_once(DOL_DOCUMENT_ROOT."/compta/bank/class/account.class.php");
+
+$langs->load("compta");
+$langs->load("banks");
+$langs->load("bills");
+
+$id=$_REQUEST["id"];
+
+$mesg = '';
+
+// Security check
+$socid = isset($_GET["socid"])?$_GET["socid"]:'';
+if ($user->societe_id) $socid=$user->societe_id;
+$result = restrictedArea($user, 'tax', '', '', 'charges');
+
+
+/*
+ * Actions
+ */
+
+//add payment of localtax
+if ($_POST["action"] == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
+{
+ $localtax = new localtax($db);
+
+ $db->begin();
+
+ $datev=dol_mktime(12,0,0, $_POST["datevmonth"], $_POST["datevday"], $_POST["datevyear"]);
+ $datep=dol_mktime(12,0,0, $_POST["datepmonth"], $_POST["datepday"], $_POST["datepyear"]);
+
+ $localtax->accountid=$_POST["accountid"];
+ $localtax->paymenttype=$_POST["paiementtype"];
+ $localtax->datev=$datev;
+ $localtax->datep=$datep;
+ $localtax->amount=$_POST["amount"];
+ $localtax->label=$_POST["label"];
+
+ $ret=$localtax->addPayment($user);
+ if ($ret > 0)
+ {
+ $db->commit();
+ Header("Location: reglement.php");
+ exit;
+ }
+ else
+ {
+ $db->rollback();
+ $mesg='
";
+}
+
+
+$db->close();
+
+llxFooter();
+
+?>
diff --git a/htdocs/compta/localtax/index.php b/htdocs/compta/localtax/index.php
new file mode 100644
index 00000000000..8f2239ebc59
--- /dev/null
+++ b/htdocs/compta/localtax/index.php
@@ -0,0 +1,219 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+/**
+ * \file htdocs/compta/localtax/index.php
+ * \ingroup tax
+ * \brief Index page of IRPF reports
+ */
+require('../../main.inc.php');
+require_once(DOL_DOCUMENT_ROOT."/core/lib/tax.lib.php");
+require_once(DOL_DOCUMENT_ROOT."/compta/tva/class/tva.class.php");
+require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php");
+
+$langs->load("other");
+
+$year=$_GET["year"];
+if ($year == 0 )
+{
+ $year_current = strftime("%Y",time());
+ $year_start = $year_current;
+} else {
+ $year_current = $year;
+ $year_start = $year;
+}
+
+// Security check
+$socid = isset($_GET["socid"])?$_GET["socid"]:'';
+if ($user->societe_id) $socid=$user->societe_id;
+$result = restrictedArea($user, 'tax', '', '', 'charges');
+
+// Define modetax (0 or 1)
+// 0=normal, 1=option vat for services is on debit
+$modetax = $conf->global->TAX_MODE;
+if (isset($_GET["modetax"])) $modetax=$_GET["modetax"];
+
+function pt ($db, $sql, $date)
+{
+ global $conf, $bc,$langs;
+
+ $result = $db->query($sql);
+ if ($result)
+ {
+ $num = $db->num_rows($result);
+ $i = 0;
+ $total = 0;
+ print '
';
+
+/*
+ * Payed
+ */
+
+$sql = "SELECT SUM(amount) as mm, date_format(f.datev,'%Y-%m') as dm";
+$sql.= " FROM ".MAIN_DB_PREFIX."localtax as f";
+$sql.= " WHERE f.entity = ".$conf->entity;
+$sql.= " AND f.datev >= '".$db->idate(dol_get_first_day($y,1,false))."'";
+$sql.= " AND f.datev <= '".$db->idate(dol_get_last_day($y,12,false))."'";
+$sql.= " GROUP BY dm ASC";
+
+pt($db, $sql,$langs->trans("Year")." $y");
+
+print "
";
+
+print '';
+print '';
+
+$db->close();
+
+llxFooter();
+?>
diff --git a/htdocs/compta/localtax/reglement.php b/htdocs/compta/localtax/reglement.php
new file mode 100644
index 00000000000..bcfc27194e0
--- /dev/null
+++ b/htdocs/compta/localtax/reglement.php
@@ -0,0 +1,97 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+/**
+ * \file htdocs/compta/localtax/reglement.php
+ * \ingroup tax
+ * \brief List of IRPF payments
+ */
+
+require('../../main.inc.php');
+require_once(DOL_DOCUMENT_ROOT."/compta/localtax/class/localtax.class.php");
+
+$langs->load("compta");
+$langs->load("compta");
+
+// Security check
+$socid = isset($_GET["socid"])?$_GET["socid"]:'';
+if ($user->societe_id) $socid=$user->societe_id;
+$result = restrictedArea($user, 'tax', '', '', 'charges');
+
+/*
+ * View
+ */
+
+llxHeader();
+
+$localtax_static = new localtax($db);
+
+print_fiche_titre($langs->transcountry("LT2Payments",$mysoc->pays_code));
+
+$sql = "SELECT rowid, amount, label, f.datev as dm";
+$sql.= " FROM ".MAIN_DB_PREFIX."localtax as f ";
+$sql.= " WHERE f.entity = ".$conf->entity;
+$sql.= " ORDER BY dm DESC";
+
+$result = $db->query($sql);
+if ($result)
+{
+ $num = $db->num_rows($result);
+ $i = 0;
+ $total = 0 ;
+
+ print '
";
+ $db->free($result);
+}
+else
+{
+ dol_print_error($db);
+}
+
+$db->close();
+
+llxFooter();
+?>
diff --git a/htdocs/core/lib/tax.lib.php b/htdocs/core/lib/tax.lib.php
index d205b155185..3f6e6cb34ac 100644
--- a/htdocs/core/lib/tax.lib.php
+++ b/htdocs/core/lib/tax.lib.php
@@ -49,6 +49,8 @@ function vat_by_thirdparty($db, $y, $date_start, $date_end, $modetax, $direction
$invoicedettable='facturedet';
$fk_facture='fk_facture';
$total_tva='total_tva';
+ $total_localtax1='total_localtax1';
+ $total_localtax2='total_localtax2';
}
if ($direction == 'buy')
{
@@ -56,6 +58,8 @@ function vat_by_thirdparty($db, $y, $date_start, $date_end, $modetax, $direction
$invoicedettable='facture_fourn_det';
$fk_facture='fk_facture_fourn';
$total_tva='tva';
+ $total_localtax1='total_localtax1';
+ $total_localtax2='total_localtax2';
}
// Define sql request
@@ -74,8 +78,10 @@ function vat_by_thirdparty($db, $y, $date_start, $date_end, $modetax, $direction
}
if ($conf->global->MAIN_MODULE_COMPTABILITE)
{
- $sql = "SELECT s.rowid as socid, s.nom as nom, s.tva_intra as tva_intra, s.tva_assuj as assuj,";
- $sql.= " sum(fd.total_ht) as amount, sum(fd.".$total_tva.") as tva";
+ $sql = "SELECT s.rowid as socid, s.nom as nom, s.siren as tva_intra, s.tva_assuj as assuj,";
+ $sql.= " sum(fd.total_ht) as amount, sum(fd.".$total_tva.") as tva,";
+ $sql.= " sum(fd.".$total_localtax1.") as localtax1,";
+ $sql.= " sum(fd.".$total_localtax2.") as localtax2";
$sql.= " FROM ".MAIN_DB_PREFIX.$invoicetable." as f,";
$sql.= " ".MAIN_DB_PREFIX.$invoicedettable." as fd,";
$sql.= " ".MAIN_DB_PREFIX."societe as s";
@@ -195,6 +201,8 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
$fk_facture2='fk_facture';
$fk_payment='fk_paiement';
$total_tva='total_tva';
+ $total_localtax1='total_localtax1';
+ $total_localtax2='total_localtax2';
$paymenttable='paiement';
$paymentfacturetable='paiement_facture';
}
@@ -206,6 +214,8 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
$fk_facture2='fk_facturefourn';
$fk_payment='fk_paiementfourn';
$total_tva='tva';
+ $total_localtax1='total_localtax1';
+ $total_localtax2='total_localtax2';
$paymenttable='paiementfourn';
$paymentfacturetable='paiementfourn_facturefourn';
}
@@ -229,6 +239,7 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
{
// Count on delivery date (use invoice date as delivery is unknown)
$sql = "SELECT d.rowid, d.product_type as dtype, d.".$fk_facture." as facid, d.tva_tx as rate, d.total_ht as total_ht, d.total_ttc as total_ttc, d.".$total_tva." as total_vat, d.description as descr,";
+ $sql .=" d.".$total_localtax1." as total_localtax1, d.".$total_localtax2." as total_localtax2, ";
$sql.= " d.date_start as date_start, d.date_end as date_end,";
$sql.= " f.facnumber as facnum, f.type, f.total_ttc as ftotal_ttc,";
$sql.= " p.rowid as pid, p.ref as pref, p.fk_product_type as ptype,";
@@ -275,6 +286,7 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
{
// Count on delivery date (use invoice date as delivery is unknown)
$sql = "SELECT d.rowid, d.product_type as dtype, d.".$fk_facture." as facid, d.tva_tx as rate, d.total_ht as total_ht, d.total_ttc as total_ttc, d.".$total_tva." as total_vat, d.description as descr,";
+ $sql .=" d.".$total_localtax1." as total_localtax1, d.".$total_localtax2." as total_localtax2, ";
$sql.= " d.date_start as date_start, d.date_end as date_end,";
$sql.= " f.facnumber as facnum, f.type, f.total_ttc as ftotal_ttc,";
$sql.= " p.rowid as pid, p.ref as pref, p.fk_product_type as ptype,";
@@ -331,12 +343,16 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
{
if (! isset($list[$assoc['rate']]['totalht'])) $list[$assoc['rate']]['totalht']=0;
if (! isset($list[$assoc['rate']]['vat'])) $list[$assoc['rate']]['vat']=0;
+ if (! isset($list[$assoc['rate']]['locatax1'])) $list[$assoc['rate']]['localtax1']=0;
+ if (! isset($list[$assoc['rate']]['locatax2'])) $list[$assoc['rate']]['localtax2']=0;
if ($assoc['rowid'] != $oldrowid) // Si rupture sur d.rowid
{
$oldrowid=$assoc['rowid'];
$list[$assoc['rate']]['totalht'] += $assoc['total_ht'];
$list[$assoc['rate']]['vat'] += $assoc['total_vat'];
+ $list[$assoc['rate']]['localtax1'] += $assoc['total_localtax1'];
+ $list[$assoc['rate']]['localtax2'] += $assoc['total_localtax2'];
}
$list[$assoc['rate']]['dtotal_ttc'][] = $assoc['total_ttc'];
$list[$assoc['rate']]['dtype'][] = $assoc['dtype'];
@@ -351,6 +367,8 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
$list[$assoc['rate']]['totalht_list'][] = $assoc['total_ht'];
$list[$assoc['rate']]['vat_list'][] = $assoc['total_vat'];
+ $list[$assoc['rate']]['localtax1_list'][] = $assoc['total_localtax1'];
+ $list[$assoc['rate']]['localtax2_list'][] = $assoc['total_localtax2'];
$list[$assoc['rate']]['pid'][] = $assoc['pid'];
$list[$assoc['rate']]['pref'][] = $assoc['pref'];
@@ -390,6 +408,7 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
{
// Count on invoice date
$sql = "SELECT d.rowid, d.product_type as dtype, d.".$fk_facture." as facid, d.tva_tx as rate, d.total_ht as total_ht, d.total_ttc as total_ttc, d.".$total_tva." as total_vat, d.description as descr,";
+ $sql .=" d.".$total_localtax1." as total_localtax1, d.".$total_localtax2." as total_localtax2, ";
$sql.= " d.date_start as date_start, d.date_end as date_end,";
$sql.= " f.facnumber as facnum, f.type, f.total_ttc as ftotal_ttc,";
$sql.= " p.rowid as pid, p.ref as pref, p.fk_product_type as ptype,";
@@ -437,6 +456,7 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
{
// Count on payments date
$sql = "SELECT d.rowid, d.product_type as dtype, d.".$fk_facture." as facid, d.tva_tx as rate, d.total_ht as total_ht, d.total_ttc as total_ttc, d.".$total_tva." as total_vat, d.description as descr,";
+ $sql .=" d.".$total_localtax1." as total_localtax1, d.".$total_localtax2." as total_localtax2, ";
$sql.= " d.date_start as date_start, d.date_end as date_end,";
$sql.= " f.facnumber as facnum, f.type, f.total_ttc as ftotal_ttc,";
$sql.= " p.rowid as pid, p.ref as pref, p.fk_product_type as ptype,";
@@ -491,12 +511,16 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
{
if (! isset($list[$assoc['rate']]['totalht'])) $list[$assoc['rate']]['totalht']=0;
if (! isset($list[$assoc['rate']]['vat'])) $list[$assoc['rate']]['vat']=0;
+ if (! isset($list[$assoc['rate']]['locatax1'])) $list[$assoc['rate']]['localtax1']=0;
+ if (! isset($list[$assoc['rate']]['locatax2'])) $list[$assoc['rate']]['localtax2']=0;
if ($assoc['rowid'] != $oldrowid) // Si rupture sur d.rowid
{
$oldrowid=$assoc['rowid'];
$list[$assoc['rate']]['totalht'] += $assoc['total_ht'];
$list[$assoc['rate']]['vat'] += $assoc['total_vat'];
+ $list[$assoc['rate']]['localtax1'] += $assoc['total_localtax1'];
+ $list[$assoc['rate']]['localtax2'] += $assoc['total_localtax2'];
}
$list[$assoc['rate']]['dtotal_ttc'][] = $assoc['total_ttc'];
$list[$assoc['rate']]['dtype'][] = $assoc['dtype'];
@@ -511,6 +535,8 @@ function vat_by_date($db, $y, $q, $date_start, $date_end, $modetax, $direction,
$list[$assoc['rate']]['totalht_list'][] = $assoc['total_ht'];
$list[$assoc['rate']]['vat_list'][] = $assoc['total_vat'];
+ $list[$assoc['rate']]['localtax1_list'][] = $assoc['total_localtax1'];
+ $list[$assoc['rate']]['localtax2_list'][] = $assoc['total_localtax2'];
$list[$assoc['rate']]['pid'][] = $assoc['pid'];
$list[$assoc['rate']]['pref'][] = $assoc['pref'];
diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php
index 9cf00b15144..fef135ddf43 100644
--- a/htdocs/core/menus/standard/eldy.lib.php
+++ b/htdocs/core/menus/standard/eldy.lib.php
@@ -941,7 +941,20 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after)
if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/reglement.php?leftmenu=tax_vat",$langs->trans("Payments"),2,$user->rights->tax->charges->lire);
if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/clients.php?leftmenu=tax_vat", $langs->trans("ReportByCustomers"), 2, $user->rights->tax->charges->lire);
if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/tva/quadri_detail.php?leftmenu=tax_vat", $langs->trans("ReportByQuarter"), 2, $user->rights->tax->charges->lire);
+ global $mysoc;
+
+ //Local Taxes
+ if($mysoc->pays_code=='ES' && $mysoc->localtax2_assuj=="1")
+ {
+ if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/index.php?leftmenu=tax_vat&mainmenu=accountancy",$langs->transcountry("LT2",$mysoc->pays_code),1,$user->rights->tax->charges->lire);
+ if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/fiche.php?leftmenu=tax_vat&action=create",$langs->trans("NewPayment"),2,$user->rights->tax->charges->creer);
+ if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/reglement.php?leftmenu=tax_vat",$langs->trans("Payments"),2,$user->rights->tax->charges->lire);
+ if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/clients.php?leftmenu=tax_vat", $langs->trans("ReportByCustomers"), 2, $user->rights->tax->charges->lire);
+ //if (preg_match('/^tax/i',$leftmenu)) $newmenu->add("/compta/localtax/quadri_detail.php?leftmenu=tax_vat", $langs->trans("ReportByQuarter"), 2, $user->rights->tax->charges->lire);
+ }
+
}
+
}
// Compta simple
diff --git a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql
index db1a3928437..ad8aebf52a9 100755
--- a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql
+++ b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql
@@ -69,3 +69,17 @@ DROP TABLE IF EXISTS llx_pos_tmp;
ALTER TABLE llx_deplacement ADD COLUMN fk_user_modif integer AFTER fk_user_author;
+CREATE TABLE IF NOT EXISTS `llx_localtax` (
+ `rowid` int(11) NOT NULL AUTO_INCREMENT,
+ `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `datep` date DEFAULT NULL,
+ `datev` date DEFAULT NULL,
+ `amount` double NOT NULL DEFAULT '0',
+ `label` varchar(255) DEFAULT NULL,
+ `entity` int(11) NOT NULL DEFAULT '1',
+ `note` text,
+ `fk_bank` int(11) DEFAULT NULL,
+ `fk_user_creat` int(11) DEFAULT NULL,
+ `fk_user_modif` int(11) DEFAULT NULL,
+ PRIMARY KEY (`rowid`)
+) ENGINE=InnoDB;
diff --git a/htdocs/install/mysql/tables/llx_localtax.sql b/htdocs/install/mysql/tables/llx_localtax.sql
new file mode 100644
index 00000000000..460c3c29c63
--- /dev/null
+++ b/htdocs/install/mysql/tables/llx_localtax.sql
@@ -0,0 +1,42 @@
+-- ===================================================================
+-- Copyright (C) 2002-2003 Rodolphe Quiedeville
+-- Copyright (C) 2005-2009 Regis Houssin
+-- Copyright (C) 2011 Juanjo Menent
+--
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program. If not, see .
+--
+-- ===================================================================
+
+create table llx_localtax
+(
+ rowid integer AUTO_INCREMENT PRIMARY KEY,
+ tms timestamp,
+ datep date, -- date of payment
+ datev date, -- date of value
+ amount real NOT NULL DEFAULT 0,
+ label varchar(255),
+ entity integer DEFAULT 1 NOT NULL,
+ note text,
+ fk_bank integer,
+ fk_user_creat integer,
+ fk_user_modif integer
+)ENGINE=innodb;
+
+--
+-- List of codes for the field entity
+--
+-- 1 : first company vat
+-- 2 : second company vat
+-- 3 : etc...
+--
\ No newline at end of file
diff --git a/htdocs/langs/ca_ES/main.lang b/htdocs/langs/ca_ES/main.lang
index a7b91bf1f81..c7e728552cf 100644
--- a/htdocs/langs/ca_ES/main.lang
+++ b/htdocs/langs/ca_ES/main.lang
@@ -296,6 +296,8 @@ IncludedVAT=IVA inclòs
HT=Sense IVA
TTC=IVA inclòs
VAT=IVA
+LT1ES=RE
+LT2ES=IRPF
VATRate=Taxa IVA
Average=Mitja
Sum=Suma
diff --git a/htdocs/langs/en_US/compta.lang b/htdocs/langs/en_US/compta.lang
index 0e720a94b5d..6fb68b6bd24 100644
--- a/htdocs/langs/en_US/compta.lang
+++ b/htdocs/langs/en_US/compta.lang
@@ -37,7 +37,11 @@ VATToPay=VAT sells
VATReceived=VAT received
VATToCollect=VAT purchases
VATSummary=VAT Balance
+LT2SummaryES=IRPF Balance
VATPaid=VAT paid
+LT2PaidES=IRPF Paid
+LT2CustomerES=IRPF sales
+LT2SupplierES=IRPF purchases
VATCollected=VAT collected
ToPay=To pay
ToGet=To get back
@@ -63,6 +67,9 @@ ListOfCustomerPayments=List of customer payments
ListOfSupplierPayments=List of supplier payments
DatePayment=Payment date
NewVATPayment=New VAT payment
+newLT2PaymentES=New IRPF payment
+LT2PaymentES=IRPF Payment
+LT2PaymentsES=IRPF Payments
VATPayment=VAT Payment
VATPayments=VAT Payments
SocialContributionsPayments=Social contributions payments
@@ -104,6 +111,7 @@ RulesResultDue=- Amounts shown are with all taxes included - It includes outs
RulesResultInOut=- Amounts shown are with all taxes included - It includes the real payments made on invoices, expenses and VAT. - It is based on the payment dates of the invoices, expenses anf VAT.
RulesCADue=- It includes the client's due invoices (except deposit invoices) whether they are paid or not. - It is based on the validation date of these invoices.
RulesCAIn=- It includes all the effective payments of invoices received from clients. - It is based on the payment date of these invoices
+LT2ReportByCustomersInInputOutputModeES=Report by third party IRPF
VATReportByCustomersInInputOutputMode=Report by the customer VAT collected and paid (VAT receipt)
VATReportByCustomersInDueDebtMode=Report by the customer VAT collected and paid (VAT rate)
VATReportByQuartersInInputOutputMode=Report by rate of the VAT collected and paid (VAT receipt)
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 6684d5ed698..4ae7c7e8fad 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -298,6 +298,8 @@ IncludedVAT=Included tax
HT=Net of tax
TTC=Inc. tax
VAT=Sales tax
+LT1ES=RE
+LT2ES=IRPF
VATRate=Tax Rate
Average=Average
Sum=Sum
diff --git a/htdocs/langs/es_ES/compta.lang b/htdocs/langs/es_ES/compta.lang
index 8d7575fb961..64c104a878a 100644
--- a/htdocs/langs/es_ES/compta.lang
+++ b/htdocs/langs/es_ES/compta.lang
@@ -37,7 +37,11 @@ VATToPay=IVA ventas
VATReceived=IVA repercutido
VATToCollect=IVA compras
VATSummary=Balance de IVA
+LT2SummaryES=Balance de IRPF
VATPaid=IVA Pagado
+LT2PaidES=IRPF Pagado
+LT2CustomerES=IRPF ventas
+LT2SupplierES=IRPF compras
VATCollected=IVA recuperado
ToPay=A pagar
ToGetBack=A recuperar
@@ -63,6 +67,9 @@ ListOfCustomerPayments=Listado de pagos de clientes
ListOfSupplierPayments=Listado de pagos a proveedores
DatePayment=Fecha de pago
NewVATPayment=Nuevo pago de IVA
+newLT2PaymentES=Nuevo pago de IRPF
+LT2PaymentES=Pago IRPF
+LT2PaymentsES=Pagos IRPF
VATPayment=Pago IVA
VATPayments=Pagos IVA
SocialContributionsPayments=Pagos cargas sociales
@@ -104,6 +111,7 @@ RulesResultDue=- Los importes mostrados son importes totales - Incluye las fa
RulesResultInOut=- Los importes mostrados son importes totales - Incluye los pagos realizados para las facturas, cargas e IVA. - Se basa en la fecha de pago de las mismas.
RulesCADue=- Incluye las facturas a clientes (que no sean de anticipo), estén pagadas o no. - Se base en la fecha de validación de las mismas.
RulesCAIn=- Incluye los pagos efectuados de las facturas a clientes. - Se basa en la fecha de pago de las mismas
+LT2ReportByCustomersInInputOutputModeES=Informe por tercero del IRPF
VATReportByCustomersInInputOutputMode=Informe por cliente del IVA repercutido y pagado (IVA pagado)
VATReportByCustomersInDueDebtMode=Informe por cliente del IVA repercutido y pagado (IVA debido)
VATReportByQuartersInInputOutputMode=Informe por tasa del IVA repercutido y pagado (IVA pagado)
diff --git a/htdocs/langs/es_ES/main.lang b/htdocs/langs/es_ES/main.lang
index 362aa346f85..04de2801b71 100644
--- a/htdocs/langs/es_ES/main.lang
+++ b/htdocs/langs/es_ES/main.lang
@@ -296,6 +296,8 @@ IncludedVAT=IVA incluido
HT=Sin IVA
TTC=IVA incluido
VAT=IVA
+LT1ES=RE
+LT2ES=IRPF
VATRate=Tasa IVA
Average=Media
Sum=Suma
diff --git a/htdocs/langs/fr_FR/compta.lang b/htdocs/langs/fr_FR/compta.lang
index 1bd9a474680..f4d2a469fb7 100644
--- a/htdocs/langs/fr_FR/compta.lang
+++ b/htdocs/langs/fr_FR/compta.lang
@@ -37,8 +37,12 @@ VATToPay=TVA ventes
VATReceived=TVA collectée
VATToCollect=TVA achats
VATSummary=Balance de TVA
+LT2SummaryES=Balance de IRPF
VATPaid=TVA payée
+LT2PaidES=IRPF Payée
VATCollected=TVA récupérée
+LT2CustomerES=IRPF ventes
+LT2SupplierES=IRPF achats
ToPay=A payer
ToGetBack=A récupérer
TaxAndDividendsArea=Espace taxes, charges sociales et dividendes
@@ -65,6 +69,9 @@ DatePayment=Date de règlement
NewVATPayment=Nouveau règlement de TVA
VATPayment=Règlement TVA
VATPayments=Règlements TVA
+LT2PaymentES=Règlement IRPF
+LT2PaymentsES=Règlements IRPF
+newLT2PaymentES=Nouveau règlement de IRPF
SocialContributionsPayments=Règlements charges sociales
ShowVatPayment=Affiche paiement TVA
TotalToPay=Total à payer
@@ -104,6 +111,7 @@ RulesResultDue=- Les montants affichés sont les montants taxe incluse - Il i
RulesResultInOut=- Les montants affichés sont les montants taxe incluse - Il inclut les règlements effectivement réalisés pour les factures, les charges et la TVA. - Il se base sur la date de règlement de ces factures, charges et TVA.
RulesCADue=- Il inclut les factures clients dues (hors facture accompte), qu'elles soient payées ou non. - Il se base sur la date de validation de ces factures.
RulesCAIn=- Il inclut les règlements effectivement reçus des factures clients. - Il se base sur la date de règlement de ces factures
+LT2ReportByCustomersInInputOutputModeES=Rapport par client des IRPF
VATReportByCustomersInInputOutputMode=Rapport par client des TVA collectées et payées (TVA sur encaissement)
VATReportByCustomersInDueDebtMode=Rapport par client des TVA collectées et payées (TVA sur débit)
VATReportByQuartersInInputOutputMode=Rapport par taux des TVA collectées et payées (TVA sur encaissement)
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index 2fd6ce72242..d5a42c3a6e0 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -298,6 +298,8 @@ IncludedVAT=Dont TVA
HT=HT
TTC=TTC
VAT=TVA
+LT1ES=RE
+LT2ES=IRPF
VATRate=Taux TVA
Average=Moyenne
Sum=Somme