Especifica feria/cambio
This commit is contained in:
@@ -3273,8 +3273,8 @@
|
|||||||
|
|
||||||
var totalVenta = ToDouble($get('TxtTotal').value);
|
var totalVenta = ToDouble($get('TxtTotal').value);
|
||||||
|
|
||||||
if (totalEfectivo > totalVenta) {
|
if (total > totalVenta) {
|
||||||
$get("TxtCambio").value = FormatoNumero(totalEfectivo - totalVenta);
|
$get("TxtCambio").value = FormatoNumero(total - totalVenta);
|
||||||
} else {
|
} else {
|
||||||
$get("TxtCambio").value = "0.00";
|
$get("TxtCambio").value = "0.00";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2967,8 +2967,6 @@
|
|||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVDDlMesesSinIntereses" runat="server" ControlToValidate="DDlMesesSinIntereses" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />campo <b>''Meses sin intereses''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
<%--<asp:RequiredFieldValidator ID="RFVDDlMesesSinIntereses" runat="server" ControlToValidate="DDlMesesSinIntereses" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />campo <b>''Meses sin intereses''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="CEDDlMesesSinIntereses" runat="server" HighlightCssClass="vco" TargetControlID="RFVDDlMesesSinIntereses" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
<ajax:ValidatorCalloutExtender ID="CEDDlMesesSinIntereses" runat="server" HighlightCssClass="vco" TargetControlID="RFVDDlMesesSinIntereses" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -3077,6 +3075,17 @@
|
|||||||
<br></br>
|
<br></br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
</div>
|
||||||
|
<label class="col-md-2">Cambio:</label>
|
||||||
|
<div class="col-md-4 input-icon">
|
||||||
|
<i style="margin: 0px;">$</i>
|
||||||
|
<asp:TextBox ID="TxtCambio" CssClass="form-control input-sm " Enabled="false" runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
||||||
|
<ajax:FilteredTextBoxExtender ID="FTBECambio" runat="server" TargetControlID="TxtCambio" FilterType="Custom, Numbers" ValidChars=".," />
|
||||||
|
<br></br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -6370,8 +6379,7 @@
|
|||||||
$get('TxtTotalGv').value = FormatoNumero(TotalImportes, 2);
|
$get('TxtTotalGv').value = FormatoNumero(TotalImportes, 2);
|
||||||
$get('TxtNCImporte').value = FormatoNumero(total, 2);
|
$get('TxtNCImporte').value = FormatoNumero(total, 2);
|
||||||
|
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1')
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
||||||
{
|
|
||||||
CompararNC();
|
CompararNC();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6400,8 +6408,7 @@
|
|||||||
TxtImporte.value = "";
|
TxtImporte.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1')
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
||||||
{
|
|
||||||
CompararNC();
|
CompararNC();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6413,8 +6420,7 @@
|
|||||||
TxtImporte.value = "";
|
TxtImporte.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1')
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
||||||
{
|
|
||||||
CompararNC();
|
CompararNC();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6432,8 +6438,7 @@
|
|||||||
TxtImporte.value = FormatoNumero(ImporteNuevo, 2);
|
TxtImporte.value = FormatoNumero(ImporteNuevo, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1')
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
||||||
{
|
|
||||||
CompararNC();
|
CompararNC();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6476,8 +6481,7 @@
|
|||||||
|
|
||||||
TxtTotal.value = FormatoNumero(TotalConPorcentaje, 2);
|
TxtTotal.value = FormatoNumero(TotalConPorcentaje, 2);
|
||||||
|
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1')
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
||||||
{
|
|
||||||
CompararNC();
|
CompararNC();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6818,9 +6822,14 @@
|
|||||||
}
|
}
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia + TotalOtrosContado;
|
var total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia + TotalOtrosContado;
|
||||||
|
var totalVenta = ToDouble($get('TxtTotal').value);
|
||||||
|
|
||||||
|
if (total > totalVenta) {
|
||||||
|
$get("TxtCambio").value = FormatoNumero(total - totalVenta);
|
||||||
|
} else {
|
||||||
|
$get("TxtCambio").value = "0.00";
|
||||||
|
}
|
||||||
|
|
||||||
$get("TxtImporteContado").value = total;
|
$get("TxtImporteContado").value = total;
|
||||||
}
|
}
|
||||||
@@ -7475,8 +7484,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function CerrarModalRemNC() {
|
function CerrarModalRemNC() {
|
||||||
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1')
|
if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
||||||
{
|
|
||||||
CompararNC();
|
CompararNC();
|
||||||
}
|
}
|
||||||
$('#ModalAplicarRemisionesNC').modal('hide');
|
$('#ModalAplicarRemisionesNC').modal('hide');
|
||||||
|
|||||||
Reference in New Issue
Block a user