chore: Fix .env.test quotes and format frontend code
- Fix TEST_ORACLE_USER quotes in .env.test for shell source compatibility - Format 14 frontend files with Prettier (stores, views, utils) - All 122 tests passing (77 telegram + 35 backend + 10 E2E) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -67,8 +67,11 @@ export const useInvoicesStore = defineStore("invoices", () => {
|
||||
// Convert Date object to YYYY-MM-DD string format (LOCAL date, not UTC)
|
||||
if (filters.value.dateFrom instanceof Date) {
|
||||
const year = filters.value.dateFrom.getFullYear();
|
||||
const month = String(filters.value.dateFrom.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(filters.value.dateFrom.getDate()).padStart(2, '0');
|
||||
const month = String(filters.value.dateFrom.getMonth() + 1).padStart(
|
||||
2,
|
||||
"0",
|
||||
);
|
||||
const day = String(filters.value.dateFrom.getDate()).padStart(2, "0");
|
||||
params.date_from = `${year}-${month}-${day}`;
|
||||
} else {
|
||||
params.date_from = filters.value.dateFrom;
|
||||
@@ -78,8 +81,11 @@ export const useInvoicesStore = defineStore("invoices", () => {
|
||||
// Convert Date object to YYYY-MM-DD string format (LOCAL date, not UTC)
|
||||
if (filters.value.dateTo instanceof Date) {
|
||||
const year = filters.value.dateTo.getFullYear();
|
||||
const month = String(filters.value.dateTo.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(filters.value.dateTo.getDate()).padStart(2, '0');
|
||||
const month = String(filters.value.dateTo.getMonth() + 1).padStart(
|
||||
2,
|
||||
"0",
|
||||
);
|
||||
const day = String(filters.value.dateTo.getDate()).padStart(2, "0");
|
||||
params.date_to = `${year}-${month}-${day}`;
|
||||
} else {
|
||||
params.date_to = filters.value.dateTo;
|
||||
@@ -93,8 +99,8 @@ export const useInvoicesStore = defineStore("invoices", () => {
|
||||
const response = await apiService.get(`/invoices/`, {
|
||||
params: {
|
||||
company: companyCode,
|
||||
...params
|
||||
}
|
||||
...params,
|
||||
},
|
||||
});
|
||||
|
||||
invoices.value = response.data.invoices || [];
|
||||
|
||||
@@ -13,7 +13,7 @@ export const useTreasuryStore = defineStore("treasury", () => {
|
||||
});
|
||||
const totals = ref({
|
||||
total_incasari: 0,
|
||||
total_plati: 0
|
||||
total_plati: 0,
|
||||
});
|
||||
|
||||
const loadBankCashRegister = async (companyId, filters = {}) => {
|
||||
@@ -25,18 +25,18 @@ export const useTreasuryStore = defineStore("treasury", () => {
|
||||
company: companyId,
|
||||
page: pagination.value.page + 1,
|
||||
page_size: pagination.value.rows,
|
||||
...filters
|
||||
...filters,
|
||||
};
|
||||
|
||||
const response = await apiService.get('/treasury/bank-cash-register', {
|
||||
params
|
||||
const response = await apiService.get("/treasury/bank-cash-register", {
|
||||
params,
|
||||
});
|
||||
|
||||
registers.value = response.data.registers || [];
|
||||
pagination.value.totalRecords = response.data.total_count || 0;
|
||||
totals.value = {
|
||||
total_incasari: response.data.total_incasari,
|
||||
total_plati: response.data.total_plati
|
||||
total_plati: response.data.total_plati,
|
||||
};
|
||||
|
||||
return { success: true };
|
||||
@@ -72,6 +72,6 @@ export const useTreasuryStore = defineStore("treasury", () => {
|
||||
totals,
|
||||
loadBankCashRegister,
|
||||
setPagination,
|
||||
reset
|
||||
reset,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user