跳至內容
選單
此問題已被標幟
1 回覆
4231 瀏覽次數

Hi,


I'm wondering if there is a solution out there that when I create a RFQ and send it so a supplier via Email, that would include a link in the email so that the supplier can directly give a response to that RFQ (accept, decline or change the price)?


Thanks,

Michael

頭像
捨棄
作者 最佳答案

OK, i found the solution, here we go:



<?php

require_once('ripcord.php');

$url = "http://yourdomain.com";

$db = "yourdb";

$username = "youradminuser";

$password = "yourpw";

$po_id = 1;

$common = ripcord::client("$url/xmlrpc/2/common");

$uid = $common->authenticate($db, $username, $password, array());

$models = ripcord::client("$url/xmlrpc/2/object");

$models->exec_workflow(

$db, $uid, $password,

'purchase.order', 'bid_received',

$po_id

);

$models->exec_workflow(

$db, $uid, $password,

'purchase.order', 'purchase_confirm',

$po_id

);

?>


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 22
9553
1
3月 15
11638
1
3月 15
4174
3
9月 25
638
3
8月 25
906