@things-factory/sales-base 8.0.24 → 8.0.25

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.
Files changed (28) hide show
  1. package/dist-server/service/arrival-notice/index.d.ts +1 -1
  2. package/dist-server/service/claim/index.d.ts +1 -1
  3. package/dist-server/service/claim-detail/index.d.ts +1 -1
  4. package/dist-server/service/claim-order/index.d.ts +1 -1
  5. package/dist-server/service/collection-order/index.d.ts +1 -1
  6. package/dist-server/service/delivery-order/index.d.ts +1 -1
  7. package/dist-server/service/goods-receival-note/index.d.ts +1 -1
  8. package/dist-server/service/index.d.ts +2 -2
  9. package/dist-server/service/inventory-check/index.d.ts +1 -1
  10. package/dist-server/service/invoice/index.d.ts +1 -1
  11. package/dist-server/service/invoice-product/index.d.ts +1 -1
  12. package/dist-server/service/job-sheet/index.d.ts +1 -1
  13. package/dist-server/service/order-inventory/index.d.ts +1 -1
  14. package/dist-server/service/order-product/index.d.ts +1 -1
  15. package/dist-server/service/order-tote/index.d.ts +1 -1
  16. package/dist-server/service/order-tote-item/index.d.ts +1 -1
  17. package/dist-server/service/order-tote-seal/index.d.ts +1 -1
  18. package/dist-server/service/purchase-order-other-charge/index.d.ts +1 -1
  19. package/dist-server/service/release-good/release-good-mutation.js +1 -1
  20. package/dist-server/service/release-good/release-good-mutation.js.map +1 -1
  21. package/dist-server/service/retail-replenishment-order/index.d.ts +1 -1
  22. package/dist-server/service/return-order/index.d.ts +1 -1
  23. package/dist-server/service/shipping-order/index.d.ts +1 -1
  24. package/dist-server/service/transfer-order/index.d.ts +1 -1
  25. package/dist-server/service/vas/index.d.ts +1 -1
  26. package/dist-server/service/vas-order/index.d.ts +1 -1
  27. package/dist-server/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +2 -2
@@ -2,6 +2,6 @@ import { ArrivalNotice } from './arrival-notice';
2
2
  import { ArrivalNoticeMutation } from './arrival-notice-mutation';
3
3
  import { ArrivalNoticeQuery } from './arrival-notice-query';
4
4
  export declare const entities: (typeof ArrivalNotice)[];
5
- export declare const resolvers: (typeof ArrivalNoticeQuery | typeof ArrivalNoticeMutation)[];
5
+ export declare const resolvers: (typeof ArrivalNoticeMutation | typeof ArrivalNoticeQuery)[];
6
6
  export * from './arrival-notice-mutation';
7
7
  export * from './arrival-notice-query';
@@ -2,6 +2,6 @@ import { Claim } from './claim';
2
2
  import { ClaimMutation } from './claim-mutation';
3
3
  import { ClaimQuery } from './claim-query';
4
4
  export declare const entities: (typeof Claim)[];
5
- export declare const resolvers: (typeof ClaimQuery | typeof ClaimMutation)[];
5
+ export declare const resolvers: (typeof ClaimMutation | typeof ClaimQuery)[];
6
6
  export * from './claim-mutation';
7
7
  export * from './claim-query';
@@ -2,6 +2,6 @@ import { ClaimDetail } from './claim-detail';
2
2
  import { ClaimDetailMutation } from './claim-detail-mutation';
3
3
  import { ClaimDetailQuery } from './claim-detail-query';
4
4
  export declare const entities: (typeof ClaimDetail)[];
5
- export declare const resolvers: (typeof ClaimDetailQuery | typeof ClaimDetailMutation)[];
5
+ export declare const resolvers: (typeof ClaimDetailMutation | typeof ClaimDetailQuery)[];
6
6
  export * from './claim-detail-mutation';
7
7
  export * from './claim-detail-query';
@@ -2,6 +2,6 @@ import { ClaimOrder } from './claim-order';
2
2
  import { ClaimOrderMutation } from './claim-order-mutation';
3
3
  import { ClaimOrderQuery } from './claim-order-query';
