@social-mail/social-mail-web-server 1.8.331 → 1.8.333

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.8.331",
3
+ "version": "1.8.333",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,7 +17,7 @@ export default async function seedUI(config: DBConfig) {
17
17
  await config.saveVersion(UIPackageConfig, {
18
18
  package: "@social-mail/social-mail-client",
19
19
  view: "dist/web/AppIndex",
20
- version: "1.9.29"
20
+ version: "1.9.30"
21
21
  });
22
22
 
23
23
  await config.saveVersion(WebComponentsPackageConfig, {
@@ -163,6 +163,7 @@ export default class SalesInvoiceService implements Disposable, ICacheContainer<
163
163
  getTaxes(priceID, currency) {
164
164
  return this.db.storeItemPrices
165
165
  .where({ priceID, currency }, (p) => (x) => x.currency === p.currency
166
+ && x.active === true
166
167
  && x.storeItem.taxItems
167
168
  .some((ti) => ti.storeItem.storeItemPrices
168
169
  .some((pi) => pi.priceID === p.priceID
@@ -174,7 +175,9 @@ export default class SalesInvoiceService implements Disposable, ICacheContainer<
174
175
  @cacheFor()
175
176
  async getPrice(itemPriceID: number) {
176
177
  return await this.db.storeItemPrices
177
- .where({ itemPriceID }, (p) => (x) => x.priceID === p.itemPriceID)
178
+ .where({ itemPriceID }, (p) => (x) => x.priceID === p.itemPriceID
179
+ && x.active === true
180
+ )
178
181
  .first();
179
182
  }
180
183