Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs99gdhm6hw9w8untitledPlain Text
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "ventas")
data class VentaEntity(
@PrimaryKey
val id: String,
val clienteId: String,
val sede: String,
val tipoVenta: String,
val estadoEntrega: String,
val total: Double,
val fechaCreacion: Long = System.currentTimeMillis()
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "detalles_venta")
data class DetalleVentaEntity(
@PrimaryKey
val id: String,
val ventaId: String,
val presentacionId: String,
val cantidad: Int,
val precioUnitario: Double,
val subtotal: Double
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "lotes_ventas")
data class LoteVentaEntity(
@PrimaryKey
val id: String,
val ventaId: String,
val detalleVentaId: String,
val loteInventarioId: String,
val cantidad: Int,
val estado: String
)
1,078 chars · codepastes.com