Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
1c8bb35eae
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue