@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.
@@ -302,7 +302,7 @@ class HitProductionOrdersComponent {
302
302
  this.hammaddeQR = '';
303
303
  }
304
304
  patchProductionOrder() {
305
- // Map IssuesForProductionList to IssuesForProductionPostDto
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.clearAll();
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.clearAll();
977
+ this.focusQRInput();
988
978
  }
989
979
  });
990
980
  }
991
981
  },
992
982
  error: (e) => {
993
- this.confirmation.error('', 'Bir hata oluştu!', this.options).subscribe({
983
+ this.confirmation.status$.subscribe({
994
984
  next: () => {
995
- this.clearAll();
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;