Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ export class StoreStockAdjustmentComponent
this.inventoryService
.saveStockAdjustmentDraft(temp)
.subscribe((response) => {
if (response?.statusCode !== 200) {
// don't report success on a failed save (that made a draft look
// saved while it never landed, so it was missing from the list)
this.confirmationService.alert(
response?.errorMessage ||
'Something went wrong. Please try again.',
'error',
);
return;
}
if (temp.stockAdjustmentDraftID) {
this.confirmationService.alert(
this.currentLanguageSet.inventory.updatedSuccessfully,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<td z-table-cell>{{ i + 1 }}</td>
<td z-table-cell>{{ adjustment?.stockAdjustmentDraftID }}</td>
<td z-table-cell>{{ adjustment?.refNo }}</td>
<td z-table-cell>{{ adjustment?.draftDescription }}</td>
<td z-table-cell>{{ adjustment?.draftDesc }}</td>
<td z-table-cell>{{ adjustment?.createdBy }}</td>
<td z-table-cell>
{{ adjustment?.createdDate | istDate: "dd/MM/yyyy" }}
Expand Down
Loading