feat: serial and batch bundle for POS

This commit is contained in:
Rohit Waghchaure
2023-03-23 15:13:45 +05:30
parent 467046436b
commit 0eaf6de5de
8 changed files with 178 additions and 188 deletions

View File

@@ -642,6 +642,8 @@ class SerialBatchCreation:
package = frappe.get_doc("Serial and Batch Bundle", id)
new_package = frappe.copy_doc(package)
new_package.type_of_transaction = self.type_of_transaction
new_package.returned_against = self.returned_against
print(new_package.voucher_type, new_package.voucher_no)
new_package.save()
self.serial_and_batch_bundle = new_package.name