Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
517
Issue boards
Milestones
Wiki
Code
Merge requests
83
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
vtiger
vtigercrm
Commits
db81e379
Commit
db81e379
authored
4 months ago
by
Prasad
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
#1931
: DivByZero error in line-item template
parent
86cb7bb6
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
layouts/v7/modules/Inventory/partials/LineItemsContent.tpl
+2
-2
2 additions, 2 deletions
layouts/v7/modules/Inventory/partials/LineItemsContent.tpl
with
2 additions
and
2 deletions
layouts/v7/modules/Inventory/partials/LineItemsContent.tpl
+
2
−
2
View file @
db81e379
...
...
@@ -138,7 +138,7 @@
{
if
$QUANTITY_EDITABLE
eq
false
}
disabled=
disabled
{/
if
}
/>
{
if
isset
(
$PURCHASE_COST_EDITABLE
)
&&
$PURCHASE_COST_EDITABLE
eq
false
and
$MODULE
neq
'PurchaseOrder'
}
<input
id=
"
{
$purchaseCost
}
"
type=
"hidden"
value=
"
{
if
((
float
)
$data
.
$purchaseCost
)
}{
((
float
)
$data
.
$purchaseCost
)
/
((
float
)
$data
.
$qty
)
}{
else
}
0
{/
if
}
"
/>
<input
id=
"
{
$purchaseCost
}
"
type=
"hidden"
value=
"
{
if
$data
.
$purchaseCost
&&
$data
.
$qty
}{
((
float
)
$data
.
$purchaseCost
)
/
((
float
)
$data
.
$qty
)
}{
else
}
0
{/
if
}
"
/>
<span
style=
"display:none"
class=
"purchaseCost"
>
0
</span>
<input
name=
"
{
$purchaseCost
}
"
type=
"hidden"
value=
"
{
if
$data
.
$purchaseCost
}{
$data
.
$purchaseCost
}{
else
}
0
{/
if
}
"
/>
{/
if
}
...
...
@@ -158,7 +158,7 @@
{
if
isset
(
$PURCHASE_COST_EDITABLE
)
&&
$PURCHASE_COST_EDITABLE
}
<td>
<input
id=
"
{
$purchaseCost
}
"
type=
"hidden"
value=
"
{
if
$data
.
$purchaseCost
}{
((
float
)
$data
.
$purchaseCost
)
/
((
float
)
$data
.
$qty
)
}{
else
}
0
{/
if
}
"
/>
<input
id=
"
{
$purchaseCost
}
"
type=
"hidden"
value=
"
{
if
$data
.
$purchaseCost
&&
$data
.
$qty
}{
((
float
)
$data
.
$purchaseCost
)
/
((
float
)
$data
.
$qty
)
}{
else
}
0
{/
if
}
"
/>
<input
name=
"
{
$purchaseCost
}
"
type=
"hidden"
value=
"
{
if
$data
.
$purchaseCost
}{
$data
.
$purchaseCost
}{
else
}
0
{/
if
}
"
/>
<span
class=
"pull-right purchaseCost"
>
{
if
$data
.
$purchaseCost
}{
$data
.
$purchaseCost
}{
else
}
0
{/
if
}
</span>
</td>
...
...
This diff is collapsed.
Click to expand it.
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