@hitsoft/uretim-yonetimi 1.0.1 → 1.0.2
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/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.mjs +5 -9
- package/esm2020/lib/components/hit-production-orders/hit-production-orders.component.mjs +3 -10
- package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.mjs +2 -4
- package/fesm2015/hitsoft-uretim-yonetimi.mjs +7 -20
- package/fesm2015/hitsoft-uretim-yonetimi.mjs.map +1 -1
- package/fesm2020/hitsoft-uretim-yonetimi.mjs +7 -20
- package/fesm2020/hitsoft-uretim-yonetimi.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -302,7 +302,7 @@ class HitProductionOrdersComponent {
|
|
|
302
302
|
this.hammaddeQR = '';
|
|
303
303
|
}
|
|
304
304
|
patchProductionOrder() {
|
|
305
|
-
|
|
305
|
+
this.isLoading = true;
|
|
306
306
|
const productionOrderLines = this.productionOrderList.ProductionOrderLines.map(productionLine => {
|
|
307
307
|
return new ProductionOrderLine$1(productionLine.ItemCode, productionLine.WarehouseCode, productionLine.Quantity, productionLine.Quantity, productionLine.Quantity, '', productionLine.BaseEntry, 0, [new BatchNumber$1(productionLine.BatchNumber, productionLine.Quantity)]);
|
|
308
308
|
});
|
|
@@ -314,16 +314,9 @@ class HitProductionOrdersComponent {
|
|
|
314
314
|
this.clearAll();
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
else {
|
|
318
|
-
this.confirmation.status$.subscribe({
|
|
319
|
-
next: () => {
|
|
320
|
-
this.clearAll();
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
317
|
},
|
|
325
318
|
});
|
|
326
|
-
this.
|
|
319
|
+
this.isLoading = false;
|
|
327
320
|
}
|
|
328
321
|
clearAll() {
|
|
329
322
|
this.isEmriBarkoduGecerliMi = false;
|
|
@@ -621,15 +614,13 @@ class HitReceiptFromProductionsComponent {
|
|
|
621
614
|
this.isLoading = true;
|
|
622
615
|
this.receiptFromProductionsPostDtoDocumentLine.batchNumbers = [this.receiptFromProductionsPostDtoBatchNumber];
|
|
623
616
|
this.receiptFromProductionsPostDto.documentLines = [this.receiptFromProductionsPostDtoDocumentLine];
|
|
624
|
-
console.log('documentLines', this.receiptFromProductionsPostDto.documentLines);
|
|
625
|
-
console.log('batchNumbers', this.receiptFromProductionsPostDtoDocumentLine.batchNumbers);
|
|
626
|
-
return;
|
|
627
617
|
this.service.create(this.receiptFromProductionsPostDto).subscribe({
|
|
628
618
|
next: (result) => {
|
|
629
619
|
if (result.isSuccessful) {
|
|
630
620
|
this.confirmation.success('İşlem Başarılı', '', this.options).subscribe(() => {
|
|
631
621
|
this.newRecordDocEntry = result.items.docEntry;
|
|
632
622
|
this.showModal = true;
|
|
623
|
+
this.clearAll();
|
|
633
624
|
});
|
|
634
625
|
}
|
|
635
626
|
else {
|
|
@@ -972,7 +963,6 @@ class HitIssuesForProductionsComponent {
|
|
|
972
963
|
this.issuesForProductionPost.DocumentLines.forEach((x) => {
|
|
973
964
|
x.BaseEntry = this.productionOrder.absoluteEntry;
|
|
974
965
|
});
|
|
975
|
-
console.log(this.issuesForProductionPost);
|
|
976
966
|
this.issuesForProductionPost.DocumentLines = this.issuesForProductionPost.DocumentLines.filter((x) => x.IsQRReady);
|
|
977
967
|
this.service.post(this.issuesForProductionPost).subscribe({
|
|
978
968
|
next: (response) => {
|
|
@@ -984,23 +974,20 @@ class HitIssuesForProductionsComponent {
|
|
|
984
974
|
else {
|
|
985
975
|
this.confirmation.status$.subscribe({
|
|
986
976
|
next: () => {
|
|
987
|
-
this.
|
|
977
|
+
this.focusQRInput();
|
|
988
978
|
}
|
|
989
979
|
});
|
|
990
980
|
}
|
|
991
981
|
},
|
|
992
982
|
error: (e) => {
|
|
993
|
-
this.confirmation.
|
|
983
|
+
this.confirmation.status$.subscribe({
|
|
994
984
|
next: () => {
|
|
995
|
-
this.
|
|
985
|
+
this.focusQRInput();
|
|
996
986
|
}
|
|
997
987
|
});
|
|
998
|
-
this.isLoading = false;
|
|
999
|
-
},
|
|
1000
|
-
complete: () => {
|
|
1001
|
-
this.isLoading = false;
|
|
1002
988
|
}
|
|
1003
989
|
});
|
|
990
|
+
this.isLoading = false;
|
|
1004
991
|
}
|
|
1005
992
|
clearAll() {
|
|
1006
993
|
this.isEmriBarkoduGecerliMi = false;
|