From f91e2e89dff109838fdb7a2b294587bbd8cb3427 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Mon, 28 Aug 2023 12:48:11 +0530 Subject: [PATCH] fix: order in address quick view --- models/helpers.ts | 2 +- schemas/app/Address.json | 2 +- schemas/regional/in/Address.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/helpers.ts b/models/helpers.ts index 024fcda6..4f95ef57 100644 --- a/models/helpers.ts +++ b/models/helpers.ts @@ -170,7 +170,7 @@ export function getMakeReturnDocAction(fyo: Fyo): Action { doc.isSubmitted && !doc.isReturn, action: async (doc: Doc) => { - const returnDoc = await (doc as StockTransfer).getReturnDoc(); + const returnDoc = await (doc as StockTransfer)?.getReturnDoc(); if (!returnDoc || !returnDoc.name) { return; } diff --git a/schemas/app/Address.json b/schemas/app/Address.json index e0b3ecda..965029ea 100644 --- a/schemas/app/Address.json +++ b/schemas/app/Address.json @@ -83,8 +83,8 @@ "addressLine1", "addressLine2", "city", - "state", "country", + "state", "postalCode" ], "linkDisplayField": "addressDisplay" diff --git a/schemas/regional/in/Address.json b/schemas/regional/in/Address.json index 2a0460a0..3ad00dfa 100644 --- a/schemas/regional/in/Address.json +++ b/schemas/regional/in/Address.json @@ -13,8 +13,8 @@ "addressLine1", "addressLine2", "city", - "state", "country", + "state", "postalCode", "pos" ]