4
4
  export declare const entities: (typeof ClaimOrder)[];
5
- export declare const resolvers: (typeof ClaimOrderQuery | typeof ClaimOrderMutation)[];
5
+ export declare const resolvers: (typeof ClaimOrderMutation | typeof ClaimOrderQuery)[];
6
6
  export * from './claim-order-mutation';
7
7
  export * from './claim-order-query';
@@ -2,6 +2,6 @@ import { CollectionOrder } from './collection-order';
2
2
  import { CollectionOrderMutation } from './collection-order-mutation';
3
3
  import { CollectionOrderQuery } from './collection-order-query';
4
4
  export declare const entities: (typeof CollectionOrder)[];
5
- export declare const resolvers: (typeof CollectionOrderQuery | typeof CollectionOrderMutation)[];
5
+ export declare const resolvers: (typeof CollectionOrderMutation | typeof CollectionOrderQuery)[];
6
6
  export * from './collection-order-mutation';
7
7
  export * from './collection-order-query';
@@ -2,6 +2,6 @@ import { DeliveryOrder } from './delivery-order';
2
2
  import { DeliveryOrderMutation } from './delivery-order-mutation';
3
3
  import { DeliveryOrderQuery } from './delivery-order-query';
4
4
  export declare const entities: (typeof DeliveryOrder)[];
5
- export declare const resolvers: (typeof DeliveryOrderQuery | typeof DeliveryOrderMutation)[];
5
+ export declare const resolvers: (typeof DeliveryOrderMutation | typeof DeliveryOrderQuery)[];
6
6
  export * from './delivery-order-mutation';
7
7
  export * from './delivery-order-query';
@@ -2,6 +2,6 @@ import { GoodsReceivalNote } from './goods-receival-note';
2
2
  import { GoodsReceivalNoteMutation } from './goods-receival-note-mutation';
3
3
  import { GoodsReceivalNoteQuery } from './goods-receival-note-query';
4
4
  export declare const entities: (typeof GoodsReceivalNote)[];
5
- export declare const resolvers: (typeof GoodsReceivalNoteQuery | typeof GoodsReceivalNoteMutation)[];
5
+ export declare const resolvers: (typeof GoodsReceivalNoteMutation | typeof GoodsReceivalNoteQuery)[];
6
6
  export * from './goods-receival-note-mutation';
7
7
  export * from './goods-receival-note-query';
@@ -113,7 +113,7 @@ export * from './vas/vas-query';
113
113
  export * from './order-tote/order-tote-query';
114
114
  export * from './order-tote-item/order-tote-item-query';
115
115
  export * from './order-tote-seal/order-tote-seal-query';
