Merge pull request #5318 from JunaidJaved248/dev-jj

Quantity issue in product shipment Issue #5315 Fixed
This commit is contained in:
Devansh 2021-11-12 09:49:42 +05:30 committed by GitHub
commit b7b98aa330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 87 additions and 72 deletions

View File

@ -281,7 +281,7 @@ class Product extends Model implements ProductContract
*
* @return bool
*/
public function inventory_source_qty($inventorySourceId): bool
public function inventory_source_qty($inventorySourceId)
{
return $this->inventories()
->where('inventory_source_id', $inventorySourceId)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"/js/velocity.js": "/js/velocity.js?id=49b29efa452a8942811a",
"/js/velocity-core.js": "/js/velocity-core.js?id=5c0fe2bf195ee94576fd",
"/js/velocity.js": "/js/velocity.js?id=6a8c096a65900da7602d",
"/js/velocity-core.js": "/js/velocity-core.js?id=6d269d95c3cfc74183cb",
"/css/velocity-admin.css": "/css/velocity-admin.css?id=4322502d80a0e4a0affd",
"/css/velocity.css": "/css/velocity.css?id=eb421924199a0eb7b68d"
"/css/velocity.css": "/css/velocity.css?id=530290684cc6821c1c87"
}

View File

@ -1115,21 +1115,6 @@ i.within-circle {
}
}
.account-content .account-layout .account-table-content.profile-page-content .table {
width: 100% !important;
}
.account-content .account-layout .table table tr {
margin-bottom: 20px;
border: 1px solid #CCCCCC;
}
.account-content .account-layout .table table tr td {
width: 100%;
border-top: none;
border-right: 1px solid #CCCCCC !important;
}
.velocity-divide-page .right {
width: 99% !important;
}

View File

@ -2,7 +2,7 @@
padding: 20px;
position: relative;
> div:first-child {
>div:first-child {
top: 40px;
position: sticky;
height: max-content;
@ -28,7 +28,7 @@
}
.customer-reviews {
> div {
>div {
&.row {
padding-bottom: 30px;
display: block;
@ -69,7 +69,7 @@
position: relative;
background-color: $light-background;
> div {
>div {
width: 0px;
height: 100%;
background-color: $black-color;
@ -86,7 +86,7 @@
.review-form {
width: 80%;
> div {
>div {
padding-top: 30px;
label {
@ -111,7 +111,7 @@
margin: 20px 0;
.toolbar-wrapper {
> div {
>div {
margin: 0 20px 0 0;
display: inline-block;
@ -126,13 +126,14 @@
color: $font-color;
background-color: white;
}
.down-icon-position {
pointer-events: none;
background-color: $white-color;
}
}
> div:not(:first-child) {
>div:not(:first-child) {
vertical-align: super;
}
@ -190,10 +191,8 @@
animation: fade-in-white 0.3s ease-in-out;
@include border-radius(5px);
@include box-shadow(
0px 15px 25px 0px rgba(0, 0, 0, 0.03),
0px 20px 45px 5px rgba(0, 0, 0, 0.2)
);
@include box-shadow(0px 15px 25px 0px rgba(0, 0, 0, 0.03),
0px 20px 45px 5px rgba(0, 0, 0, 0.2));
.modal-header {
padding: 20px;
@ -281,7 +280,7 @@
.card-body {
cursor: default;
> div:last-child {
>div:last-child {
margin-top: 10px;
}
@ -299,6 +298,7 @@
}
.card-body {
.compare-icon,
.wishlist-icon {
left: 0;
@ -478,7 +478,7 @@
}
form {
> div {
>div {
padding-bottom: 20px;
input {
@ -491,7 +491,7 @@
}
.container-right {
> .recently-viewed {
>.recently-viewed {
padding-top: 20px;
}
}
@ -683,7 +683,7 @@
padding-bottom: 20px !important;
border-bottom: 2px solid $border-general;
> h3 {
>h3 {
font-size: 16px;
font-weight: 600;
}
@ -704,11 +704,11 @@
}
.cart-item-list {
> .row {
>.row {
margin-bottom: 40px;
}
> .row:last-child {
>.row:last-child {
padding-bottom: 20px;
border-bottom: 2px solid $border-general;
}
@ -735,7 +735,7 @@
font-size: 18px;
}
> a {
>a {
line-height: 20px;
}
}
@ -769,7 +769,7 @@
li.breadcrumb-item {
display: inline-block;
& + .breadcrumb-item::before {
&+.breadcrumb-item::before {
display: inline-block;
padding-right: 5px;
padding-left: 5px;
@ -873,6 +873,27 @@
padding: 15px 20px;
padding-bottom: 60px;
.account-table-content.profile-page-content {
.table {
width: 100% !important;
}
}
.table {
table {
tr {
margin-bottom: 20px;
border: 1px solid #CCCCCC;
td {
width: auto;
border-top: none;
border-right: 1px solid #CCCCCC !important;
}
}
}
}
&.right {
padding-left: $sidebar-width + 20px !important;
}
@ -887,7 +908,8 @@
}
.account-table-content {
> .row,
>.row,
.control-group {
margin-bottom: 30px;
}
@ -924,7 +946,7 @@
.address-holder {
margin-top: 30px;
> div {
>div {
margin: 5px 0;
padding-left: 0;
}
@ -965,7 +987,7 @@
}
}
> * {
>* {
display: inline-block;
vertical-align: top;
@ -1043,7 +1065,7 @@
}
}
~ table {
~table {
&.table {
thead {
font-size: 18px;
@ -1140,7 +1162,7 @@
margin-bottom: 15px;
}
.table > table {
.table>table {
width: 100%;
color: #5e5e5e;
border: 1px solid rgba(0, 0, 0, 0.125);
@ -1189,11 +1211,9 @@
margin-right: 20px;
border-radius: 0 0 4px 4px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
background-image: linear-gradient(
-180deg,
background-image: linear-gradient(-180deg,
rgba(0, 0, 0, 0.08),
rgba(0, 0, 0, 0.24)
);
rgba(0, 0, 0, 0.24));
}
input {
@ -1230,7 +1250,7 @@
}
.reviews-container {
> .row {
>.row {
margin-bottom: 40px;
}
}
@ -1240,6 +1260,7 @@
margin: 0;
a:not([href]) {
&.next,
&.previous {
cursor: not-allowed;
@ -1264,6 +1285,7 @@
&.next,
&.previous {
.angle-right-icon,
.angle-left-icon {
@extend .rango-default;
@ -1326,7 +1348,7 @@
}
.section-content {
label + span {
label+span {
font-weight: 600;
color: $grey-color;
}
@ -1417,8 +1439,9 @@
padding: 40px 20px;
.col-lg-7 {
.coupon-container,
> div:not(:first-child) {
>div:not(:first-child) {
margin-top: 20px;
}
}
@ -1455,7 +1478,7 @@
.styled-select {
cursor: pointer;
+ .select-icon {
+.select-icon {
top: 55%;
left: 92%;
font-size: 20px;
@ -1492,7 +1515,7 @@
.address-holder {
margin-top: 15px;
> div {
>div {
margin: 5px 0;
padding-left: 0;
}
@ -1515,7 +1538,7 @@
display: table;
text-align: center;
> div {
>div {
display: table-cell;
vertical-align: middle;
@ -1573,7 +1596,7 @@
.shipping-methods,
.payment-methods {
> .row {
>.row {
margin-bottom: 20px;
}
@ -1611,11 +1634,11 @@
margin-bottom: 20px !important;
}
> .row:first-child {
>.row:first-child {
margin-top: 50px;
}
> .row {
>.row {
margin-bottom: 20px;
}
}
@ -1632,7 +1655,7 @@
position: sticky !important;
max-width: 500px !important;
> div {
>div {
width: 100%;
}
@ -1640,11 +1663,11 @@
padding: 25px 30px;
border: 1px solid $border-general;
> h3 {
>h3 {
margin-bottom: 20px;
}
> .row:not(:last-child) {
>.row:not(:last-child) {
margin-bottom: 10px;
}
@ -1772,6 +1795,7 @@
}
.main-container-wrapper {
/**
* Sticky header for logo and search component. Just make sure
* this class should have height otherwise CLS score will reduce.
@ -1847,8 +1871,8 @@
}
li:hover {
> a {
> span {
>a {
>span {
color: $light-link-color;
}
}
@ -1860,7 +1884,7 @@
.category {
padding: 5px 0 4px 15px;
+ .nested {
+.nested {
color: $font-color;
li {
@ -1991,7 +2015,7 @@
line-height: 38px;
}
> * {
>* {
height: 100%;
}
}
@ -2226,22 +2250,22 @@
}
.full-content-wrapper {
> .container-fluid {
>.container-fluid {
padding: 0 !important;
margin-bottom: 60px !important;
> .row {
>.row {
padding: 0 15px !important;
}
}
p,
div {
> .container-fluid {
>.container-fluid {
padding: 0 !important;
margin-bottom: 60px !important;
> .row {
>.row {
padding: 0 15px !important;
}
}
@ -2304,6 +2328,7 @@
.filter-attributes-item {
margin-bottom: 10px;
border-bottom: 1px solid #cccccc;
&.active {
.filter-attributes-content {
display: block;
@ -2321,7 +2346,7 @@
}
}
input[type='checkbox'] + span {
input[type='checkbox']+span {
margin-left: 10px !important;
}
}
@ -2357,6 +2382,7 @@
margin-top: 10px;
margin-left: 96px;
}
.down-icon-position {
position: absolute;
}
@ -2423,6 +2449,7 @@
&.next,
&.previous {
.angle-right-icon,
.angle-left-icon {
@extend .rango-default;
@ -2464,16 +2491,18 @@
background: unset;
}
.angle-right-icon::before {
content: '\E908';
}
.angle-left-icon::before {
content: '\E907';
}
}
.carousel-products {
+ .recently-viewed {
+.recently-viewed {
top: -40px;
position: relative;
}
@ -2706,7 +2735,8 @@
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
}