feat: implement organization fiscal profile management including ARCA activity search and fiscal data configuration
This commit is contained in:
@@ -12,19 +12,42 @@ export enum INVOICE_STATUS {
|
||||
FAILED = "FAILED",
|
||||
}
|
||||
|
||||
export enum INVOICE_PAYMENT_METHOD {
|
||||
export enum INVOICE_SALE_CONDITION {
|
||||
CASH = "cash",
|
||||
CONTADO = "contado",
|
||||
BANK_TRANSFER = "bank_transfer",
|
||||
CREDIT_CARD = "credit_card",
|
||||
DEBIT_CARD = "debit_card",
|
||||
CURRENT_ACCOUNT = "current_account",
|
||||
CHECK = "check",
|
||||
OTHER = "other",
|
||||
ELECTRONIC_PAYMENT = "electronic_payment",
|
||||
}
|
||||
|
||||
export const FINAL_CONSUMER_IVA_CONDITION_ID = 5;
|
||||
|
||||
export type CreateInvoiceFromCashMovementParams = {
|
||||
cashMovementId: string;
|
||||
billingDate: Date | string;
|
||||
paymentMethod: INVOICE_PAYMENT_METHOD | string;
|
||||
description: string;
|
||||
servicePeriodFrom: Date | string;
|
||||
servicePeriodTo: Date | string;
|
||||
paymentDueDate: Date | string;
|
||||
activityCode: string;
|
||||
activityDescription: string;
|
||||
receiverIvaCondition?: 5;
|
||||
receiverDocumentType?: number | string;
|
||||
receiverDocumentNumber?: number | string;
|
||||
receiverName?: string;
|
||||
receiverAddress?: string;
|
||||
receiverEmail?: string;
|
||||
saleCondition: INVOICE_SALE_CONDITION | string;
|
||||
itemDescription: string;
|
||||
itemQuantity?: number;
|
||||
itemUnit?: string;
|
||||
itemUnitPrice: number;
|
||||
itemDiscountPercent?: number;
|
||||
itemDiscountAmount?: number;
|
||||
itemSubtotal: number;
|
||||
sessionUser: string;
|
||||
};
|
||||
|
||||
@@ -48,8 +71,25 @@ export type CreateInvoiceParams = {
|
||||
type: INVOICE_TYPE;
|
||||
status: INVOICE_STATUS;
|
||||
billingDate: Date;
|
||||
paymentMethod: INVOICE_PAYMENT_METHOD | string;
|
||||
description: string;
|
||||
servicePeriodFrom: Date;
|
||||
servicePeriodTo: Date;
|
||||
paymentDueDate: Date;
|
||||
activityCode: string;
|
||||
activityDescription: string;
|
||||
receiverIvaCondition: 5;
|
||||
receiverDocumentType?: number | string;
|
||||
receiverDocumentNumber?: number | string;
|
||||
receiverName?: string;
|
||||
receiverAddress?: string;
|
||||
receiverEmail?: string;
|
||||
saleCondition: INVOICE_SALE_CONDITION | string;
|
||||
itemDescription: string;
|
||||
itemQuantity: number;
|
||||
itemUnit?: string;
|
||||
itemUnitPrice: number;
|
||||
itemDiscountPercent: number;
|
||||
itemDiscountAmount: number;
|
||||
itemSubtotal: number;
|
||||
cae?: string;
|
||||
caeExpiresAt?: Date;
|
||||
pointOfSale?: number;
|
||||
@@ -75,8 +115,25 @@ export interface IInvoice {
|
||||
type: INVOICE_TYPE;
|
||||
status: INVOICE_STATUS;
|
||||
billingDate: Date;
|
||||
paymentMethod: INVOICE_PAYMENT_METHOD | string;
|
||||
description: string;
|
||||
servicePeriodFrom: Date;
|
||||
servicePeriodTo: Date;
|
||||
paymentDueDate: Date;
|
||||
activityCode: string;
|
||||
activityDescription: string;
|
||||
receiverIvaCondition: 5;
|
||||
receiverDocumentType?: number | string;
|
||||
receiverDocumentNumber?: number | string;
|
||||
receiverName?: string;
|
||||
receiverAddress?: string;
|
||||
receiverEmail?: string;
|
||||
saleCondition: INVOICE_SALE_CONDITION | string;
|
||||
itemDescription: string;
|
||||
itemQuantity: number;
|
||||
itemUnit?: string;
|
||||
itemUnitPrice: number;
|
||||
itemDiscountPercent: number;
|
||||
itemDiscountAmount: number;
|
||||
itemSubtotal: number;
|
||||
cae?: string;
|
||||
caeExpiresAt?: Date;
|
||||
pointOfSale?: number;
|
||||
|
||||
Reference in New Issue
Block a user