update for ImportWorkflow plugin
This commit is contained in:
parent
681262c33e
commit
c275206cae
|
@ -409,5 +409,15 @@ class ImportWorkflow
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getComputedTotalAmount(): ?string
|
||||||
|
{
|
||||||
|
$items = $this->getItems();
|
||||||
|
$total = 0;
|
||||||
|
foreach ($items as $item) {
|
||||||
|
$total += $item->getTotalPrice();
|
||||||
|
}
|
||||||
|
return $total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,7 @@ export default {
|
||||||
{ path: '/acc/plugins/tax/invoices/list', key: 'L', label: this.$t('drawer.tax_invoices'), ctrl: true, shift: true, permission: () => this.permissions.settings && this.isPluginActive('taxsettings') },
|
{ path: '/acc/plugins/tax/invoices/list', key: 'L', label: this.$t('drawer.tax_invoices'), ctrl: true, shift: true, permission: () => this.permissions.settings && this.isPluginActive('taxsettings') },
|
||||||
{ path: '/acc/plugins/tax/settings', key: 'T', label: this.$t('drawer.tax_settings'), ctrl: true, shift: true, permission: () => this.permissions.settings && this.isPluginActive('taxsettings') },
|
{ path: '/acc/plugins/tax/settings', key: 'T', label: this.$t('drawer.tax_settings'), ctrl: true, shift: true, permission: () => this.permissions.settings && this.isPluginActive('taxsettings') },
|
||||||
{ path: '/acc/plugins/custominvoice/templates', key: 'I', label: 'قالبهای فاکتور', ctrl: true, shift: true, permission: () => this.permissions.settings && this.isPluginActive('custominvoice') },
|
{ path: '/acc/plugins/custominvoice/templates', key: 'I', label: 'قالبهای فاکتور', ctrl: true, shift: true, permission: () => this.permissions.settings && this.isPluginActive('custominvoice') },
|
||||||
{ path: '/acc/plugins/import-workflow', key: 'I', label: 'مدیریت واردات کالا', ctrl: true, shift: true, permission: () => this.permissions.importWorkflow },
|
{ path: '/acc/plugins/import-workflow', key: 'I', label: 'مدیریت واردات کالا', ctrl: true, shift: true, permission: () => this.permissions.plugImportWorkflow },
|
||||||
{ path: '/acc/storeroom/tickets/list/helper', key: 'I', label: this.$t('drawer.storeroom_ticket_helper'), ctrl: true, shift: true, permission: () => (this.permissions.storehelper || this.permissions.store) && this.isPluginActive('accpro') },
|
{ path: '/acc/storeroom/tickets/list/helper', key: 'I', label: this.$t('drawer.storeroom_ticket_helper'), ctrl: true, shift: true, permission: () => (this.permissions.storehelper || this.permissions.store) && this.isPluginActive('accpro') },
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
@ -815,13 +815,13 @@ export default {
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list-group>
|
</v-list-group>
|
||||||
<v-list-subheader color="primary">{{ $t('drawer.services') }}</v-list-subheader>
|
<v-list-subheader color="primary">{{ $t('drawer.services') }}</v-list-subheader>
|
||||||
<v-list-group v-show="isPluginActive('import-workflow') && permissions.importWorkflow">
|
<v-list-group v-show="isPluginActive('import-workflow') && permissions.plugImportWorkflow">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-list-item class="text-dark" v-bind="props" title="مدیریت واردات کالا">
|
<v-list-item class="text-dark" v-bind="props" title="مدیریت واردات کالا">
|
||||||
<template v-slot:prepend><v-icon icon="mdi-import" color="primary"></v-icon></template>
|
<template v-slot:prepend><v-icon icon="mdi-import" color="primary"></v-icon></template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</template>
|
</template>
|
||||||
<v-list-item v-if="permissions.importWorkflow" to="/acc/plugins/import-workflow/list">
|
<v-list-item v-if="permissions.plugImportWorkflow" to="/acc/plugins/import-workflow/list">
|
||||||
<v-list-item-title>
|
<v-list-item-title>
|
||||||
لیست پروندههای واردات
|
لیست پروندههای واردات
|
||||||
<span v-if="isCtrlShiftPressed" class="shortcut-key">{{ getShortcutKey('/acc/plugins/import-workflow/list') }}</span>
|
<span v-if="isCtrlShiftPressed" class="shortcut-key">{{ getShortcutKey('/acc/plugins/import-workflow/list') }}</span>
|
||||||
|
|
Loading…
Reference in a new issue