@zeniai/client-epic-state 4.8.78 → 4.8.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,7 +143,7 @@ const initializeBillToLocalStoreEpic = (actions$, state$) => actions$.pipe((0, o
143
143
  invoiceDate: (0, editBillViewSelector_1.getInvoiceDate)(transaction.date, bookCloseDate),
144
144
  memo: transaction.memo,
145
145
  currencyCode: transaction.amount.currencyCode,
146
- isInvoiceDateAutoUpdated: transaction.date != null
146
+ isInvoiceDateAutoUpdated: transaction.date != null && bookCloseDate != null
147
147
  ? transaction.date.isBefore(bookCloseDate)
148
148
  : false,
149
149
  };
@@ -207,7 +207,7 @@ const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPaylo
207
207
  billDueDate: dueDate,
208
208
  memo: billPayload.transaction_memo,
209
209
  invoiceDate: invoiceDate,
210
- isInvoiceDateAutoUpdated: Boolean(billPayload.transaction_date) === true
210
+ isInvoiceDateAutoUpdated: Boolean(billPayload.transaction_date) === true && bookCloseDate != null
211
211
  ? (0, zeniDayJS_1.date)(billPayload.transaction_date).isBefore(bookCloseDate)
212
212
  : false,
213
213
  currencyCode: billPayload.currency_code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.78",
3
+ "version": "4.8.79",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",