Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -1645,7 +1645,7 @@
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>DESC.</Value>
|
||||
<Value>=IIf((Min(Fields!Descuento.Value, "DsOC") = 0.01),"","DESC.")</Value>
|
||||
<Style>
|
||||
<FontFamily>Calibri</FontFamily>
|
||||
<FontSize>9.5pt</FontSize>
|
||||
@@ -1969,7 +1969,7 @@
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Fields!Descuento.Value</Value>
|
||||
<Value>=IIf((Min(Fields!Descuento.Value, "DsOC") = 0.01),nothing,Fields!Descuento.Value)</Value>
|
||||
<Style>
|
||||
<FontFamily>Calibri</FontFamily>
|
||||
<FontSize>7.5pt</FontSize>
|
||||
@@ -1994,6 +1994,7 @@
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<rd:Selected>true</rd:Selected>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
@@ -2030,7 +2031,6 @@
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<rd:Selected>true</rd:Selected>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
@@ -2101,7 +2101,7 @@
|
||||
<Top>2.25503in</Top>
|
||||
<Left>0.05854in</Left>
|
||||
<Height>0.36345in</Height>
|
||||
<Width>8.21572in</Width>
|
||||
<Width>8.21571in</Width>
|
||||
<ZIndex>5</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
|
||||
@@ -2669,6 +2669,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
#region SobreRecibo
|
||||
protected void LnkAutorizarSobreRecibo_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargaDatos(false, -1);
|
||||
autorizarNomina(SRCvePersonal);
|
||||
showhideaccionesSR(true);
|
||||
}
|
||||
@@ -2689,6 +2690,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DataRow dr = dtempleados.FiltroPrimero(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
if (desAutorizarNomina(dr["CveNomina"].ToString().ToEntero()))
|
||||
{
|
||||
cargaDatos(false, -1);
|
||||
dtPerEmpleados = dtempleados.FiltraParametros(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
dtPerEmpleadosConceptos = dtempleadosConceptos.FiltraParametros(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
dtPerConceptos = dtConceptos;
|
||||
dtPerPeriodo = dtPeriodos;
|
||||
showhideaccionesSR(false);
|
||||
|
||||
}
|
||||
@@ -2715,6 +2721,11 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
{
|
||||
cargaDatos(CvePersonal: SRCvePersonal);
|
||||
|
||||
dtPerEmpleados = dtempleados.FiltraParametros(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
dtPerEmpleadosConceptos = dtempleadosConceptos.FiltraParametros(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
dtPerConceptos = dtConceptos;
|
||||
dtPerPeriodo = dtPeriodos;
|
||||
|
||||
}
|
||||
DataRow dr = dtPerEmpleados.FiltroPrimero(string.Format("CvePersonal = {0}", SRCvePersonal));
|
||||
NomAutorizado = dr["NomAutorizado"].ToString().ToUpper().Contiene(new string[] { "1", "TRUE" });
|
||||
@@ -7151,6 +7162,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
|
||||
protected void LnkAutorizar_Click(object sender, EventArgs e)
|
||||
{
|
||||
cargaDatos(false, -1);
|
||||
if (autorizarNomina(-1))
|
||||
{
|
||||
using (ClsNominas objNomina = new ClsNominas())
|
||||
|
||||
@@ -759,9 +759,9 @@
|
||||
</div>
|
||||
<ajax:MaskedEditExtender ID="MKEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" BehaviorID="_content_MKEFechaBaja" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""></ajax:MaskedEditExtender>
|
||||
<ajax:CalendarExtender ID="CEFechaBaja" runat="server" TargetControlID="TxtFechaBaja" PopupButtonID="ImgFechaBaja" PopupPosition="BottomRight" BehaviorID="_content_CEFechaBaja"></ajax:CalendarExtender>
|
||||
<asp:CompareValidator ID="CVFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>
|
||||
<%--<asp:CompareValidator ID="CVFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar" Visible="False"></asp:CompareValidator>--%>
|
||||
|
||||
<asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<%--<asp:RequiredFieldValidator ID="RfvTxtFechaBaja" runat="server" ControlToValidate="TxtFechaBaja" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha de Baja''</b> es necesario " ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>--%>
|
||||
<i></i>
|
||||
|
||||
</div>
|
||||
@@ -3084,7 +3084,7 @@
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright calendarlinealinput" style="width: 100px !important">
|
||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="width: 160px;">
|
||||
<asp:TextBox ID="TxtFechaInicioVac" runat="server" CausesValidation="true" CssClass="form-control input-sm" onblur="calculaFechasVacaciones();"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtFechaInicioVac" runat="server" CausesValidation="true" CssClass="form-control input-sm" onkeyup="calculaFechasVacaciones();"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgTxtFechaInicioVac" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
@@ -3100,7 +3100,7 @@
|
||||
|
||||
<asp:Panel runat="server" ID="PnlVacDiasPago" CssClass="col-md-3">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtVacDiasPago" CssClass="form-control input-sm form-small" type="number" runat="server" Style="margin-top: 20px!important" onblur="calculaFechasVacaciones();"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtVacDiasPago" CssClass="form-control input-sm form-small" type="number" runat="server" Style="margin-top: 20px!important" onkeyup="calculaFechasVacaciones();"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender runat="server" TargetControlID="TxtVacDiasPago" ValidChars="0123456789" />
|
||||
<asp:Label runat="server" AssociatedControlID="TxtVacDiasPago" Style="margin-top: 10px!important">Días pago</asp:Label>
|
||||
</div>
|
||||
@@ -3110,7 +3110,7 @@
|
||||
<div class="col-md-3" style="max-height:58px!important" runat="server" id="PnlVacfechas2">
|
||||
<div class="form-group form-md-line-input input-iconright calendarlinealinput" style="width: 100px !important">
|
||||
<div class="input-group input-sm date date-picker" data-date-format="dd/mm/yyyy" style="width: 160px;">
|
||||
<asp:TextBox ID="TxtFechaFinVac" runat="server" CausesValidation="true" CssClass="form-control input-sm" ClientIDMode="Static" onblur="calculaFechasVacacionesFechaFin()"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtFechaFinVac" runat="server" CausesValidation="true" CssClass="form-control input-sm" ClientIDMode="Static" onkeyup="calculaFechasVacacionesFechaFin()"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
<asp:LinkButton ID="ImgTxtFechaFinVac" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||
</span>
|
||||
@@ -7346,16 +7346,27 @@
|
||||
return pstCURP
|
||||
}
|
||||
|
||||
|
||||
function calculaFechasVacaciones(sender, e){
|
||||
$('#LnkCalculaFechasVacaciones').click();
|
||||
gcalculaFechasVacaciones=1
|
||||
function calculaFechasVacaciones(sender, e) {
|
||||
gcalculaFechasVacaciones = gcalculaFechasVacaciones+1
|
||||
let varcalculaFechasVacaciones = gcalculaFechasVacaciones;
|
||||
setTimeout(() => {
|
||||
if (varcalculaFechasVacaciones == gcalculaFechasVacaciones) { $('#LnkCalculaFechasVacaciones').click(); } }
|
||||
, 3000)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
gcalculaFechasVacacionesFechaFin=1
|
||||
|
||||
function calculaFechasVacacionesFechaFin(sender, e) {
|
||||
$('#LnkCalculaFechasVacacionesFechaFin').click();
|
||||
function calculaFechasVacacionesFechaFin(sender, e) {
|
||||
|
||||
gcalculaFechasVacacionesFechaFin = gcalculaFechasVacacionesFechaFin + 1
|
||||
let varcalculaFechasVacacionesFechaFin = gcalculaFechasVacacionesFechaFin;
|
||||
setTimeout(() => {
|
||||
if (varcalculaFechasVacacionesFechaFin == gcalculaFechasVacacionesFechaFin) { $('#LnkCalculaFechasVacacionesFechaFin').click(); }
|
||||
}
|
||||
, 3000)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7873,6 +7873,11 @@ Partial Class PV
|
||||
DescuentoCargo = (TotalAnterior - Dr("Descuento").ToString.ToDecimal())
|
||||
End If
|
||||
|
||||
'AJUSTA EL DESCUENTO PARA QUE NO RESTE EL TOTAL
|
||||
If DescuentoCargo = (TotalAnterior - Dr("Descuento").ToString.ToDecimal()) Then
|
||||
DescuentoCargo -= 0.01D
|
||||
End If
|
||||
|
||||
Dim Descuento As Decimal = Dr("Descuento").ToString.ToDecimal + DescuentoCargo
|
||||
Dim TotalCalculableImpuestos As Decimal = (Dr("Cantidad").ToString.ToDecimal * (Dr("PU").ToString.ToDecimal)) - Descuento
|
||||
TotalCargos -= DescuentoCargo
|
||||
@@ -7896,6 +7901,7 @@ Partial Class PV
|
||||
|
||||
Next
|
||||
TmpDT.AcceptChanges()
|
||||
|
||||
If TotalCargos > 0 Then ' cuando se entrega más valor de usados, que los cargos hechos, se descuenta sobre el PU del producto de venta
|
||||
Dim DtPSFiltro As DataTable = TmpDT.FiltraParametros($"Consec = {ConsecPSPadre} AND EsCargo = False AND EliminarDB = False AND CvePS={CvePS} AND (Total - Descuento) > 0.0000", Orderby:="Consec DESC")
|
||||
Dim Divisor As Decimal = 1
|
||||
|
||||
@@ -12380,7 +12380,7 @@ Partial Class Ventas
|
||||
Timbre.Comprobante.Serie = Obj.Serie
|
||||
Timbre.Comprobante.Fecha = Obj.FechaCP
|
||||
Timbre.Comprobante.FormadePago = Obj.FormaPagoSAT33
|
||||
Timbre.Comprobante.CondicionesdePago = Obj.FormaPago33
|
||||
Timbre.Comprobante.CondicionesdePago = If(UsuarioActual.CveEmpresa.Contiene(15, 76), "No Aplica", Obj.FormaPago33)
|
||||
Timbre.Comprobante.MetodoPago = Obj.ClaveMetodoPagoSAT
|
||||
Timbre.Comprobante.SubTotal = Obj.SubTotal
|
||||
Timbre.Comprobante.Descuentos = Obj.Descuento
|
||||
|
||||
Reference in New Issue
Block a user