Fecha de vencimiento segun los datos del cliente
This commit is contained in:
@@ -433,11 +433,12 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
ObjFactura.Folio = -1
|
ObjFactura.Folio = -1
|
||||||
ObjFactura.Serie = "-1"
|
ObjFactura.Serie = "-1"
|
||||||
ObjFactura.CveMesa = -1
|
ObjFactura.CveMesa = -1
|
||||||
ObjFactura.Fecha = DR("FechaVenc").ToString.ToDate 'If(DR("FechaVenc").ToString.ToDate > Now, Now, DR("FechaVenc").ToString.ToDate)
|
ObjFactura.Fecha = If(DR("FechaVenc").ToString.ToDate > Now, Now, DR("FechaVenc").ToString.ToDate)
|
||||||
|
|
||||||
ObjFactura.CvePrePoliza = -1
|
ObjFactura.CvePrePoliza = -1
|
||||||
ObjFactura.CveMetodoPago = 1
|
ObjFactura.CveMetodoPago = 1
|
||||||
ObjFactura.MetodoPago = "Efectivo"
|
ObjFactura.MetodoPago = "Efectivo"
|
||||||
ObjFactura.FechaPago = DateTime.Today
|
|
||||||
ObjFactura.MotivoDescuento = ""
|
ObjFactura.MotivoDescuento = ""
|
||||||
ObjFactura.Observaciones = If(String.IsNullOrEmpty(TxtObservaciones.Text), "", TxtObservaciones.Text + " ") + DR("Observaciones").ToString
|
ObjFactura.Observaciones = If(String.IsNullOrEmpty(TxtObservaciones.Text), "", TxtObservaciones.Text + " ") + DR("Observaciones").ToString
|
||||||
ObjFactura.FechaEjecucion = DateTime.Today
|
ObjFactura.FechaEjecucion = DateTime.Today
|
||||||
@@ -567,6 +568,13 @@ Partial Class Contratos_FacturacionMasiva
|
|||||||
ViewState("CveCuentaRetIVA") = ObjCliente.CveCuentaRetIVA
|
ViewState("CveCuentaRetIVA") = ObjCliente.CveCuentaRetIVA
|
||||||
ViewState("IdCtaContRetISR") = ObjCliente.IdCtaContRetISR
|
ViewState("IdCtaContRetISR") = ObjCliente.IdCtaContRetISR
|
||||||
ViewState("CveCuentaRetISR") = ObjCliente.CveCuentaRetISR
|
ViewState("CveCuentaRetISR") = ObjCliente.CveCuentaRetISR
|
||||||
|
|
||||||
|
'AGREGAR LOS PLAZOS PARA EL PAGO DEL CLIENTE
|
||||||
|
Dim FechaPago As DateTime = ObjFactura.Fecha.AddDays(ObjCliente.PlazoCobranza)
|
||||||
|
ObjFactura.FechaVencimiento = FechaPago
|
||||||
|
ObjFactura.Vigencia = FechaPago
|
||||||
|
ObjFactura.FechaPago = FechaPago
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjCliente.Dispose()
|
ObjCliente.Dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user