mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
дату черновиков пофиксил
This commit is contained in:
@@ -201,6 +201,8 @@ export const DraftsList: React.FC = () => {
|
||||
dataSource={invoices}
|
||||
renderItem={(item) => {
|
||||
const isSynced = item.type === "SYNCED";
|
||||
const displayDate =
|
||||
item.type === "DRAFT" ? item.created_at : item.date_incoming;
|
||||
|
||||
return (
|
||||
<List.Item
|
||||
@@ -235,7 +237,7 @@ export const DraftsList: React.FC = () => {
|
||||
{item.items_count} поз.
|
||||
</Text>
|
||||
<Text type="secondary" style={{ fontSize: 13 }}>
|
||||
{dayjs(item.date_incoming).format("DD.MM.YYYY")}
|
||||
{dayjs(displayDate).format("DD.MM.YYYY")}
|
||||
</Text>
|
||||
</Flex>
|
||||
{item.incoming_number && (
|
||||
|
||||
Reference in New Issue
Block a user