@tamu-dor/famis-db 3.0.6 → 3.0.7
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/dist/main.cjs +2 -2
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -936,7 +936,7 @@ var FAMISDb = class {
|
|
|
936
936
|
this.on(`${table}.department`, "=", "departments.dept").on("departments.part", "=", self.db.raw("?", [number.substring(0, 2)]));
|
|
937
937
|
}).leftJoin(`${table} as parent_account`, function() {
|
|
938
938
|
this.on(`${table}.campus_code`, "=", "parent_account.campus_code").on(`${table}.account`, "=", "parent_account.account").on("parent_account.support_account", "=", self.db.raw("?", ["00000"])).on(`${table}.fiscal_year`, "=", "parent_account.fiscal_year");
|
|
939
|
-
}).select(`${table}.*`, "departments.idt_email as billingEmailId", "parent_account.
|
|
939
|
+
}).select(`${table}.*`, "departments.idt_email as billingEmailId", "parent_account.default_bank as parent_account_default_bank").whereNull("departments.sub").andWhere(function() {
|
|
940
940
|
this.whereNull("departments.exp_date").orWhere("departments.exp_date", ">", self.db.raw("CURRENT_DATE"));
|
|
941
941
|
}).andWhere(`${table}.account_number`, number);
|
|
942
942
|
if (records.length) retVal = records[0];
|
|
@@ -944,7 +944,7 @@ var FAMISDb = class {
|
|
|
944
944
|
records = await this.db("customers").where("account_number", number).andWhere("campus_code", campus);
|
|
945
945
|
if (records.length) retVal = Object.assign({}, records[0], {
|
|
946
946
|
idt_allowed: false,
|
|
947
|
-
|
|
947
|
+
parent_account_default_bank: null,
|
|
948
948
|
billingEmailId: records[0].email
|
|
949
949
|
});
|
|
950
950
|
}
|