#-------------------------------------------------------
 $Comp = Comp_Load('Formats/WorkComplite/Report/Number', $ContractID, $Month);
 if (Is_Error($Comp)) {
     return ERROR | @Trigger_Error(500);
 }
 #-------------------------------------------------------
 $Report = array('Number' => $Comp);
 #-------------------------------------------------------
 $Comp = Comp_Load('Formats/Date/Month', $Month);
 if (Is_Error($Comp)) {
     return ERROR | @Trigger_Error(500);
 }
 #-------------------------------------------------------
 $Report['Month'] = $Comp;
 #-------------------------------------------------------
 $Wizard = Wizard_ToString((double) $Summ);
 if (Is_Error($Wizard)) {
     return ERROR | @Trigger_Error(500);
 }
 #-------------------------------------------------------
 $Nds = Comp_Load('Formats/Currency', $Summ * 18 / 118);
 if (Is_Error($Nds)) {
     return ERROR | @Trigger_Error(500);
 }
 #-------------------------------------------------------
 $Config = Config();
 #-------------------------------------------------------
 $Wizard = SPrintF('%s. %s', $Wizard, $Config['Executor']['IsNds'] ? SPrintF('(в том числе НДС %s)', $Nds) : '(НДС не облагается)');
 #-------------------------------------------------------
 $Report['Wizard'] = $Wizard;
 #-------------------------------------------------------
Exemplo n.º 2
0
 }
 #-----------------------------------------------------------------------
 $Invoice['CreateDate'] = $Comp;
 #-----------------------------------------------------------------------
 $Summ = $Invoice['Summ'];
 #-----------------------------------------------------------------------
 $Comp = Comp_Load('Formats/Currency', $Summ);
 if (Is_Error($Comp)) {
     return ERROR | @Trigger_Error(500);
 }
 #-----------------------------------------------------------------------
 $Invoice['Summ'] = $Comp;
 #-----------------------------------------------------------------------
 $Invoice['Foreign'] = SPrintF('%01.2f', $Summ / $PaymentSystem['Course']);
 #-----------------------------------------------------------------------
 $Wizard = Wizard_ToString((double) $Invoice['Summ']);
 if (Is_Error($Wizard)) {
     return ERROR | @Trigger_Error(500);
 }
 #-----------------------------------------------------------------------
 $Nds = Comp_Load('Formats/Currency', $Summ * 18 / 118);
 if (Is_Error($Nds)) {
     return ERROR | @Trigger_Error(500);
 }
 #-----------------------------------------------------------------------
 $Wizard = SPrintF('%s. %s', $Wizard, $Config['Executor']['IsNds'] ? SPrintF('(в том числе НДС %s)', $Nds) : '(НДС не облагается)');
 #-----------------------------------------------------------------------
 $Invoice['Wizard'] = $Wizard;
 #-----------------------------------------------------------------------
 $Executor = Comp_Load('www/Administrator/API/ProfileCompile', array('ProfileID' => 100));
 #-----------------------------------------------------------------------