116
- export declare const entities: (typeof import("./release-good/release-good").ReleaseGood | typeof import("./claim-detail/claim-detail").ClaimDetail | typeof import("./claim/claim").Claim | typeof import("./claim-order/claim-order").ClaimOrder | typeof import("./collection-order/collection-order").CollectionOrder | typeof import("./delivery-order/delivery-order").DeliveryOrder | typeof import("./draft-release-good/draft-release-good").DraftReleaseGood | typeof import("./goods-receival-note/goods-receival-note").GoodsReceivalNote | typeof import("./inventory-check/inventory-check").InventoryCheck | typeof import("./invoice/invoice").Invoice | typeof import("./invoice-product/invoice-product").InvoiceProduct | typeof import("./job-sheet/job-sheet").JobSheet | typeof import("./manifest/manifest").Manifest | typeof import("./order-inventory/order-inventory").OrderInventory | typeof import("./order-product/order-product").OrderProduct | typeof import("./order-vas/order-vas").OrderVas | typeof import("./purchase-order/purchase-order").PurchaseOrder | typeof import("./purchase-order-other-charge/purchase-order-other-charge").PurchaseOrderOtherCharge | typeof import("./reverse-kitting-order/reverse-kitting-order").ReverseKittingOrder | typeof import("./reverse-kitting-order-inventory/reverse-kitting-order-inventory").ReverseKittingOrderInventory | typeof import("./shipping-order/shipping-order").ShippingOrder | typeof import("./vas/vas").Vas | typeof import("./vas-order/vas-order").VasOrder | typeof OrderTote | typeof OrderToteSeal)[];
116
+ export declare const entities: (typeof import("./collection-order/collection-order").CollectionOrder | typeof import("./release-good/release-good").ReleaseGood | typeof import("./manifest/manifest").Manifest | typeof import("./delivery-order/delivery-order").DeliveryOrder | typeof import("./shipping-order/shipping-order").ShippingOrder | typeof import("./order-vas/order-vas").OrderVas | typeof import("./order-inventory/order-inventory").OrderInventory | typeof import("./order-product/order-product").OrderProduct | typeof import("./inventory-check/inventory-check").InventoryCheck | typeof import("./draft-release-good/draft-release-good").DraftReleaseGood | typeof import("./purchase-order/purchase-order").PurchaseOrder | typeof import("./purchase-order-other-charge/purchase-order-other-charge").PurchaseOrderOtherCharge | typeof OrderToteSeal | typeof OrderTote | typeof import("./job-sheet/job-sheet").JobSheet | typeof import("./vas-order/vas-order").VasOrder | typeof import("./vas/vas").Vas | typeof import("./claim/claim").Claim | typeof import("./claim-detail/claim-detail").ClaimDetail | typeof import("./claim-order/claim-order").ClaimOrder | typeof import("./goods-receival-note/goods-receival-note").GoodsReceivalNote | typeof import("./invoice-product/invoice-product").InvoiceProduct | typeof import("./invoice/invoice").Invoice | typeof import("./reverse-kitting-order-inventory/reverse-kitting-order-inventory").ReverseKittingOrderInventory | typeof import("./reverse-kitting-order/reverse-kitting-order").ReverseKittingOrder)[];
117
117
  export declare const schema: {
118
- resolverClasses: (typeof import("./arrival-notice").ArrivalNoticeQuery | typeof import("./arrival-notice").ArrivalNoticeMutation | typeof import("./claim-detail").ClaimDetailQuery | typeof import("./claim-detail").ClaimDetailMutation | typeof import("./claim-order").ClaimOrderQuery | typeof import("./claim-order").ClaimOrderMutation | typeof import("./claim").ClaimQuery | typeof import("./claim").ClaimMutation | typeof import("./collection-order").CollectionOrderQuery | typeof import("./collection-order").CollectionOrderMutation | typeof import("./delivery-order").DeliveryOrderQuery | typeof import("./delivery-order").DeliveryOrderMutation | typeof import("./draft-release-good").DraftReleaseGoodQuery | typeof import("./draft-release-good").DraftReleaseGoodMutation | typeof import("./goods-receival-note").GoodsReceivalNoteQuery | typeof import("./goods-receival-note").GoodsReceivalNoteMutation | typeof import("./inventory-check").InventoryCheckQuery | typeof import("./inventory-check").InventoryCheckMutation | typeof import("./invoice-product").InvoiceProductQuery | typeof import("./invoice-product").InvoiceProductMutation | typeof import("./invoice").InvoiceQuery | typeof import("./invoice").InvoiceMutation | typeof import("./job-sheet").JobSheetQuery | typeof import("./job-sheet").JobSheetMutation | typeof import("./manifest/manifest-query").ManifestQuery | typeof import("./manifest/manifest-mutation").ManifestMutation | typeof import("./order-inventory").OrderInventoryQuery | typeof import("./order-inventory").OrderInventoryMutation | typeof import("./order-product").OrderProductQuery | typeof import("./order-product").OrderProductMutation | typeof import("./order-vas").OrderVasQuery | typeof import("./order-vas").OrderVasMutation | typeof import("./others").OtherQuery | typeof import("./purchase-order-other-charge").PurchaseOrderOtherChargeQuery | typeof import("./purchase-order-other-charge").PurchaseOrderOtherChargeMutation | typeof import("./purchase-order").PurchaseOrderQuery | typeof import("./purchase-order").PurchaseOrderMutation | typeof import("./release-good").ReleaseGoodQuery | typeof import("./release-good").ReleaseGoodMutation | typeof import("./retail-replenishment-order").RetailReplenishmentOrderQuery | typeof import("./retail-replenishment-order").RetailReplenishmentOrderMutation | typeof import("./return-order").ReturnOrderQuery | typeof import("./return-order").ReturnOrderMutation | typeof import("./reverse-kitting-order-inventory").ReverseKittingOrderInventoryQuery | typeof import("./reverse-kitting-order-inventory").ReverseKittingOrderInventoryMutation | typeof import("./reverse-kitting-order").ReverseKittingOrderQuery | typeof import("./reverse-kitting-order").ReverseKittingOrderMutation | typeof import("./shipping-order").ShippingOrderQuery | typeof import("./shipping-order").ShippingOrderMutation | typeof import("./transfer-order").TransferOrderQuery | typeof import("./transfer-order").TransferOrderMutation | typeof import("./vas").VasQuery | typeof import("./vas").VasMutation | typeof import("./vas-order").VasOrderQuery | typeof import("./vas-order").VasOrderMutation | typeof import("./order-tote").OrderToteQuery | typeof import("./order-tote").OrderToteMutation | typeof import("./order-tote-item").OrderToteItemQuery | typeof import("./order-tote-item").OrderToteItemMutation | typeof import("./order-tote-seal").OrderToteSealQuery | typeof import("./order-tote-seal").OrderToteSealMutation)[];
118
+ resolverClasses: (typeof import("./job-sheet").JobSheetMutation | typeof import("./release-good").ReleaseGoodQuery | typeof import("./release-good").ReleaseGoodMutation | typeof import("./arrival-notice").ArrivalNoticeMutation | typeof import("./arrival-notice").ArrivalNoticeQuery | typeof import("./claim").ClaimMutation | typeof import("./claim").ClaimQuery | typeof import("./claim-detail").ClaimDetailMutation | typeof import("./claim-detail").ClaimDetailQuery | typeof import("./claim-order").ClaimOrderMutation | typeof import("./claim-order").ClaimOrderQuery | typeof import("./collection-order").CollectionOrderMutation | typeof import("./collection-order").CollectionOrderQuery | typeof import("./delivery-order").DeliveryOrderMutation | typeof import("./delivery-order").DeliveryOrderQuery | typeof import("./goods-receival-note").GoodsReceivalNoteMutation | typeof import("./goods-receival-note").GoodsReceivalNoteQuery | typeof import("./inventory-check").InventoryCheckMutation | typeof import("./inventory-check").InventoryCheckQuery | typeof import("./invoice").InvoiceMutation | typeof import("./invoice").InvoiceQuery | typeof import("./invoice-product").InvoiceProductMutation | typeof import("./invoice-product").InvoiceProductQuery | typeof import("./job-sheet").JobSheetQuery | typeof import("./draft-release-good").DraftReleaseGoodQuery | typeof import("./draft-release-good").DraftReleaseGoodMutation | typeof import("./manifest/manifest-query").ManifestQuery | typeof import("./manifest/manifest-mutation").ManifestMutation | typeof import("./order-inventory").OrderInventoryMutation | typeof import("./order-inventory").OrderInventoryQuery | typeof import("./order-product").OrderProductMutation | typeof import("./order-product").OrderProductQuery | typeof import("./order-vas").OrderVasQuery | typeof import("./order-vas").OrderVasMutation | typeof import("./others").OtherQuery | typeof import("./purchase-order").PurchaseOrderQuery | typeof import("./purchase-order").PurchaseOrderMutation | typeof import("./purchase-order-other-charge").PurchaseOrderOtherChargeMutation | typeof import("./purchase-order-other-charge").PurchaseOrderOtherChargeQuery | typeof import("./transfer-order").TransferOrderMutation | typeof import("./retail-replenishment-order").RetailReplenishmentOrderMutation | typeof import("./retail-replenishment-order").RetailReplenishmentOrderQuery | typeof import("./return-order").ReturnOrderMutation | typeof import("./return-order").ReturnOrderQuery | typeof import("./reverse-kitting-order").ReverseKittingOrderQuery | typeof import("./reverse-kitting-order").ReverseKittingOrderMutation | typeof import("./reverse-kitting-order-inventory").ReverseKittingOrderInventoryQuery | typeof import("./reverse-kitting-order-inventory").ReverseKittingOrderInventoryMutation | typeof import("./shipping-order").ShippingOrderMutation | typeof import("./shipping-order").ShippingOrderQuery | typeof import("./transfer-order").TransferOrderQuery | typeof import("./vas").VasMutation | typeof import("./vas").VasQuery | typeof import("./vas-order").VasOrderMutation | typeof import("./vas-order").VasOrderQuery | typeof import("./order-tote").OrderToteMutation | typeof import("./order-tote").OrderToteQuery | typeof import("./order-tote-item").OrderToteItemMutation | typeof import("./order-tote-item").OrderToteItemQuery | typeof import("./order-tote-seal").OrderToteSealMutation | typeof import("./order-tote-seal").OrderToteSealQuery)[];
119
119
  };
