Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-10-01 11:41:55 +02:00
commit 1c8bb35eae
2 changed files with 8 additions and 8 deletions

View File

@ -59,10 +59,10 @@ module.exports = Self => {
}
});
const created = invoiceOut.created;
const year = created.getFullYear().toString();
const month = (created.getMonth() + 1).toString();
const day = created.getDate().toString();
const issued = invoiceOut.issued;
const year = issued.getFullYear().toString();
const month = (issued.getMonth() + 1).toString();
const day = issued.getDate().toString();
const container = await models.InvoiceContainer.container(year);
const rootPath = container.client.root;

View File

@ -45,10 +45,10 @@ module.exports = Self => {
try {
const invoiceOut = await models.InvoiceOut.findById(id, null, myOptions);
const created = invoiceOut.created;
const year = created.getFullYear().toString();
const month = (created.getMonth() + 1).toString();
const day = created.getDate().toString();
const issued = invoiceOut.issued;
const year = issued.getFullYear().toString();
const month = (issued.getMonth() + 1).toString();
const day = issued.getDate().toString();
const container = await models.InvoiceContainer.container(year);
const rootPath = container.client.root;