Retenciones Proveedores
Hola,
¿Dónde se puede indicar si un interlocutor comercial está sujeto a retenciones (por ejemplo autónomos) para que el apunte contable de recepción de factura se haga correctamente?
Muchas gracias.
Un saludo.
Esto lo puedes hacer en la ficha del Interlocutor Comercial, en el apartado de Finanzas hay un subapartado que se llama IMPUESTO, ahi hay un check que debes marcar si es afecto a retencion, al hacerlo te apareceran otras opciones entre ellas una que se llama Indicadores de retencion con un boton al lado ahi deberas de asignar que retenciones podrian afectar al proveedor.
te adjunto imagen de ejemplo, espero haberte podido ayudar.
Similar Messages
-
Buen dia,
tengo un problema en el momento de facturar, cuando el usuario abre la ventana de factura de cliente aparece el siguiente mensaje:
"The loged On user not have permission to use this object"
el sistema me esta calculando retenciones que no debe calcular, en un ,cliente le tengo predeterminada una retencion y me sale despues otro aviso donde me dice que este socio de negocio no aplica otra retencion que no le tengo predeterminada y no me deja crear la factura. y no me deja ir al enlace de la tabla de retenciones.
Que debo hacer?
GraciasHola Fabian,
Verifica en Gestion/Definiciones/Fiananzas/determinar cuentas de mayor pestaña ventas/impuestos o compras si es proveedor en campo CODIGO IMPUESTO DE RETENCION POR DEFECTO, que no haya alguno predefinido, de ser asi, quitalo y actualiza.
Si utilizas el addon BPCO, ve a Gestion/definiciones/finanzas/impuestos y ejecuta la opcion ELIMINAR RETECNIONES POR DEFECTO (previo backup de la BD), esta herramineta permite eliminar retenciones que han sido fijadas previamente como estandar.
Saludos,
JAMS -
Enter a country for partner 0000000497 with type 'Proveedor
Hi Masters.
I am working in settup scenario SRM/EBP to SRM/SUS. version 7.0
problem when send XI message into Srm/sus CLIENT The transaction SXMB_MONI in trace show the next message of error
Enter a country for partner 0000000497 with type 'Proveedor' = partner Proveedor
Enter a country for partner 0000001052 with type 'Parte venta' = Partner sales
Thanks.Hi S Neelima . thanks for you hellp, but I review the note 702786 and does not apply for my version srm server
my sp level is SAPKB70107 . I review the code in Include and yes is the correction mentioned into note.
another idea ?
Thank. -
Says:Se ha producido un error al comunicarse con el servidor FTP. Inténtelo más tarde o consulte al proveedor del servicio.
Google translation:
Says: There was an error communicating with the FTP server. Try again later or contact the service provider.
If you are using iWeb 2 (08) the iWeb is trying to connect to the MobileMe servers which have been defunct for over a year now.
Also iWeb 2 is not compatible with Mt. Lion. You will need to upgrade to iWeb 3 by purchasing an iLife 09 or 11 disc from a 3rd party retailer like Amazon.com.
OT -
Modelo 340 España. Compra proveedor extranjero
Buenos días,
tengo dudas en el registro de operaciones de compra a un proveedor extranjero y que estas se trasladen correctamente al fichero del modelo 340.
Supongamos el siguiente ejemplo:
Compro a un proveedor extranjero por 100.000€
El transitario declara una base de 130.000€. Gastos de gestión del transitario de 1.000€.
¿alguien me puede detallar como introducir las operaciones y que estas queden correctamente reflejadas en el modelo 340?
GraciasHi,
This is SAP Business one forum for English user. Please find correct forum and repost your question to get quick answer.
Kindly close this thread here.
Thanks & Regards,
Nagarajan -
Buen día, estamos configurando una nueva sociedad en Peru, con las opciones locales de Chile, pero al momento de querer configurar los socios de negocios que son Acreedores con Retenciones NO aparece el campo Sujeto a Retención.
Hicimos comparativo de la configuración actual, local de México que tenemos en nuestra sociedad y esta igual. Sólo nos hace falta este campo para terminar de generar las pruebas necesarias en la sociedad de Perú.
¿Alguien sabe donde se activa o donde se encuentra dentro de la localidad de Chile?Revisa la casilla en la ubicacion
Gestion --> Definiciones --> Finanzas --> Determinacion de cuentas del mayor --> Pestaña ventas --> Prestaña impuesto --> Casilla retencion de impuestos
Saludos -
Proveedor de streaming de radio
Buenas tardes,
necesito un proveedor para un streaming de radio.
Alguna recomendacion? o experiencia anterior (tanto buena
como mala)
Necesito algo que soporte bastantes oyentes pero que no sea
demasiado
caro. La calidad del audio sera baja ya que será voz en
monoNo es el ideal pero.... www.live365.com
Saludos
www.lucassevilla.info
"Juanjo Cardona" <[email protected]>
escribió en el mensaje
news:foi534$pbf$[email protected]..
> Buenas tardes,
> necesito un proveedor para un streaming de radio.
> Alguna recomendacion? o experiencia anterior (tanto
buena como mala)
> Necesito algo que soporte bastantes oyentes pero que no
sea demasiado
> caro. La calidad del audio sera baja ya que será
voz en mono -
Se puede usar otro proveedor de internet que no sea AT&T o Verison,
se puede usar otro proveedor de internet que no sea AT&T o Verison, soy de Guatemala, y las empresas aquí que pueden vender el servicio de internet se limita a Movistar o Tigo
se puede usar otro proveedor de internet que no sea AT&T o Verison, soy de Guatemala, y las empresas aquí que pueden vender el servicio de internet se limita a Movistar o Tigo
-
Error [3504-5] al tratar de crear un proveedor
Hoy al tratar de crear un proveedor me marca el siguiente error con un usuario. Socios de negocios - clave del idioma no existe el valor enlazado en la tabla de idioma del usuario mensaje , me podrían ayudar a saber que es, ya cheque sus autorizaciones y todo esta bien, tiene autorizacion total para proveedor, pero es lo que no entiendo por que le marca ese error.
Alguien me podría ayudar.Estimada Mary,
A los fines de solventar el mensaje de error, favor aplicar lo siguiente :
1. Verificar que la opción "Multi-Language support" ha sido seleccionada en system Initialization > Company Details>Basic initialisation.
Si lo anterior no soluciona el error :
2. Verifiquen si el error solo se presenta en un PC especifico o solo un usuario recibe este error al crear proveedores.
Esperando lo anterior les permita solventar lo reportado.
Queda a sus gratas ordenes,
Juan Manuel Marrero
SAP Business One Forums Team -
Copiado de maestro de proveedores de QAS a PRO
Que tal gurus,
Tengo un problema necesito planchar unicamente el maestro de acreedores de productivo a calidad para realizar unas pruebas.
Puede alguien ayudarme??
De antemano gracias.
JulioHola
Utiliza las transacciones FK15 y FK16.
Saludos
Jose -
Query with two registers, when i use two taxcode
Hi everybody, my question in this opportunity, it's about this query:
/*LIBRO DE COMPRAS CELULAR STRA S.A. DE C.V.*/
SELECT T0.[TaxDate] Fecha,
T0.[NumAtCard] 'DOCUMENTO',
T1.[U_RegIva] 'NRC',
T0.[CardCode] 'CODIGO DE PROVEEDOR',
T1.[U_NIT] 'NIT',
T0.[CardName] 'NOMBRE DE PROVEEDOR',
SUM(CASE
WHEN T2.[TaxCode] = 'IVAEXE' THEN T2.[LineTotal]
ELSE 0
END) 'LOCALES EXENTAS',
0.00 ImportacionesExentas,
(SELECT sum(T12.[LineTotal]) FROM PCH1 T12 INNER JOIN OPCH T10 ON T12.[DOCENTRY] = T10.[DOCENTRY] WHERE T12.[AcctCode] != '11209' AND T12. [TaxCode] = 'IVACCF' AND T12.[DOCENTRY] = T0.[DOCENTRY] AND T10.[TaxDate] >= '[%0]' and T10.[TaxDate] <= '[%1]') 'LOCALES GRAVADAS',
0.00 Importaciones,
T0.[VatSumSy] 'CREDITO FISCAL',
T0.[DocTotal]+
T0.[DocTotal] -(CASE
WHEN T2.[ACCTCODE] = '11209'
THEN ((SELECT (T12.[LineTotal]*-1)
FOM PCH1 T12
INNER JOIN OPCH T10 ON T12.[DOCENTRY] = T10.[DOCENTRY]
WHERE T12.[AcctCode] = '11209' AND
---T12.[TaxCode] = 'IVACCF' AND
(T12.[DOCENTRY] = T0.[DOCENTRY]) AND
T10.[TaxDate] >= '[%0]' and T10.[TaxDate] <= '[%1]'))
ELSE T0.[DOCTOTAL] END) 'TOTAL COMPRAS', --This statement, cause the error, or, think so i
(SELECT SUM(T13.[WTAMNT]) FROM PCH5 T13 WHERE (T13.[WTCode] = 'RET1' OR T13.[WTCode] = 'RET2') AND T13.[ABSENTRY] = T0.[DOCENTRY] )'RETENCION IVA',
0.00 ComprasExcluidos
FROM OPCH T0
INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode] INNER JOIN PCH1 T2 ON T0.[DocEntry] = T2.[DocEntry]
WHERE T0.[TaxDate] >= '[%0]' and T0.[TaxDate] <= '[%1]' AND T1.[Country] = 'SV' AND T0.[Series] = 7 and
t0.docnum not in (SELECT distinct T0.[DocNum] FROM [dbo].[OPCH] T0 INNER JOIN [dbo].[PCH1] T1 ON T0.DocEntry = T1.DocEntry
inner join RPC1 T2 on t1.trgetEntry=t2.docentry INNER JOIN ORPC T3 ON T2.DocEntry = T3.DocEntry
WHERE T3.[TaxDate] >= '[%0]' and T3.[TaxDate] <= '[%1]' and t3.series=9) AND
T0.NumAtCard NOT LIKE '%F%' AND
T0.NumAtCard NOT LIKE '%REDIGIT%'
GROUP BY T0.[TaxDate],
T0.[DocNum],
T0.[CardName],
T0.[CardCode],
T1.[U_NIT],
T0.[VatSumSy],
T0.[DOCENTRY],
T0.[DocDate],
T0.[DOCTOTAL],
T0.[NumAtCard],
T1.[U_RegIva],
T2.[AcctCode],
T0.[DocTotal]
the result shows two line with the information of one vendor invoice,
example:
numatcard cardcode tax exempt local shopping tax total
12345 0125 0.00 100 13 115
12345 0125 2.00 100 13 115
i think this be must to tax indicator, because in the document i use two diferent taxcode. i need help to avoid this error, if somebody know how resolved, me will great utilWell Gordon,
If you see in the statement, the register is in one line:
(SELECT sum(T12.[LineTotal]) FROM PCH1 T12 INNER JOIN OPCH T10 ON T12.[DOCENTRY] = T10.[DOCENTRY] WHERE T12.[AcctCode] != '11209' AND T12. [TaxCode] = 'IVACCF' AND T12.[DOCENTRY] = T0.[DOCENTRY] AND T10.[TaxDate] >= '[%0]' and T10.[TaxDate] <= '[%1]')
to better expalin.
i have this line without tax, i only need a statement in the that be sum, the line of tax exempt + line without tax + tax total.
if you see in the query, i've excluded the acctcode = '11209', really without this filter, only i need select the doctotal to view the result. but if, i do a statement where only excluide the document line where appear this account, the quey returns a wrong -
estimado sres.
necesito migrar la informacion de mi contabilidad de años anteriores de PLATINUM a SAP Business One 2005A, debo de usar DTW? o estoy equivocada? donde puedo encontrar información acerca de migración de datos?
gracias,Buenas Tardes:
Si requieres subir informcion de clientes y proveedores y que estos saldos se reflejen por cada documento podrias usar las plantillas para Facturas de venta oInvoices y Facturas de Compra oPurchaseInvoice pero trabajandolas como Servisios, esto te daria mejor maneo al momento de hacer pagos pues sabrias sobre que documento haces los pagos.
Ahora si requeires cargar informacion de retenciones debes tenerlo en cuenta para armar la plantilla.
Para el caso de movimientos contables puedes usar plantilla de Journal Entry o la opcion de cargue de saldos iniciales de finanzas.
Cualquier aclaracion al respecto con gusto estré atento;
at;
Hernando Cusba G.
Edited by: Paulo Calado on Jun 11, 2009 4:18 PM -
Hola buenas tardes.
A modo granito de arena adjunto recopilatorio de queries que pueden serles de ayuda.
No adjunto el autor de cada uno porque sería un trabajo minucioso. Si alguno de Ustedes quiere aportar algún otro sería estupendo.
Gracias a todos! Un saludo.
CLIENTES, TOTAL FACTURADO,IVA, GANACIA Y TOTAL FACTURADO.
SELECT T0.CardCode, T0.CardName, Count(T0.DocNum)'NºDoctos', SUM(T0.DocTotal)'Total Facturas', SUM(T0.VatSum)'Total Impuesto', SUM(T0.DocTotal-T0.VatSum)'Total Base o neto', SUM(T0.GrosProfit)'Ganancia', SUM(T0.DocTotal-T0.PaidToDate)'Pendiente'
FROM OINV T0
WHERE T0.DocDate BETWEEN '[%0]' AND '[%1]'
GROUP BY T0.CardCode, T0.CardName
UNION
SELECT T0.CardCode, T0.CardName, Count(T0.DocNum)'NºDoctos', -SUM(T0.DocTotal)'Total Facturas', -SUM(T0.VatSum)'Total Impuesto', -SUM(T0.DocTotal-T0.VatSum)'Total Base o neto', -SUM(T0.GrosProfit)'Ganancia', -SUM(T0.DocTotal-T0.PaidToDate)'Pendiente'
FROM ORIN T0
WHERE T0.DocDate BETWEEN '[%0]' AND '[%1]'
GROUP BY T0.CardCode, T0.CardName
PAGARÉS EN EL CAJÓN:
SELECT T0.BoeStatus As "Status de efecto", T0.CardCode As "Código IC", T0.CardName As "Nombre de interlocutor comercial", T0.BoeNum As "Número de efecto", T0.BoeType As "Clase de efecto", T0.DueDate As "Vencimiento de efecto", T0.BoeSumSC As "Importe de efecto (MS)", T0.DpsBankCod As "Proyecto", T0.BPBankCod As "IC Código de banco", T0.BPBankNam As "IC Nombre de banco", T0.BPBankAct As "Cuenta bancaria IC", T0.BPBankBrnc As "IC Sucursal bancaria", T0.BPBankCtr As "IC País del banco", T0.ControlKey As "ID interna control bancos IC", T0.PayMethCod As "Total del documento sin IVA", T0.PymMethNam As "Saldo Haber", T0.AgentCode As "Código de agente" FROM OBOE T0 WHERE T0.BoeStatus = N'G' ORDER BY T0.BoeStatus,T0.CardCode
LISTADO DE INCIDENCIAS
SELECT Num=T0.[ClgCode],Año=year(T0.[Recontact]),Mes=month(T0.[Recontact]) ,Fecha=T0.[Recontact], Hora=T0.[BeginTime],
T3.[Name] as 'Tipo',
T2.[Name] as 'Asunto',
T1.FirstName+' '+T1.LastName as 'Responsable',
T0.[Details] as 'Comentarios', T0.[Notes] as 'Contenido', T0.[U_SEIAcInm] as 'Acción Inmediata', T0.[U_SEI_feAc] as 'Fecha Acción Inmediata', T0.[U_SEI_Resp] as 'Responsable Acción Inmediata', T0.[U_SEI_Desc] as 'Descripción Cierre', T0.[U_SEI_RespC] as 'Responsable Cierre',T0.[Closed] as 'Cerrado', T0.[CloseDate] 'Fecha Cierre Sistema' , U_SEI_fecc as' Fecha Cierre', T0.[U_SEICOST] as 'Cost' FROM OCLG T0 LEFT JOIN OHEM T1 ON T0.AttendEmpl = T1.empID
LEFT JOIN [dbo].[OCLS] T2 ON T2.[Code] = T0.[CntctSbjct]
LEFT JOIN [dbo].[OCLT] T3 ON T3.[Code] = T2.[Type]
INCIDENCIAS SIN CERRAR:
SELECT T0.[ClgCode], T0.[CardCode], T0.[Notes], T0.[Action], T0.[CntctType]
FROM OCLG T0
WHERE ISNULL(cast(T0.[Notes] as varchar(10)), '') <> '' and closed='N'
QUE TRANSFERENCIA HEMOS RECIBIDO DEL CLIENTE Y EN QUE DIA:
SELECT DISTINCT
T1.DocDate,
T0.CardCode,
T0.CardName,
T2.DocNum AS 'Inc Pay Nbr',
T1.DocTotal AS 'Appl Amt'
FROM OCRD T0
LEFT OUTER JOIN ORCT T1
ON T0.CardCode = T1.CardCode
INNER JOIN ORCT T2
ON T1.DocNum = T2.DocNum
AND T2.TrsfrAcct IS NOT NULL
WHERE
T1.DocDate >= '[%0]'
AND T1.DocDate <= '[%1]'
ORDER BY
T1.DocDate DESC,
T0.CardCode,
T0.CardName,
T2.DocNum,
T1.DocTotal
FOR BROWSE
¿Cuánto DEBEN LOS CLIENTES Y EL TOTAL DE FACTURAS?:
SELECT T0.[CardCode], T0.[CardName], T0.[Balance], T0.[OrdersBal], T0.[DNotesBal], T0.[ChecksBal],
'Pedidos'=(SELECT SUM(T10.DocTotal) FROM ORDR T10 WHERE T10.CardCode = T0.CardCode
AND T10.DocDate BETWEEN '[%0]' AND '[%1]'),
/* Trae la suma de total de documento de pedidos en rango de fechas*/
'Facturas'=(SELECT SUM(T10.DocTotal) FROM OINV T10 WHERE T10.CardCode = T0.CardCode
AND T10.DocDate BETWEEN '[%0]' AND '[%1]' AND T10.DocSubType NOT LIKE 'DN'),
/*Trae suma facturas en el rango de fechas*/
'NC'=(SELECT SUM(T10.DocTotal) FROM ORPC T10 WHERE T10.CardCode = T0.CardCode AND T10.DocDate
BETWEEN '[%0]' AND '[%1]'),
'ND'=(SELECT SUM(T10.DocTotal) FROM OINV T10 WHERE T10.CardCode = T0.CardCode AND T10.DocDate
BETWEEN '[%0]' AND '[%1]' AND T10.DocSubType LIKE 'DN')
FROM OCRD T0
WHERE T0.[CardType] LIKE 'C'
TOP 10 CLIENTES:
SELECT TOP 10 T0.CardCode, MAX(T0.Cardname) as Customer, SUM(T0.doctotal) as "Amount(LC)"
FROM dbo.OINV T0
WHERE t0.docdate BETWEEN [%0] AND [%1]
GROUP BY T0.CardCode
Order by SUM(T0.doctotal) DESC
ALARMA STOCK AL MINIMO:
SELECT T0.ItemCode, T0.ItemName, T0.OnHand, T0.SuppCatNum, T0.MinLevel
FROM OITM T0
WHERE MinLevel ! = 0 and OnHand < MinLevel
¿QUE HAY EN EL ALMACEN?
SELECT T0.[WhsCode], T2.[WhsName], T0.[ItemCode], T1.[ItemName],
ROUND(SUM(CASE M.InQty
WHEN 0 THEN -1*M.CalcPrice*M.OutQty
ELSE M.CalcPrice*M.InQty
END),2) AS [Valor],
(ISNULL(SUM(M.InQty)-SUM(M.OutQty),0)) AS [Stock]
FROM OINM M
INNER JOIN OITW T0 ON M.ItemCode=T0.ItemCode AND M.Warehouse=T0.WhsCode
INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OWHS T2 ON T0.WhsCode = T2.WhsCode
WHERE M.DocDate <= '[%1]'
GROUP BY T0.WhsCode, T2.WhsName, T0.ItemCode, T1.ItemName
ORDER BY T0.[WhsCode], T0.[ItemCode]
FACTURAS DE PROVEEDORES PAGADAS POR MES Y DIA EN TABLA CALENDARIO:
SET LANGUAGE Spanish
DECLARE @TOP INT, @F_INI DATETIME, @F_FIN DATETIME, @COND_1 CHAR(1), @COND_2 CHAR(1)
SET @TOP=(SELECT TOP 1 A.TransId FROM [dbo].[JDT1] A WHERE A.RefDate>='[%0]' AND A.RefDate<='[%1]')
SET @F_INI='[%0]'
SET @F_FIN='[%1]'
SET @COND_1='N'
SET @COND_2='S'
SELECT DISTINCT B.DocDate AS DocDate, CONVERT(NVARCHAR, B.DocDate, 103) AS Fecha
INTO #FECHAS
FROM OVPM B
WHERE B.DocDate BETWEEN @F_INI AND @F_FIN
ORDER BY 1
DECLARE @pvt_table NVARCHAR(MAX)
SELECT @pvt_table = COALESCE(@pvt_table + ',[' + C.Fecha + ']', '[' + C.Fecha + ']')
FROM #FECHAS C
ORDER BY C.DocDate
DECLARE @Pvt NVARCHAR(MAX)
SET @Pvt =
N'
SELECT *
FROM (
SELECT DISTINCT T0.CardCode AS CardCode, T0.CardName AS CardName, CONVERT(NVARCHAR, T0.DocDate, 103) AS Fecha, SUM(T0.DocTotal) AS Pagos
FROM OVPM T0
WHERE T0.DocDate BETWEEN (@INI) AND (@FIN) AND T0.Canceled=(@C_1) AND T0.DocType=(@C_2)
GROUP BY T0.CardCode, T0.CardName, T0.DocDate ) AS A
PIVOT (
SUM(Pagos)
FOR Fecha IN ('+ @pvt_table +')
) AS Pvt
ORDER BY 1,3
EXEC sp_executesql @pvt, N'@pvt_table NVARCHAR(MAX), @INI DATETIME, @FIN DATETIME, @C_1 CHAR(1), @C_2 CHAR(1)',@pvt_table, @F_INI, @F_FIN, @COND_1, @COND_2
DROP TABLE #FECHAS
VACACIONES (RESUMEN EMPLEADOS)
SELECT T1.[empID], T1.[firstName], T1.[lastName], T0.[u_seiany], [Dias Pendientes]=SUM(T0.[U_Dias]) FROM HEM1 T0 INNER JOIN OHEM T1 ON T0.empID = T1.empID left JOIN [dbo].[@SEITIPVAC] T2 ON T0.U_SEITIPO = T2.Code
group by T1.[empID], T1.[firstName], T1.[lastName], T0.[u_seiany]
RELACION MERMAS LOTE:
SELECT T3.Docentry, T0.DocLine, T1.*,
--T0.ItemCode,T0.CardName,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum as [Nº ALBARAN], T0.LocCode as [Cod. Almacén] ,t4.DistNumber as [Nº Lote], T1.Quantity, SELECT T3.Docentry, T0.DocLine, T1.*,
--T0.ItemCode,T0.CardName,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum as [Nº ALBARAN], T0.LocCode as [Cod. Almacén] ,t4.DistNumber as [Nº Lote], T1.Quantity, T3.U_SEIECOE, T3.U_SEIECOC, T3.U_SEICALE, T3.U_SEITEOK,
Tipo= CASE T0.[DocType]
WHEN '59 ' Then 'Entrada'
WHEN '15 ' Then 'Salida'
Else 'Otros'
End,T4. U_SEIM1 ,T4.U_SEIM2,U_SEIMerma
FROM OITL T0
INNER JOIN [ITL1] T1 ON T1.[LogEntry] = T0.[LogEntry]
INNER JOIN OBTN T4 on T1.MdAbsEntry=T4.AbsEntry
INNER JOIN DLN1 T3 ON T3.[DocEntry] = T0.Docentry and T0.DocLine=T3.Linenum
WHERE isnull(U_SEIM1,0)+isnull(U_SEIM2,0)<>0 and T0.[DocType]='15'
and YEAR(T3.Docdate)>'2013'
LISTA DE FACTURAS QUE SE HAN PAGADO, COMO Y CUANDO:
SELECT distinct
T0.DocNum 'Factura',
T0.DocStatus 'Estatus',
T0.DocDate 'Fecha',
T0.CardCode 'Cliente',
T0.CardName 'Nombre',
T0.DocCur 'Moneda',
T0.DocTotal 'Total Factura',
T0.PaidToDate 'Total Pagado',
T1.SlpName 'Vendedor',
T2.PymntGroup 'Cond. Pago',
T0.DocTotalSy 'Total USD',
T3.DocNum 'No.Doc. Pago',
T3.CashSum 'Efectivo',
T3.CreditSum 'T.Crédito',
T3.CheckSum 'Cheque',
T3.TrsfrSum 'Transf',
T3.DocTotal, 'Total Pago',
T3.DocDate 'Fecha Pago'
FROM OINV T0
INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
INNER JOIN OCTG T2 ON T0.GroupNum = T2.GroupNum
INNER JOIN ORCT T3 ON T0.[ReceiptNum] = T3.DocNum
INNER JOIN NNM1 T4 ON T3.Series = T4.Series
INNER JOIN RCT2 T5 ON T3.DocEntry = T5.DocNum
WHERE T0.DocDate <= '[%1]'
AND T3.Canceled = 'N'
ORDER BY T0.DocNum
FACTURAS PROVEEDORES PROXIMAS A VENDER PARA EL CEO DE LA EMPRESA:
SELECT T0.DocNum AS 'Factura', T0.DocDueDate AS 'Fecha de vencimiento', T0.CardCode AS 'Código cliente',
T0.CardName AS 'Nombre'
FROM OPCH T0
WHERE DATEDIFF (DD, T0.DocDueDate, GETDATE( )) BETWEEN -7 AND 365
AND T0.DocStatus = 'O'
ORDER BY T0.DocDueDate
FOR BROWSE
PARA SABER QUE PRODUCTOS ESTAN EN NEGATIVO EN LOS ALMACENES:
SELECT T0.ItemCode AS 'Código', T1.ItemName AS 'Descripción', T0.WhsCode AS 'Almacen',
T0.OnHand AS 'Cantidad', T1.OnHand AS 'Disponible total'
FROM OITW T0
LEFT OUTER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
WHERE T0.OnHand < 0
FOR BROWSE
PARA SABER DE QUE ARTICULOS TENGO MINIMOS Y HAY QUE COMPRAR:
SELECT
T0.CardCode AS 'Pref Vend',
T2.CardName AS 'Pref Vend Name',
T0.ItemCode AS 'Item Code',
T0.ItemName AS 'Item Description',
T1.ItmsGrpNam AS 'Item Group',
T0.LeadTime AS 'Lead',
CASE
WHEN T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited) > T0.MinOrdrQty
THEN T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited)
WHEN T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited) < T0.MinOrdrQty
THEN T0.MinOrdrQty
END AS 'To Purch',
T0.MinOrdrQty AS 'Min Ord',
T0.DfltWH AS 'Whs',
T0.MinLevel AS 'Min Inv',
T0.PrchseItem AS 'Buy',
T0.OnHand AS 'On Hand',
T0.OnOrder AS 'On Order',
T0.IsCommited AS 'Committed'
FROM OITM T0
LEFT OUTER JOIN OITB T1
ON T0.ItmsGrpCod = T1.ItmsGrpCod
LEFT OUTER JOIN OCRD T2
ON T0.CardCode = T2.CardCode
WHERE
T0.InvntItem = 'Y'
AND T0.PrchseItem = 'Y'
AND T0.MinLevel - (T0.OnHand + T0.OnOrder - T0.IsCommited) > 0
AND T0.ItmsGrpCod <> 108
ORDER BY
T2.CardCode,
T0.ItemCode
FOR BROWSEExcelente aporte, gracias por compartir.
Salu2
César -
Upload data from excel into database through pl/sql
Hi All,
I have excel which contains data lets say employee details,
I have one upload button ,which is used to upload excel and then i want to map the cell of excel to the database column and through plsql code i want to upload the excel data into database.
In short ,i want to upload the data from excel into database using plsql code,
or suggest me any other way to do this.(except the data load method present in apex)
Thanks,
Jitendraif you use APEX 4 you can define you own table
the code below is for APEX 3
PROCEDURE pro_carga_planilla_prosp( p_archivo VARCHAR2) IS
v_blob_data BLOB;
v_blob_len NUMBER;
v_position NUMBER;
v_raw_chunk RAW(10000);
v_char CHAR(1);
c_chunk_len number := 1;
v_line VARCHAR2 (32767) := NULL;
v_data_array wwv_flow_global.vc_arr2;
v_rows number;
v_sr_no number := 1;
v_ok boolean := true;
v_local_ok BOOLEAN := TRUE;
v_reg_ok NUMBER := 0;
v_reg_ko NUMBER := 0;
v_localidad_id NUMBER;
v_departamento_id NUMBER;
v_cargo_id NUMBER;
v_prospecto_id NUMBER;
v_asesor_id NUMBER;
V_REG prospectos%rowtype;
BEGIN
-- Read data from wwv_flow_files</span>
select blob_content into v_blob_data
from wwv_flow_files
where name= p_archivo;
v_blob_len := dbms_lob.getlength(v_blob_data);
v_position := 1;
-- Read and convert binary to char</span>
WHILE ( v_position <= v_blob_len ) LOOP
v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
v_line := v_line || v_char;
-- pro_log('linea '||v_line);
v_position := v_position + c_chunk_len;
-- When a whole line is retrieved </span>
IF v_char = CHR(10) THEN
-- Convert comma to : to use wwv_flow_utilities </span>
v_line := replace(REPLACE (v_line, ',', ':'), ';',':');
v_line := replace(replace(v_line, chr(10)),chr(13));
if substr(v_line,1,1)= ':' then
v_line := '0'||v_line;
end if;
if instr(v_line,':',1,21) = 0 then
if instr(v_line,':',1,20) = 0 then
v_line:=v_line||':';
end if;
v_line:=v_line||':';
end if;
-- pro_log(v_line);
-- Convert each column separated by : into array of data </span>
v_data_array := wwv_flow_utilities.string_to_table (v_line);
-- Insert data into target table </span>
IF v_data_array(1) IS NOT NULL AND
v_sr_no <> 1 THEN
V_REG.NOMBRE:=ltrim(rtrim(v_data_array(2)));
V_REG.RAZON_SOCIAL:=v_data_array(3);
V_REG.DIRECCION := v_data_array(4)||' '||v_data_array(5);
-- PRO_LOG('PROSP 1 ' ||v_sr_no);
v_localidad_id := pack_empresas.get_localidad(v_data_array(6));
-- PRO_LOG('PROSP 1.1 '||v_sr_no);
V_REG.LOCALIDAD_ID:=v_localidad_id;
-- PRO_LOG('PROSP 1.2 '||v_sr_no);
V_REG.CODIGO_POSTAL:=LTRIM(RTRIM(v_data_array(7)) );
-- PRO_LOG('PROSP 1.3 '||v_sr_no);
-- PRO_LOG('PROSP 1.1 '||v_sr_no);
v_departamento_id := pack_empresas.get_departamento(v_data_array(8));
-- PRO_LOG('PROSP 1.4 '||v_sr_no);
V_REG.DEPARTAMENTO_ID:=v_departamento_id;
-- PRO_LOG('PROSP 1.5 '||v_sr_no);
V_REG.TELEFONO:=v_data_array(9);
--PRO_LOG('PROSP 1.6 '||v_sr_no);
V_REG.TELEFONO2:=v_data_array(10);
-- PRO_LOG('PROSP 1.7 '||v_sr_no);
V_REG.RUBRO:=v_data_array(11);
-- PRO_LOG('PROSP 1.8 '||v_sr_no);
V_REG.RUC:=ltrim(rtrim(v_data_array(12)));
-- PRO_LOG('PROSP 1.9 '||v_sr_no);
-- pro_log(v_data_array(1));
-- pro_log(v_data_array(2));
V_REG.CANTIDAD_EMPLEADOS:=RTRIM(LTRIM(v_data_array(13)));
-- PRO_LOG('PROSP 1.10 '||v_sr_no);
-- pro_log(v_data_array(14));
V_REG.CANTIDAD_BENEFICIARIOS:=RTRIM(LTRIM(v_data_array(14)));
--PRO_LOG('PROSP 1.11 '||v_sr_no);
V_REG.MAIL:=v_data_array(19);
-- pro_log(V_REG.MAIL);
-- PRO_LOG('PROSP 1.12 '||v_sr_no);
-- v_data_array(20):= replace(replace(v_data_array(20),chr(10)),chr(13));
if not v_data_array.exists(20) then
-- pro_log('existe');
-- pro_log(ltrim(rtrim(replace(replace(v_data_array(20),chr(10)),chr(13)))));
V_REG.Proveedor:= ltrim(rtrim(replace(replace(v_data_array(20),chr(10)),chr(13))));
else
v_data_array(20):=null;
end if;
-- V_REG.PROVEEDOR:=v_data_array(20);
-- PRO_LOG('PROSP 1.13 '||v_sr_no);
if not v_data_array.exists(21) then
V_REG.OBSERVACIONES:=v_data_array(21);
else
v_data_array(21):=null;
end if;
-- PRO_LOG('PROSP 1.14 '||v_sr_no);
-- PRO_LOG('PROSP 1.2 '||v_sr_no);
insert into prospectos (nombre,razon_social, direccion,localidad_id,codigo_postal,
departamento_id, telefono, telefono2, rubro,ruc,cantidad_empleados,
cantidad_beneficiarios,mail,proveedor,observaciones)
values (nvl(ltrim(rtrim(v_data_array(2))),v_data_array(3)), v_data_array(3),
v_data_array(4)||' '||v_data_array(5),
v_localidad_id, LTRIM(RTRIM(v_data_array(7))),v_departamento_id, v_data_array(9),
v_data_array(10),v_data_array(11), ltrim(rtrim(v_data_array(12))), RTRIM(LTRIM(v_data_array(13))),
RTRIM(LTRIM(v_data_array(14))),v_data_array(19),v_data_array(20), v_data_array(21))
returning prospecto_id INTO v_prospecto_id;
-- PRO_LOG('PROSP 2');
v_cargo_id := pack_empresas.get_cargo(v_data_array(17));
-- PRO_LOG('PROSP 3');
insert into prospecto_contactos (prospecto_id,nombre,apellido,cargo_id,
telefono,mail)
values (v_prospecto_id, nvl(v_data_array(15),'S/N'), nvl(v_data_array(16),'S/A'),
v_cargo_id, v_data_array(18), v_data_array(19));
-- PRO_LOG('PROSP 4');
v_asesor_id := pack_empresas.get_asesor(v_data_array(1));
-- PRO_LOG('PROSP 5');
insert into asignaciones (prospecto_id,asesor_id,fecha_asignacion)
values (v_prospecto_id, v_asesor_id, trunc(sysdate));
-- PRO_LOG('PROSP 6');
END IF;
-- Clear out
v_line := NULL;
v_sr_no := v_sr_no + 1;
END IF;
END LOOP;
delete wwv_flow_files
where name= p_archivo;
END pro_carga_planilla_prosp;
function hex_to_decimal
--this function is based on one by Connor McDonald
--http://www.jlcomp.demon.co.uk/faq/base_convert.html
( p_hex_str in varchar2 ) return number
is
v_dec number;
v_hex varchar2(16) := '0123456789ABCDEF';
begin
v_dec := 0;
for indx in 1 .. length(p_hex_str)
loop
v_dec := v_dec * 16 + instr(v_hex,upper(substr(p_hex_str,indx,1)))-1;
end loop;
return v_dec;
end hex_to_decimal; -
Model Chip BIOS for MS-6119???
[SPANISH]
Hola. Yo dispongo de una motherboard modelo MS-6119, la cual solo me permite actualizar el HD hasta 20 GB. El PC que incorpora esta motherboard dispone de un HD de 4 GB, su capacidad se ha quedado pequeña para almacenar windows 2000 Profesional, aplicaciones mas comunes y las nuevas versiones de las aplicaciones para desarrollar mis proyectos de electronica para la universidad. He decidido comprar un nuevo HD de 20 GB en tiendas cercanas a mi localidad, pero yo tengo problemas de encontrar HD de 20 GB, porque dicen que es una capacidad de HD ya algo obsoleta, y el minimo HD que tienen en tiendas es de 40 GB, asi que yo me veo obligado a actualizar mi BIOS para poder instalar mi nuevo HD. Yo no me atrevo a realizar el proceso en casa, porque yo he leido que si falla el suministro electrico, la motheroboard podria quedar inservible y no dispongo de recursos economicos como para comprar un nuevo PC, por lo que yo decidi preguntar en tiendas si me podrian hacer la actualizacion de la BIOS, pero todos me dicen que no me ofrecen garantias si el proceso de actualizacion falla, sustituyendome la mothrboard por otra igual o similar, porque ya no disponen de motherboard para Pentium-II en stock. Yo he pensado comprar el modelo de chip de memoria FLASH que emplea la BIOS de mi motherboard MS-6119, para posteriormente grabar en ella, la nueva version de BIOS mediante un programador de EEPROM de los que disponemos en el departamento de diseño microelectronica de la universidad. Yo necesitaria saber, que modelos de memoria FLASH son compatibles con mi MS-6119 motherboard, para localizarlo en el departamento o mandarlo a pedir a nuestros proveedores para comprarlo. Por otro lado, me gustaria tambien saber, la nueva version de BIOS que yo deberia grabar, para que mi MS-6119 motherboard soporte HD de 40 GB o capacidades superiores. Yo adjunto a continuacion, la informacion que devuelve una utilidad de Award® BIOS acerca de mi BIOS. Esto es todo y gracias por su atencion.
[ENGLISH]
Hello. I have a model motherboard MS-6119, the one which alone it allows me to upgrade the HD
up to 20 GB. The PC that incorporates this motherboard has a HD of 4 GB, its capacity has you
small to store windows 2000 Professional, applications but common and the new ones versions of the applications to develop my electronics projects for the university. I have decided to buy a new HD of 20 GB in near stores to my town, but I have problems of finding HD of 20 GB, because they say that it is a capacity of HD already something obsolete, and the minimum HD that have in stores is of 40 GB, so I am forced to upgrade my BIOS to be able to install my new HD. I don't dare to carry out the process at home, because I have read that if it fails the electric supply the motheroboard it could be useless and I don't have enough economic resources as to buy a new PC, for what I decided to ask in stores if they could make me the upgrade of the BIOS, but all tell me that they don't offer me guarantees if the process of upgrade fails, substituting me the mothrboard for another same or similar, because they no longer have motherboard for Pentium-II in stock. I have planned to buy a memory FLASH chip model, that the BIOS of my motherboard MS-6119 uses, for later record it, the new version of BIOS using a EEPROM programmer, that we prepare in the department of microdesign electronic of the university. I would need to know that models of FLASH memory chips are compatible with my MS-6119 motherboard (BIOS chip), to locate him in the department or to send it to request to our suppliers to buy it. On the other hand, I would also like to know, the new version of BIOS that I should record, so that my MS-6119 motherboard supports HD of 40 GB or superior capacities. I attach next, the information that returns an utility of Award® BIOS about my BIOS. This is everything and thank you for their attention.
BIOS Information for MS-6119 motherboard.
BIOS Date: 06/16/98
BIOS Type: Award Modular BIOS v4.51PG
BIOS ID: 06/16/1998-i440BX-W977-2A69KM4AC-00
OEM Sign-On: W6119MJ V2.1 081498
Chipset: Intel 440BX/ZX rev 2
Superio: Winbond 977TF rev 0 found at port 3F0h
OS: Microsoft Windows 2000 Professional Version: 5.00.2195 Service Pack 4
CPU Type: Pentium II
CPU Speed: 350 Mhz
CPU Max: 400 Mhz
BIOS ROM In Socket: Yes
BIOS ROM Size: 256K
Memory Installed: 256 MB
Memory Maximum: 96 MB
Memory Slot 01: 64 MB
Memory Slot 02: 64 MB
Memory Slot 03: 128 MBQuote
Originally posted by Pelostaticos
Hello. I would like to know the model of my 2Mbits BIOS chip. I don't know is this chip is EEPROM or FLASH EEPROM.
Quote
Originally posted by Wonkanoby
buy a 40gb and put second jumper on it limits it to 32gb
bios 6119
need to know what PCB version of MB you have
STANDARD or CPU PLUG AND PLAY version cause there are 2 versions for 6119
from bios screen should list W6119 V s2.1 or p2.1 in the upper left of screen (hit pause key to read) if not read whats printed on the MB between pci slots for PCB version.
for bios chip its a EEPROM dip32 chip. the flash type died out with 386 series (has a window on chip for light).
find out more check Orientation of chip. (witch way seated in socket) put on ANTI-STATIC WRIST STRAP then remove chip an take #'s off the bottom to find out what you got, then replace chip same way it came out
JMODE1 jumpers (flash voltage)
1-2 for 12v others chip
2-3 for 5v winbond chip
Maybe you are looking for
-
Error message and Input preview window
What does this error message mean? Error connecting input preview RGB filter. I get it every time, along with a blank Input preview window. Thanks, Oscar
-
Cyan color in Photoshop CS6 appears as black
Hello! I've recently picked up Photoshop CS6 and i'm having a weird problem regarding the color cyan. Whenever i use this color it appears as black. How do i get this fixed??? im clueless EDIT: When i drag the window im working in around the colors a
-
Dear Friends, Client Required MBLB Report his own format that is. Vendor Name : XXXXXXXX ADDERS: XXXXXX City: XXXXXX Material Name , Material description, Plant, Batch, Unrestricted Qty, In quality inspect
-
Viewing TIF files in Mac OS X v4
Hello: I have been sent some files in TIF format but I cannot find a way to view these files in Mac OS X (10.4). I have confirmed that the files are not corrupted, since I can transfer them to a Windows PC and view them there, but OS X does not appea
-
Eye-dropper Color Picker not working
None of the PPro CS5 effects I've tried that use the Eye-dropper for color-picking (UltraKey, Color Key, Color Corrector, etc.) seem to work properly. When I click on the eyedropper, the cursor changes to the eye-dropper pointer, but when I drag this