mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
chore: resolve conflicts
This commit is contained in:
@@ -111,23 +111,16 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cint(doc.update_stock) != 1) {
|
if (cint(doc.update_stock) != 1) {
|
||||||
<<<<<<< HEAD
|
|
||||||
// show Make Delivery Note button only if Sales Invoice is not created from Delivery Note
|
// show Make Delivery Note button only if Sales Invoice is not created from Delivery Note
|
||||||
var from_delivery_note = false;
|
var from_delivery_note = false;
|
||||||
from_delivery_note = cur_frm.doc.items.some(function (item) {
|
from_delivery_note = cur_frm.doc.items.some(function (item) {
|
||||||
return item.delivery_note ? true : false;
|
return item.delivery_note ? true : false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!from_delivery_note && !is_delivered_by_supplier) {
|
|
||||||
cur_frm.add_custom_button(
|
|
||||||
__("Delivery"),
|
|
||||||
cur_frm.cscript["Make Delivery Note"],
|
|
||||||
=======
|
|
||||||
if (!is_delivered_by_supplier) {
|
if (!is_delivered_by_supplier) {
|
||||||
this.frm.add_custom_button(
|
this.frm.add_custom_button(
|
||||||
__("Delivery Note"),
|
__("Delivery Note"),
|
||||||
this.frm.cscript["Make Delivery Note"],
|
this.frm.cscript["Make Delivery Note"],
|
||||||
>>>>>>> b691de0147 (fix: allow creation of DN in SI for items not having DN reference)
|
|
||||||
__("Create")
|
__("Create")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user