2024-09-30 15:19:20 -05:00
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export interface TaxInteface {
|
2024-09-30 15:19:20 -05:00
|
|
|
id: string;
|
|
|
|
|
idSaleDetail: string;
|
|
|
|
|
idProduct: string;
|
|
|
|
|
idTax: string;
|
|
|
|
|
name: string;
|
|
|
|
|
alias: string;
|
|
|
|
|
percent: number;
|
|
|
|
|
totalPriceBeforeTaxes: number;
|
|
|
|
|
taxValue: number;
|
|
|
|
|
taxUnitValue: number | null;
|
|
|
|
|
taxIncluded: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export interface SaleDetailInterface {
|
2024-09-30 15:19:20 -05:00
|
|
|
idDetail: string;
|
|
|
|
|
idTransaction: string;
|
|
|
|
|
id: string;
|
|
|
|
|
itemIdentifier: string;
|
|
|
|
|
name: string;
|
|
|
|
|
unitMeasurement: string;
|
|
|
|
|
idDepartment: string | null;
|
|
|
|
|
departmentNumber: string | null;
|
|
|
|
|
description: string;
|
|
|
|
|
quantity: number;
|
|
|
|
|
weight: number | null;
|
|
|
|
|
regularUnitPrice: number;
|
|
|
|
|
originalUnitPrice: number;
|
|
|
|
|
discount: number;
|
|
|
|
|
totalTaxes: number;
|
|
|
|
|
taxableFlag: boolean;
|
|
|
|
|
restrictedAge: number;
|
|
|
|
|
idSaleState: number;
|
|
|
|
|
idUser: string;
|
|
|
|
|
creation: string;
|
|
|
|
|
lastUpdate: string;
|
2024-10-01 13:45:34 -05:00
|
|
|
taxes: TaxInteface[];
|
2024-09-30 15:19:20 -05:00
|
|
|
active: boolean;
|
|
|
|
|
weighable: boolean;
|
|
|
|
|
extendedPrice: number;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export interface CustomerPromotionInterface {
|
2024-09-30 15:19:20 -05:00
|
|
|
groupId: string;
|
|
|
|
|
customerId: string;
|
|
|
|
|
percentageDiscount: number | null;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export interface ItemPromotionInterface {
|
2024-09-30 15:19:20 -05:00
|
|
|
index: number;
|
|
|
|
|
code: string;
|
|
|
|
|
quantity: number;
|
|
|
|
|
unitPrice: number;
|
|
|
|
|
attribute: string | null;
|
|
|
|
|
promotionTrace: string | null;
|
|
|
|
|
resultPercentDiscount: number | null;
|
|
|
|
|
weighable: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export interface PromotionsInterface {
|
|
|
|
|
customer: CustomerPromotionInterface;
|
|
|
|
|
items: ItemPromotionInterface[];
|
2024-09-30 15:19:20 -05:00
|
|
|
total: number;
|
2024-10-01 13:45:34 -05:00
|
|
|
listPromotion: any[];
|
2024-09-30 15:19:20 -05:00
|
|
|
}
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export interface SaleTransactionObjectInterface {
|
2024-09-30 15:19:20 -05:00
|
|
|
id: string;
|
|
|
|
|
idCompany: string;
|
|
|
|
|
idSubsidiary: number;
|
|
|
|
|
transactionNumber: string;
|
|
|
|
|
idClient: string;
|
|
|
|
|
clientName: string;
|
|
|
|
|
clientDni: string;
|
|
|
|
|
idType: string;
|
|
|
|
|
totalSale: number;
|
|
|
|
|
totalTaxes: number;
|
|
|
|
|
totalWithPromotion: number;
|
|
|
|
|
idGroup: string;
|
|
|
|
|
group: string;
|
|
|
|
|
invoiceCode: string | null;
|
|
|
|
|
invoiceName: string;
|
|
|
|
|
invoiceTypeDni: string;
|
|
|
|
|
invoiceDni: string;
|
|
|
|
|
invoiceDirection: string;
|
|
|
|
|
invoiceCellPhone: string;
|
|
|
|
|
invoiceEmail: string;
|
|
|
|
|
idUser: string;
|
|
|
|
|
idSaleState: number;
|
|
|
|
|
numberStore: string;
|
|
|
|
|
pos: string;
|
|
|
|
|
posLocalTimeStart: string;
|
|
|
|
|
posLocalTimeEnd: string | null;
|
|
|
|
|
localDateTime: string | null;
|
|
|
|
|
creation: string;
|
|
|
|
|
lastUpdate: string;
|
2024-10-01 13:45:34 -05:00
|
|
|
list: SaleDetailInterface[];
|
|
|
|
|
promotions: PromotionsInterface;
|
2024-09-30 15:19:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GetSaleResponseInterface {
|
|
|
|
|
correct: boolean;
|
|
|
|
|
message: string | null;
|
|
|
|
|
errorCode: number;
|
2024-10-01 13:45:34 -05:00
|
|
|
object: SaleTransactionObjectInterface;
|
2024-09-30 15:19:20 -05:00
|
|
|
}
|