From c766ef3f2d591258257e558da23b6110e2ccc011 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Wed, 10 Jul 2019 10:55:22 +0700
Subject: [PATCH] Harga modal produk

---
 lib/partner.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/partner.js b/lib/partner.js
index 0f29bc4..5044037 100644
--- a/lib/partner.js
+++ b/lib/partner.js
@@ -9,7 +9,7 @@ const pull = require('komodo-sdk/gateway/pull');
 
 function buy(task) {
     logger.verbose('Got task from CORE', {task: task});
-
+    
     setTimeout(
         function() {
             if (task.destination % 2) {
@@ -24,7 +24,8 @@ function buy(task) {
                     trx_id: task.trx_id,
                     rc: '00',
                     sn: moment().format('YYYYMMDDHHmmssSSS'),
-                    message: `BERHASIL karena nomor tujuan ${task.destination} adalah nomor genap`
+                    message: `BERHASIL karena nomor tujuan ${task.destination} adalah nomor genap`,
+                    amount: config.supplier_price ? config.supplier_price[task.product] : null
                 });
             }
 
-- 
1.9.0