update migrations and create base migration. set discount and tax to sale invoices

This commit is contained in:
2026-05-28 16:39:07 +03:30
parent cd3492d625
commit a975f9d02a
55 changed files with 2152 additions and 2278 deletions
@@ -4094,10 +4094,11 @@ export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
total_amount: 'total_amount',
tax_amount: 'tax_amount',
discount_amount: 'discount_amount',
invoice_number: 'invoice_number',
invoice_date: 'invoice_date',
type: 'type',
settlement_type: 'settlement_type',
tax_id: 'tax_id',
notes: 'notes',
unknown_customer: 'unknown_customer',
@@ -4107,7 +4108,8 @@ export const SalesInvoiceScalarFieldEnum = {
ref_id: 'ref_id',
customer_id: 'customer_id',
consumer_account_id: 'consumer_account_id',
pos_id: 'pos_id'
pos_id: 'pos_id',
settlement_type: 'settlement_type'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
@@ -4123,7 +4125,8 @@ export const SalesInvoiceItemScalarFieldEnum = {
unit_price: 'unit_price',
total_amount: 'total_amount',
created_at: 'created_at',
discount: 'discount',
discount_amount: 'discount_amount',
tax_amount: 'tax_amount',
notes: 'notes',
payload: 'payload',
good_snapshot: 'good_snapshot',
@@ -4139,17 +4142,17 @@ export const SaleInvoiceTspAttemptsScalarFieldEnum = {
id: 'id',
attempt_no: 'attempt_no',
status: 'status',
raw_request_payload: 'raw_request_payload',
provider_request_payload: 'provider_request_payload',
provider_response: 'provider_response',
message: 'message',
error_message: 'error_message',
validation_errors: 'validation_errors',
fiscal_warnings: 'fiscal_warnings',
sent_at: 'sent_at',
received_at: 'received_at',
created_at: 'created_at',
invoice_id: 'invoice_id'
invoice_id: 'invoice_id',
provider_request_payload: 'provider_request_payload',
raw_request_payload: 'raw_request_payload',
error_message: 'error_message',
fiscal_warnings: 'fiscal_warnings',
provider_response: 'provider_response',
validation_errors: 'validation_errors'
} as const
export type SaleInvoiceTspAttemptsScalarFieldEnum = (typeof SaleInvoiceTspAttemptsScalarFieldEnum)[keyof typeof SaleInvoiceTspAttemptsScalarFieldEnum]
@@ -4686,8 +4689,8 @@ export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItem
export const SaleInvoiceTspAttemptsOrderByRelevanceFieldEnum = {
id: 'id',
message: 'message',
error_message: 'error_message',
invoice_id: 'invoice_id'
invoice_id: 'invoice_id',
error_message: 'error_message'
} as const
export type SaleInvoiceTspAttemptsOrderByRelevanceFieldEnum = (typeof SaleInvoiceTspAttemptsOrderByRelevanceFieldEnum)[keyof typeof SaleInvoiceTspAttemptsOrderByRelevanceFieldEnum]