@@ -2,6 +2,6 @@ import { InventoryCheck } from './inventory-check';
2
2
  import { InventoryCheckMutation } from './inventory-check-mutation';
3
3
  import { InventoryCheckQuery } from './inventory-check-query';
4
4
  export declare const entities: (typeof InventoryCheck)[];
5
- export declare const resolvers: (typeof InventoryCheckQuery | typeof InventoryCheckMutation)[];
5
+ export declare const resolvers: (typeof InventoryCheckMutation | typeof InventoryCheckQuery)[];
6
6
  export * from './inventory-check-mutation';
7
7
  export * from './inventory-check-query';
@@ -2,6 +2,6 @@ import { Invoice } from './invoice';
2
2
  import { InvoiceMutation } from './invoice-mutation';
3
3
  import { InvoiceQuery } from './invoice-query';
4
4
  export declare const entities: (typeof Invoice)[];
5
- export declare const resolvers: (typeof InvoiceQuery | typeof InvoiceMutation)[];
5
+ export declare const resolvers: (typeof InvoiceMutation | typeof InvoiceQuery)[];
6
6
  export * from './invoice-mutation';
7
7
  export * from './invoice-query';
@@ -2,6 +2,6 @@ import { InvoiceProduct } from './invoice-product';
2
2
  import { InvoiceProductMutation } from './invoice-product-mutation';
