Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs2s375ngcgy5guntitledPlain Text
package com.negocio.desinfectantes.data
import androidx.room.ColumnInfo
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,
@ColumnInfo(defaultValue = "0.0")
val descuento: Double = 0.0,
val fechaCreacion: Long = System.currentTimeMillis(),
val vendedorId: String? = null,
val vendedorNombre: String? = null
)
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 = "detalles_venta")
data class DetalleVentaEntity(
@PrimaryKey
val id: String,
val ventaId: String,
val presentacionId: String,
val cantidad: Int,
val precioUnitario: Double,
val subtotal: Double
)
1,260 chars · codepastes.com