tango-app-api-payment-subscription 3.1.16 → 3.1.17
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
|
@@ -179,7 +179,7 @@ export async function invoiceDownload( req, res ) {
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
for ( let tax of invoiceInfo.tax ) {
|
|
182
|
-
tax.taxAmount = tax.taxAmount.toLocaleString( 'en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 } );
|
|
182
|
+
tax.taxAmount = Math.round( tax.taxAmount ).toLocaleString( 'en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 } );
|
|
183
183
|
}
|
|
184
184
|
let invoiceDate = dayjs( invoiceInfo.createdAt ).format( 'DD/MM/YYYY' );
|
|
185
185
|
let days = clientDetails?.paymentInvoice?.extendPaymentPeriodDays || 10;
|
|
@@ -193,6 +193,7 @@ export async function invoiceDownload( req, res ) {
|
|
|
193
193
|
invoiceData = {
|
|
194
194
|
...invoiceInfo._doc,
|
|
195
195
|
clientName: clientDetails.clientName,
|
|
196
|
+
amount: invoiceInfo.amount.toLocaleString( 'en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 } ),
|
|
196
197
|
extendDays: clientDetails.paymentInvoice.extendPaymentPeriodDays,
|
|
197
198
|
address: clientDetails.billingDetails.billingAddress,
|
|
198
199
|
subtotal: invoiceInfo.amount.toLocaleString( 'en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 } ),
|
|
@@ -215,6 +216,7 @@ export async function invoiceDownload( req, res ) {
|
|
|
215
216
|
virtualaccountNumber: virtualAccount?virtualAccount?.accountNumber:'',
|
|
216
217
|
virtualifsc: virtualAccount?virtualAccount?.ifsc:'',
|
|
217
218
|
};
|
|
219
|
+
|
|
218
220
|
const currentMonthDays = dayjs().daysInMonth();
|
|
219
221
|
|
|
220
222
|
if ( getgroup.attachAnnexure ) {
|
|
@@ -849,7 +851,7 @@ export async function clientInvoiceList( req, res ) {
|
|
|
849
851
|
filterEndDate = new Date( dayjs().endOf( 'month' ).format( 'YYYY-MM-DD' ) );
|
|
850
852
|
}
|
|
851
853
|
|
|
852
|
-
if ( req.body?.filter
|
|
854
|
+
if ( req.body?.filter ) {
|
|
853
855
|
query.push(
|
|
854
856
|
{
|
|
855
857
|
$match: {
|