Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
6fe6dcc9
Commit
6fe6dcc9
authored
3 years ago
by
Pascal Neub
Browse files
Options
Downloads
Patches
Plain Diff
[Projekt: xRM-Sales][TicketNr.: 1080906][Position in Angebot löschen führt zu Fehlermeldung]
parent
4deb61a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity/Offeritem_entity/recordcontainers/db/onDBDelete.js
+9
-22
9 additions, 22 deletions
entity/Offeritem_entity/recordcontainers/db/onDBDelete.js
with
9 additions
and
22 deletions
entity/Offeritem_entity/recordcontainers/db/onDBDelete.js
+
9
−
22
View file @
6fe6dcc9
...
...
@@ -16,28 +16,15 @@ if(oid != "")
deletedIds
.
push
(
oiid
);
var
cols
=
[
"
NET
"
,
"
VAT
"
];
var
vals
=
oiUtils
.
getNetAndVat
(
deletedIds
);
var
vals
=
oiUtils
.
getNetAndVat
(
deletedIds
);
var
discountedVals
=
OfferItemUtils
.
getDiscountedNet
(
deletedIds
,
oid
,
discount
);
let
config
=
entities
.
createConfigForUpdatingRows
()
config
.
entity
(
"
Offer_entity
"
);
if
(
discountedVals
){
config
.
fieldValues
({
"
NET
"
:
vals
[
0
],
"
VAT
"
:
vals
[
1
],
"
DISCOUNTED_NET
"
:
discountedVals
[
0
],
"
DISCOUNTED_VAT
"
:
discountedVals
[
1
]
});
}
else
{
config
.
fieldValues
({
"
NET
"
:
vals
[
0
],
"
VAT
"
:
vals
[
1
]
});
if
(
discountedVals
)
{
cols
.
push
(
"
DISCOUNTED_NET
"
,
"
DISCOUNTED_VAT
"
);
vals
=
vals
.
concat
(
discountedVals
);
}
config
.
uid
(
oid
);
entities
.
updateRow
(
config
);
}
\ No newline at end of file
newWhere
(
"
SALESORDER.SALESORDERID
"
,
oid
)
.
updateData
(
true
,
"
SALESORDER
"
,
cols
,
null
,
vals
);
}
This diff is collapsed.
Click to expand it.
Benjamin Ulrich
@b.ulrich
mentioned in commit
04222f8f
·
3 years ago
mentioned in commit
04222f8f
mentioned in commit 04222f8fa40354315ef5e58e8b5ff3d50075512d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment