@deboxsoft/accounting-api
Advanced tools
Comparing version 1.4.0-beta.58 to 1.4.0-beta.59
@@ -497,6 +497,6 @@ 'use strict'; | ||
}).transform((_) => { | ||
const date = _.date || new Date(); | ||
const date = new Date(); | ||
const monthLife = calcDepreciationMonthLife(_.groupDepreciationId); | ||
const depreciationDayOfMonth = dayjs__default['default'](_.datePurchase).date(); | ||
const depreciationCount = dayjs__default['default'](_.datePurchase).diff(date, "month"); | ||
const depreciationCount = dayjs__default['default'](date).diff(_.datePurchase, "month"); | ||
const dateEnd = dayjs__default['default'](_.datePurchase).add(monthLife, "month").toDate(); | ||
@@ -871,6 +871,6 @@ | ||
const transformToBddRepoInput = BddInputSchema.transform((_) => { | ||
const date = _.date || new Date(); | ||
const date = new Date(); | ||
const amortizationDayOfMonth = dayjs__default['default'](_.dateStart).date(); | ||
const dateEnd = dayjs__default['default'](_.dateStart).add(_.monthLife, "month").toDate(); | ||
const amortizationCount = dayjs__default['default'](_.dateStart).diff(date, "month"); | ||
const amortizationCount = dayjs__default['default'](date).diff(_.dateStart, "month"); | ||
return { | ||
@@ -877,0 +877,0 @@ ..._, |
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "1.4.0-beta.58", | ||
"version": "1.4.0-beta.59", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
198868