[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13380] set custom rule
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [13380] set custom rule |
Date: |
Mon, 08 Jun 2015 09:20:56 +0000 |
Revision: 13380
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13380
Author: sigurdne
Date: 2015-06-08 09:20:54 +0000 (Mon, 08 Jun 2015)
Log Message:
-----------
set custom rule
Modified Paths:
--------------
trunk/rental/inc/custom/default/NLSH_add_contract_from_composite.php
Modified: trunk/rental/inc/custom/default/NLSH_add_contract_from_composite.php
===================================================================
--- trunk/rental/inc/custom/default/NLSH_add_contract_from_composite.php
2015-06-08 07:39:25 UTC (rev 13379)
+++ trunk/rental/inc/custom/default/NLSH_add_contract_from_composite.php
2015-06-08 09:20:54 UTC (rev 13380)
@@ -23,6 +23,7 @@
$contract = $data['contract'];
$location_arr = explode('-', $data['location_code']);
$loc1 = $location_arr[0];
+ $loc2 = $location_arr[1];
if($loc1 > 8006 && $loc1 < 8100)
{
@@ -30,11 +31,18 @@
}
else if($loc1 > 8499 && $loc1 < 8600)
{
- $responsibility_id = 3015;
+ if($loc2 == 18)
+ {
+ $responsibility_id = 4036;
+ }
+ else
+ {
+ $responsibility_id = 4034;
+ }
}
else if($loc1 > 8599 && $loc1 < 8700)
{
- $responsibility_id = 4036;
+ $responsibility_id = 3015;
}
$contract->set_responsibility_id($responsibility_id);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13380] set custom rule,
Sigurd Nes <=