tango-app-api-payment-subscription 3.4.2 → 3.4.3
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.
package/package.json
CHANGED
|
@@ -226,7 +226,7 @@ export async function invoiceDownload( req, res ) {
|
|
|
226
226
|
} );
|
|
227
227
|
|
|
228
228
|
|
|
229
|
-
let invoiceDate = dayjs( invoiceInfo.
|
|
229
|
+
let invoiceDate = dayjs( invoiceInfo.billingDate ).format( 'DD/MM/YYYY' );
|
|
230
230
|
|
|
231
231
|
invoiceInfo.totalAmount = Math.round( invoiceInfo.totalAmount );
|
|
232
232
|
let AmountinWords = inWords( invoiceInfo.totalAmount );
|
|
@@ -1700,6 +1700,10 @@ export async function updateInvoice( req, res ) {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
} );
|
|
1702
1702
|
|
|
1703
|
+
if ( req.body.billingDate ) {
|
|
1704
|
+
updateData.createdAt = new Date( req.body.billingDate );
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1703
1707
|
let updatedInvoice = await invoiceService.updateOne( { _id: req.body._id }, updateData );
|
|
1704
1708
|
|
|
1705
1709
|
let logObj = {
|