update switch providers and nama provider. fix original send
This commit is contained in:
@@ -137,10 +137,12 @@ export default {
|
||||
SUN: 'سان',
|
||||
},
|
||||
TspProviderResponseStatus: {
|
||||
SUCCESS: 'موفق',
|
||||
FAILURE: 'ناموفق',
|
||||
NOT_SEND: 'ارسال نشده',
|
||||
[TspProviderResponseStatus.QUEUED]: 'در صف ارسال',
|
||||
[TspProviderResponseStatus.SUCCESS]: 'موفق',
|
||||
[TspProviderResponseStatus.FAILURE]: 'ناموفق',
|
||||
[TspProviderResponseStatus.NOT_SEND]: 'ارسال نشده',
|
||||
[TspProviderResponseStatus.QUEUED]: 'در صف ارسال به معتمد',
|
||||
[TspProviderResponseStatus.FISCAL_QUEUED]: 'در صف ارسال به مالیات',
|
||||
[TspProviderResponseStatus.SEND_FAILURE]: 'خطا در ارسال',
|
||||
},
|
||||
TspProviderRequestType: {
|
||||
ORIGINAL: 'اصلی',
|
||||
|
||||
@@ -150,12 +150,6 @@ export class SharedSaleInvoiceCreateService {
|
||||
const rawPayments = (paymentsData || {}) as Record<string, unknown>
|
||||
const terminalInfo = rawPayments.terminals as TerminalPaymentInfo | undefined
|
||||
|
||||
console.log(
|
||||
'terminalInfo0',
|
||||
rawPayments.terminals?.[0]?.customer_card_no,
|
||||
terminalInfo,
|
||||
)
|
||||
|
||||
const payments: NormalizedPayment[] = Object.entries(rawPayments)
|
||||
.filter(([key, value]) => key !== 'terminals' && value && Number(value) > 0)
|
||||
.map(([key, value]) => ({
|
||||
|
||||
Reference in New Issue
Block a user