Simplify order detail layout
This commit is contained in:
9
app/composables/useOrderDetailPresentation.ts
Normal file
9
app/composables/useOrderDetailPresentation.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function orderLineStateText(totalPrice?: number | null) {
|
||||
return totalPrice == null
|
||||
? 'Цена уточняется менеджером'
|
||||
: 'Цена согласована менеджером';
|
||||
}
|
||||
|
||||
export function orderDeliveryStateText(deliveryTerms?: string | null) {
|
||||
return deliveryTerms?.trim() || 'Доставка уточняется менеджером';
|
||||
}
|
||||
Reference in New Issue
Block a user