3
3
  import { InvoiceProductQuery } from './invoice-product-query';
4
4
  export declare const entities: (typeof InvoiceProduct)[];
5
- export declare const resolvers: (typeof InvoiceProductQuery | typeof InvoiceProductMutation)[];
5
+ export declare const resolvers: (typeof InvoiceProductMutation | typeof InvoiceProductQuery)[];
6
6
  export * from './invoice-product-mutation';
7
7
  export * from './invoice-product-query';
@@ -2,6 +2,6 @@ import { JobSheet } from './job-sheet';
2
2
  import { JobSheetMutation } from './job-sheet-mutation';
3
3
  import { JobSheetQuery } from './job-sheet-query';
4
4
  export declare const entities: (typeof JobSheet)[];
5
- export declare const resolvers: (typeof JobSheetQuery | typeof JobSheetMutation)[];
5
+ export declare const resolvers: (typeof JobSheetMutation | typeof JobSheetQuery)[];
6
6
  export * from './job-sheet-mutation';
7
7
  export * from './job-sheet-query';
@@ -2,6 +2,6 @@ import { OrderInventory } from './order-inventory';
2
2
  import { OrderInventoryMutation } from './order-inventory-mutation';
3
3
  import { OrderInventoryQuery } from './order-inventory-query';
4
4
  export declare const entities: (typeof OrderInventory)[];
5
- export declare const resolvers: (typeof OrderInventoryQuery | typeof OrderInventoryMutation)[];
5
+ export declare const resolvers: (typeof OrderInventoryMutation | typeof OrderInventoryQuery)[];
6
6
  export * from './order-inventory-mutation';
7
7
  export * from './order-inventory-query';
@@ -2,6 +2,6 @@ import { OrderProduct } from './order-product';
2
2
  import { OrderProductMutation } from './order-product-mutation';
3
3
  import { OrderProductQuery } from './order-product-query';
4
4
  export declare const entities: (typeof OrderProduct)[];
5
- export declare const resolvers: (typeof OrderProductQuery | typeof OrderProductMutation)[];
5
+ export declare const resolvers: (typeof OrderProductMutation | typeof OrderProductQuery)[];
6
6
  export * from './order-product-mutation';
