mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 21:44:51 +00:00
Invoice time support (#269)
* Changed invoice date to datetime * Fixed code style errors * Update TimeFormatsController.php * Update TimeFormatter.php * Update TimeFormatsController namespace * Fix missing comma in language file * Fix formatting --------- Co-authored-by: troky <troky2001@yahoo.com>
This commit is contained in:
committed by
GitHub
parent
32e03b98a3
commit
f52b73f517
@@ -20,6 +20,8 @@
|
||||
:content-loading="isLoading"
|
||||
:calendar-button="true"
|
||||
calendar-button-icon="calendar"
|
||||
:enableTime="enableTime"
|
||||
:time24hr="time24h"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
@@ -61,8 +63,10 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import ExchangeRateConverter from '@/scripts/admin/components/estimate-invoice-common/ExchangeRateConverter.vue'
|
||||
import { useInvoiceStore } from '@/scripts/admin/stores/invoice'
|
||||
import { useCompanyStore } from '@/scripts/admin/stores/company'
|
||||
|
||||
const props = defineProps({
|
||||
v: {
|
||||
@@ -80,4 +84,17 @@ const props = defineProps({
|
||||
})
|
||||
|
||||
const invoiceStore = useInvoiceStore()
|
||||
const companyStore = useCompanyStore()
|
||||
|
||||
const enableTime = computed(() => {
|
||||
return (
|
||||
companyStore.selectedCompanySettings.invoice_use_time === 'YES'
|
||||
);
|
||||
})
|
||||
const time24h = computed(() => {
|
||||
return (
|
||||
companyStore.selectedCompanySettings.carbon_time_format.indexOf('H') > -1
|
||||
);
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user