Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs717p02xq2n9kuntitledPlain 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()
)
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 = "pagos_venta")
data class PagoVentaEntity(
@PrimaryKey
val id: String,
val ventaId: String,
val monto: Double,
val metodoPago: String,
val observacion: String? = null,
val fechaCreacion: Long = System.currentTimeMillis()
)
@Entity(tableName = "movimientos_inventario")
data class MovimientoInventarioEntity(
@PrimaryKey
val id: String,
val presentacionId: String,
val sede: String,
val tipoMovimiento: String,
val cantidad: Int,
val referenciaId: String? = null,
val observacion: String? = null,
val fechaCreacion: Long = System.currentTimeMillis()
)
1,576 chars · codepastes.com