a486127ade
- Add SalesInvoiceTspSwitchService to manage TSP provider selection and sending invoices. - Introduce SalesInvoiceTspService for creating, sending, and retrieving sales invoices. - Implement NamaProviderSwitchAdapter for communication with the NAMA TSP provider API. - Define DTOs for request and response structures specific to the NAMA provider. - Enhance error handling and logging for TSP provider interactions.
18 lines
463 B
Plaintext
18 lines
463 B
Plaintext
model StockKeepingUnits {
|
|
id String @id @default(ulid())
|
|
code String @unique
|
|
name String
|
|
VAT Decimal @db.Decimal(5, 2)
|
|
type SKUGuildType
|
|
is_public Boolean @default(true)
|
|
is_domestic Boolean @default(false)
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
|
|
|
goods Good[]
|
|
|
|
@@index([code])
|
|
@@map("stock_keeping_units")
|
|
}
|