diff --git a/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.html b/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.html index 7bd79a8..6c014e2 100644 --- a/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.html +++ b/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.html @@ -33,11 +33,11 @@ diff --git a/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.ts b/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.ts index 9e6d7d2..99372db 100644 --- a/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.ts +++ b/src/app/domains/pos/modules/shop/components/payloads/gold/form.component.ts @@ -88,7 +88,7 @@ export class PosGoldPayloadFormComponent extends AbstractForm< [Validators.required, greaterThanValidator(0)], ], quantity: [this.initialValues?.quantity || 0, [Validators.required, greaterThanValidator(0)]], - discount: [this.initialValues?.discount_amount || 0], + discount_amount: [this.initialValues?.discount_amount || 0], discount_percentage: [0, [Validators.max(100), Validators.min(0)]], payload: this.fb.group({ commission: [this.initialValues?.payload?.commission || 0, [Validators.required]], @@ -107,13 +107,13 @@ export class PosGoldPayloadFormComponent extends AbstractForm< form.controls.payload.controls.profit.valueChanges.pipe(takeUntilDestroyed()).subscribe(() => { // if ((form.controls.discount_amount.value || 0) > (value || 0)) { - form.controls.discount.setValue(0, { emitEvent: false }); + form.controls.discount_amount.setValue(0, { emitEvent: false }); // } }); form.controls.payload.controls.profit_percentage.valueChanges .pipe(takeUntilDestroyed()) .subscribe(() => { - form.controls.discount.setValue(0, { emitEvent: false }); + form.controls.discount_amount.setValue(0, { emitEvent: false }); }); return form; @@ -127,7 +127,7 @@ export class PosGoldPayloadFormComponent extends AbstractForm< total_amount: this.totalAmount(), base_total_amount: this.baseTotalAmount(), tax_amount: this.taxAmount(), - discount_amount: this.form.value.discount || 0, + discount_amount: this.form.value.discount_amount || 0, payload: { commission: this.form.controls.payload.controls.commission.value || 0, karat: this.form.controls.payload.controls.karat.value as TGoldKarat, diff --git a/src/app/shared/catalog/taxProviderStatus/tax-provider-status-tag.component.ts b/src/app/shared/catalog/taxProviderStatus/tax-provider-status-tag.component.ts index 79e8c8f..1d29b30 100644 --- a/src/app/shared/catalog/taxProviderStatus/tax-provider-status-tag.component.ts +++ b/src/app/shared/catalog/taxProviderStatus/tax-provider-status-tag.component.ts @@ -37,9 +37,9 @@ export class CatalogTaxProviderStatusTagComponent { case 'NOT_SEND': return 'ارسال نشده'; case 'QUEUED': - return 'در صف ارسال به معتمد'; + return 'در صف ارسال'; case 'FISCAL_QUEUED': - return 'در صف ارسال به مالیات'; + return 'در انتظار تایید سازمان'; case 'SEND_FAILURE': return 'خطا در ارسال'; default: diff --git a/src/app/shared/components/invoices/sale-invoice-single-view.component.html b/src/app/shared/components/invoices/sale-invoice-single-view.component.html index 6a208f7..ecb1fbf 100644 --- a/src/app/shared/components/invoices/sale-invoice-single-view.component.html +++ b/src/app/shared/components/invoices/sale-invoice-single-view.component.html @@ -87,9 +87,6 @@