Add znzt module
Deploy Manager App / deploy (push) Successful in 21s Details

This commit is contained in:
romanskijdev 2026-08-27 12:47:49 +03:00
parent b6c1833295
commit b89677c9a8
1 changed files with 11 additions and 6 deletions

View File

@ -67,12 +67,17 @@ export default function OrdersPage({ onError }: { onError: (msg: string) => void
const initialMap: Record<string, MonthlyOrderClient> = {}
matrix.clients.forEach(c => {
const clientName = c.google_data.name
initialMap[clientName] = c.db_order || {
client_name: clientName,
items: [],
manager_comment: '',
decade: null, delivery: null, payment_form: null, conditions: null,
status: 'draft'
if (c.db_order) {
c.db_order.items = c.db_order.items || [];
initialMap[clientName] = c.db_order;
} else {
initialMap[clientName] = {
client_name: clientName,
items: [],
manager_comment: '',
decade: null, delivery: null, payment_form: null, conditions: null,
}
}
})