untitled

Pasted Nov 9, 2026, 6:19 AM1 file57 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/zzgs99gdhm6hw9w8
untitled
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