Add znzt module
Deploy Manager App / deploy (push) Successful in 21s
Details
Deploy Manager App / deploy (push) Successful in 21s
Details
This commit is contained in:
parent
b6c1833295
commit
b89677c9a8
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue