From 30eb623bace6b5ba9a1e275c7bdf70fc5920a583 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 8 Aug 2023 15:29:29 +0700 Subject: sync price unit po & price purchase pricelist --- indoteknik_custom/views/mail_template_po.xml | 84 ++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 indoteknik_custom/views/mail_template_po.xml (limited to 'indoteknik_custom/views/mail_template_po.xml') diff --git a/indoteknik_custom/views/mail_template_po.xml b/indoteknik_custom/views/mail_template_po.xml new file mode 100644 index 00000000..8eb72e12 --- /dev/null +++ b/indoteknik_custom/views/mail_template_po.xml @@ -0,0 +1,84 @@ + + + + + PO: Sync Unit Price Purchase Pricelist + + Your PO ${object.name} + + azkan4elll@gmail.com + + + + + +
+ + + + + + + + + + + +
+ + + + + + + +
+ PO
+ + ${object.name} + +
+
+
+
+ + + + + + + +
+
+ Dear Stefanus Darren, +

+ Terdapat PO yang harga Unit Price nya tidak sama dengan yang ada di purchase pricelist nya. +

+ Berikut adalah rincian PO: + % for line in object.order_line: +
    +
  • Nama Produk: ${line.product_id.name}
  • +
  • Harga Unit dalam PO: ${line.price_unit}
  • +
  • Harga Unit dalam Purchase Pricelist: ${line.price_vendor}
  • +
+ % endfor + Silahkan periksa dan lakukan koreksi jika diperlukan. +

+ Terima kasih. +
+
+
+
+
+
+
+ +
+
+
\ No newline at end of file -- cgit v1.2.3 From 3ef9d136bd238464de7ff0a224b1a68a9b7bb1f3 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 9 Aug 2023 10:32:32 +0700 Subject: add new condition email po --- indoteknik_custom/views/mail_template_po.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'indoteknik_custom/views/mail_template_po.xml') diff --git a/indoteknik_custom/views/mail_template_po.xml b/indoteknik_custom/views/mail_template_po.xml index 8eb72e12..77c21837 100644 --- a/indoteknik_custom/views/mail_template_po.xml +++ b/indoteknik_custom/views/mail_template_po.xml @@ -6,11 +6,11 @@ Your PO ${object.name} - azkan4elll@gmail.com + darren@indoteknik.co.id - +
@@ -51,11 +51,13 @@

Berikut adalah rincian PO: % for line in object.order_line: -
    -
  • Nama Produk: ${line.product_id.name}
  • -
  • Harga Unit dalam PO: ${line.price_unit}
  • -
  • Harga Unit dalam Purchase Pricelist: ${line.price_vendor}
  • -
+ % if line.price_vendor != 0 and line.price_unit != line.price_vendor +
    +
  • Nama Produk: ${line.product_id.name}
  • +
  • Harga Unit dalam PO: ${line.price_unit}
  • +
  • Harga Unit dalam Purchase Pricelist: ${line.price_vendor}
  • +
+ % endif % endfor Silahkan periksa dan lakukan koreksi jika diperlukan.

-- cgit v1.2.3 From 81c87b71d6cb7caad7230b9cca8545155d917214 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 10 Aug 2023 11:01:05 +0700 Subject: fix format price email template --- indoteknik_custom/views/mail_template_po.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indoteknik_custom/views/mail_template_po.xml') diff --git a/indoteknik_custom/views/mail_template_po.xml b/indoteknik_custom/views/mail_template_po.xml index 77c21837..410520b3 100644 --- a/indoteknik_custom/views/mail_template_po.xml +++ b/indoteknik_custom/views/mail_template_po.xml @@ -54,10 +54,10 @@ % if line.price_vendor != 0 and line.price_unit != line.price_vendor
  • Nama Produk: ${line.product_id.name}
  • -
  • Harga Unit dalam PO: ${line.price_unit}
  • -
  • Harga Unit dalam Purchase Pricelist: ${line.price_vendor}
  • +
  • Harga Unit dalam PO: Rp ${'{:,.2f}'.format(line.price_unit)}
  • +
  • Harga Unit dalam Purchase Pricelist: Rp ${'{:,.2f}'.format(line.price_vendor)}
- % endif + % endif % endfor Silahkan periksa dan lakukan koreksi jika diperlukan.

-- cgit v1.2.3