diff --git a/modules/customer-invoices/templates/sual/es/issued-invoice-sual.frx b/modules/customer-invoices/templates/sual/es/issued-invoice-sual.frx new file mode 100644 index 00000000..37b02247 --- /dev/null +++ b/modules/customer-invoices/templates/sual/es/issued-invoice-sual.frx @@ -0,0 +1,165 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + private void PanelBaseImponible_BeforePrint(object sender, EventArgs e) + { + if (Report.GetColumnValue("JSON.item.taxes.item.iva_name") == null) { + PanelIVA.Visible = false; + PanelRE.Visible = false; + PanelRetention.Top = PanelIVA.Top; + PanelTotal.Top = PanelRE.Top; + } + + if (Report.GetColumnValue("JSON.item.taxes.item.rec_name") == null) { + PanelRE.Visible = false; + PanelRetention.Top = PanelRE.Top; + PanelTotal.Top = PanelRetention.Top + PanelRetention.Height; + } + + if (Report.GetColumnValue("JSON.item.taxes.item.retention_name") == null) { + PanelRetention.Visible = false; + PanelTotal.Top = PanelRetention.Top; + } + + } + + private void ReportTitle1_BeforePrint(object sender, EventArgs e) + { + if (Convert.ToString(Report.GetColumnValue("JSON.item.tax_config.tax_mode")) == "single") { + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +