fix: auto fetch not working if bundle exists (backport #39002) (#39004) fix: auto fetch not working if bundle exists (#39002) (cherry picked from commit b5340c5ec0d418dcf764efa961f743f88b660a24) Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com> (cherry picked from commit 2e919344df8cd9018b2fff6d70b49c8db6ba0d8c) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
027a75bcb0
commit
17bae5a5a1
@ -337,16 +337,18 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_auto_data() {
|
get_auto_data() {
|
||||||
|
let { qty, based_on } = this.dialog.get_values();
|
||||||
|
|
||||||
if (this.item.serial_and_batch_bundle || this.item.rejected_serial_and_batch_bundle) {
|
if (this.item.serial_and_batch_bundle || this.item.rejected_serial_and_batch_bundle) {
|
||||||
return;
|
if (qty === this.qty) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.item.serial_no || this.item.batch_no) {
|
if (this.item.serial_no || this.item.batch_no) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { qty, based_on } = this.dialog.get_values();
|
|
||||||
|
|
||||||
if (!based_on) {
|
if (!based_on) {
|
||||||
based_on = 'FIFO';
|
based_on = 'FIFO';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user