7
7
  export * from './order-product-query';
@@ -2,6 +2,6 @@ import { OrderTote } from './order-tote';
2
2
  import { OrderToteMutation } from './order-tote-mutation';
3
3
  import { OrderToteQuery } from './order-tote-query';
4
4
  export declare const entities: (typeof OrderTote)[];
5
- export declare const resolvers: (typeof OrderToteQuery | typeof OrderToteMutation)[];
5
+ export declare const resolvers: (typeof OrderToteMutation | typeof OrderToteQuery)[];
6
6
  export * from './order-tote-mutation';
7
7
  export * from './order-tote-query';
@@ -2,6 +2,6 @@ import { OrderToteItem } from './order-tote-item';
2
2
  import { OrderToteItemMutation } from './order-tote-item-mutation';
3
3
  import { OrderToteItemQuery } from './order-tote-item-query';
4
4
  export declare const entities: (typeof OrderToteItem)[];
5
- export declare const resolvers: (typeof OrderToteItemQuery | typeof OrderToteItemMutation)[];
5
+ export declare const resolvers: (typeof OrderToteItemMutation | typeof OrderToteItemQuery)[];
6
6
  export * from './order-tote-item-mutation';
7
7
  export * from './order-tote-item-query';
@@ -2,6 +2,6 @@ import { OrderToteSeal } from './order-tote-seal';
2
2
  import { OrderToteSealMutation } from './order-tote-seal-mutation';
3
3
  import { OrderToteSealQuery } from './order-tote-seal-query';
4
4
  export declare const entities: (typeof OrderToteSeal)[];
5
- export declare const resolvers: (typeof OrderToteSealQuery | typeof OrderToteSealMutation)[];
5
+ export declare const resolvers: (typeof OrderToteSealMutation | typeof OrderToteSealQuery)[];
6
6
  export * from './order-tote-seal-mutation';
7
7
  export * from './order-tote-seal-query';
@@ -2,6 +2,6 @@ import { PurchaseOrderOtherCharge } from './purchase-order-other-charge';
2
2
  import { PurchaseOrderOtherChargeMutation } from './purchase-order-other-charge-mutation';
3
3
  import { PurchaseOrderOtherChargeQuery } from './purchase-order-other-charge-query';
4
4
  export declare const entities: (typeof PurchaseOrderOtherCharge)[];
5
- export declare const resolvers: (typeof PurchaseOrderOtherChargeQuery | typeof PurchaseOrderOtherChargeMutation)[];
5
+ export declare const resolvers: (typeof PurchaseOrderOtherChargeMutation | typeof PurchaseOrderOtherChargeQuery)[];
6
6
  export * from './purchase-order-other-charge-mutation';
7
7
  export * from './purchase-order-other-charge-query';
@@ -339,7 +339,7 @@ async function deleteReleaseGood(tx, name, user, domain) {
339
339
  else {
340
340
  if ((_a = oi === null || oi === void 0 ? void 0 : oi.inventory) === null || _a === void 0 ? void 0 : _a.id) {
341
341
  oi.inventory = await tx.getRepository(warehouse_base_1.Inventory).findOneBy({ id: oi.inventory.id });
342
- await tx.getRepository(warehouse_base_1.Inventory).save(Object.assign(Object.assign({}, oi.inventory), { lockedQty: oi.inventory.lockedQty - oi.releaseQty, lockedUomValue: oi.inventory.lockedUomValue - oi.releaseUomValue, updater: user }));
342
+ await tx.getRepository(warehouse_base_1.Inventory).save(Object.assign(Object.assign({}, oi.inventory), { qty: oi.inventory.qty + (oi.pickedQty || 0), uomValue: oi.inventory.uomValue + oi.pickedQty * oi.packingSize, lockedQty: oi.inventory.lockedQty - (oi.releaseQty - (oi.pickedQty || 0)), lockedUomValue: oi.inventory.lockedUomValue - (oi.releaseUomValue - oi.pickedQty * oi.packingSize), updater: user }));
343
343
  }
344
344
  await tx.getRepository(order_inventory_1.OrderInventory).delete({ id: oi.id });
345
345
  }