4090-global_invoincing #1135

Merged
vicent merged 46 commits from 4090-global_invoincing into dev 2022-11-15 08:48:25 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 994cf7ccf0 - Show all commits

View File

@ -41,7 +41,6 @@ module.exports = Self => {
Self.globalInvoicing = async(ctx, options) => {
const args = ctx.args;
let tx;
const myOptions = {};
@ -79,7 +78,7 @@ module.exports = Self => {
const minShipped = new Date();
minShipped.setFullYear(minShipped.getFullYear() - 1);
if (args.fromClientId = args.toClientId) {
if (args.fromClientId == args.toClientId) {
minShipped.setFullYear(2021);
minShipped.setMonth(1);
minShipped.setDate(1);