satyam / lacorazon-aws Goto Github PK
View Code? Open in Web Editor NEWLa Corazón, versión con AWS
La Corazón, versión con AWS
En https://github.com/Satyam/lacorazon-aws/blob/master/migrate/upload.js#L248-L261 la cantidad facturada la estima en función de lo facturado, pero si se cobra sin factura, falla totalmente
See: https://github.com/sindresorhus/mem or break them apart into further hooks to use react's useMemo
Usar el segundo argumento en useListVals
Stock mantendrá las actualizaciones de stock con cantidad y tipo de novedad: Entregado, devuelto, vendido, facturado.
Facturación tendra información de facturacion: cantidad facturada, porcentaje descuento, numero de factura, vendedor y cuenta. Y si es facturado o cobrado.
Ambos tendran fecha y idDistribuidor
La factura mostrará el cálculo de la factura.
EL porcentaje de descuento será siempre el último que se hubiera aplicado. Habrá un tipo de registro de facturación que contendrá simplemente el porcentaje de facturación, aunque no hubiera nada facturado.
Cambiar la constante COMISION_INTERNA
por el valor leído de la tabla de constantes configurables
Make a component that renders its children when a user is logged in and optionally checks the logged in user has a role given as a prop.
The children might be a function, a renderProps, that will receive the user info. Otherwise, it is just rendered.
In the login function, use the email from the user profile to check the user table and retrive the extra user info, including roles. If a record is not found, the user would be signed out immediately. The user info from the database and the one from auth could be merged and cached for use with the LoggerUser component.
Ensure the user is always updated. Use onAuthStateChanged
to monitor this.
Ver cómo hacer para que el TextField muestre y acepte importes con coma
Cambiar reintegro
, pagoIva
o idVendedor
por un solo enum que incluya gasto
tanto en migrate,global.d.ts , ListSalidas y Sumario/Caja
Agregar tambien un campo de cual caja en Ventas, que parece que fueran todas en efectivo en caja de Roxu
Asegurarse también de que está todo en minúscula
O usar el año más reciente como default.
Aplicar luego de implementar #6 porque sino tiene que recalcular demasiado
Component/Navigation tendrá el marco de la barra de navegación y las partes de login. Las opciones de la aplicación vendrán como children
.
Cambiar Routes.tsx
eliminando el export default
ofreciendo dos exports, Nav y Routes. Routes será lo que actualmente es el default, Nav será la parte que en App/index
irá como children
de Navigation
Agregar tabla de defaults:
{
PVP: 12,
ComisionEstandar: 0.35,
IVALibros: 0.04,
ComisionInterna: 0.25
}
el tipo general del 21%, el tipo reducido del 10%, el superreducido del 4% y sin iva
El CurrencyField de porcentaje / precioFijo no se actualiza cuando se cambia el radio adjunto en porFacturar.
El value
que recibe el input es correcto, pero como sólo setea el defaultValue
una vez seteado, no lo cambia.
Pero si asigno el value recibido al atributo value, entonces el control no se puede editar.
Not sure if it is really needed, new values come from forms, which already have suitable defaults so there might be no use case.
Sumar esos gastos en sumario de caja
Sumar comisiones pagadas en Sumario por vendedor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.